function ajaxFunction(url,id,loop){
  var ajaxRequest;  // The variable that makes Ajax possible!

  try{
    ajaxRequest = new XMLHttpRequest();
  } catch (e){
    try{
      ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try{
        ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e){
        alert("Your browser broke!");
        return false;
      }
    }
  }
  ajaxRequest.open("GET",url, true);

  //Send the proper header information along with the request

  // Create a function that will receive data sent from the server
        ajaxRequest.onreadystatechange = function(){
                if(ajaxRequest.readyState == 4){
                var ajaxDisplay = document.getElementById(id);
                ajaxDisplay.innerHTML = ajaxRequest.responseText;
                if(loop!=0) setTimeout('ajaxFunction("' + url + '","' + id + '","1")',10000);
                }
        }
  ajaxRequest.send(null);
}


