doSetTimeOut(0);

function getAXAH(url, parameters, elementContainer, r){	

	// stop the timer
	stopTimer(mytime);
	
	// prep URL	
	myRand=parseInt(Math.random()*99999999);  
	url = "/includes/" + url + "?" + "r=" + myRand
	
//	alert(url)
	
	var theHttpRequest = getNewHttpObject();
	theHttpRequest.onreadystatechange = function() {processAXAH(elementContainer);};
	theHttpRequest.open("GET", url);
	theHttpRequest.send(false);
	
	
		function processAXAH(elementContainer){
		   if (theHttpRequest.readyState == 4) {
			   if (theHttpRequest.status == 200) {
				   document.getElementById(elementContainer).innerHTML = theHttpRequest.responseText;
			   } else {
				   document.getElementById(elementContainer).innerHTML="<p>&nbsp;<\/p>";
			   }
		   }
		}
		
		
		doSetTimeOut(r);
}


function doSetTimeOut(rm) {
	mytime=setTimeout("getAXAH('doAdds.asp', 'c=1&rm=0','content', 0)",10000)
}


function stopTimer(mytime) {
	clearTimeout(mytime);
}


function getNewHttpObject() {
    var objType = false;
    try {
        objType = new ActiveXObject('Msxml2.XMLHTTP');
    } catch(e) {
        try {
            objType = new ActiveXObject('Microsoft.XMLHTTP');
        } catch(e) {
            objType = new XMLHttpRequest();
        }
    }
    return objType;
}