 var xmlhttp

 function sendRequest(url, doFunction, id)
  {
    xmlhttp=GetXmlHttpObject();
    if (xmlhttp==null)
     {
       alert ("Your browser does not support AJAX!");
       return;
     }
    xmlhttp.onreadystatechange= function() 
	 { 
       if((xmlhttp.readyState==4) && (xmlhttp.responseText!=""))
        {
          doFunction(xmlhttp, id);
        }
     }
    xmlhttp.open("GET",url,true);
    xmlhttp.send(null);
  }

 function GetXmlHttpObject()
  {
    if (window.XMLHttpRequest)
     {
       // code for IE7+, Firefox, Chrome, Opera, Safari
       return new XMLHttpRequest();
     }
    if (window.ActiveXObject)
     {
       // code for IE6, IE5
       return new ActiveXObject("Microsoft.XMLHTTP");
     }
    return null;
  }
  
 function writeHTML(req, id)
  {
    document.getElementById(id).innerHTML = req.responseText;
  }
 
 function doNothing(req)
  {

  } 
