function makeAjaxRequest(url,method,data){
var req=false;
if(window.XMLHttpRequest)req=new XMLHttpRequest();
else if(window.ActiveXObject){
try {req=new ActiveXObject("Msxml2.XMLHTTP");} 
catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}
}
if(!req){return false;}
if(method=="GET"){url+="?"+data;data=null;}
req.open(method,url,true);
//req.onreadystatechange=function(){readContents(req);};
if(method=="POST")req.setRequestHeader("Content-type","application/x-www-form-urlencoded");
req.send(data);}

//function readContents(req){}
onload = function(){
	makeAjaxRequest(SITE_ROOT + "visits.php","GET",null);
}

