function createXMLHttpRequest(){
	try{
		xmlHttp=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
	}catch(e){
		alert('There was a problem creating the XMLHttpRequest object'); 
	}
	return xmlHttp;
}

function createXMLHttpRequest1(){
	try{
		xmlHttp1=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
	}catch(e){
		alert('There was a problem creating the XMLHttpRequest object'); 
	}
	return xmlHttp1;
}



function updateStat(){
    var xmlHttp = createXMLHttpRequest();
	xmlHttp.open("POST","include/moduleStat.asp",false);
	xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
	xmlHttp.setRequestHeader('Content-length', '0');
	xmlHttp.send('');
	//xmlHttp.onreadystatechange=function(){ 
	if(xmlHttp.readyState==4&&xmlHttp.status==200){			

			document.getElementById("updateStat").innerHTML=xmlHttp.responseText;
  	        setTimeout("updateStat()", 10000);
		}

	//}
	//xmlHttp.send(null);
}