var xmlHttp = false;
var infoboxs = 'advstr';
createxmlHttpObject();
//
function createxmlHttpObject()
{
if(window.ActiveXObject)
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
xmlHttp = new XMLHttpRequest;
}
}
//

function callServer(infobox,url) {
  infoboxs=infobox;
  xmlHttp.open("GET", url, true);
  xmlHttp.onreadystatechange = updatePage;
  xmlHttp.send(null);  
}

function updatePage() {
  if (xmlHttp.readyState < 4) {
	document.getElementById(infoboxs).innerHTML="<img src='/images/loading2.gif' />";
  }
  if (xmlHttp.readyState == 4) {
    var response = xmlHttp.responseText;
	document.getElementById(infoboxs).innerHTML=response;
  }
}

