function chkstat(a)
{sendRequest("http://"+window.location.host+"/SiteCommon.php?retype=checkstat&site_id="+a)}
var xmlHttp;
function sendRequest(a)
{xmlHttp=GetXmlHttpObject(stateChanged);xmlHttp.open("GET",a,true);
xmlHttp.send(null)}
function stateChanged(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){}}

function GetXmlHttpObject(c){var a=null;if(navigator.userAgent.indexOf("Opera")>=0){alert("This example doesn't work in Opera");return}if(navigator.userAgent.indexOf("MSIE")>=0){var b="Msxml2.XMLHTTP";if(navigator.appVersion.indexOf("MSIE 5.5")>=0){b="Microsoft.XMLHTTP"}try{a=new ActiveXObject(b);a.onreadystatechange=c;return a}catch(d){alert("Error. Scripting for ActiveX might be disabled");return}}if(navigator.userAgent.indexOf("Mozilla")>=0){a=new XMLHttpRequest();a.onload=c;a.onerror=c;return a}};
