var http_stats;
 
function handleHttpResponse_stats() 
{ 
    if (http_stats.readyState == 4) 
    { 
    	//alert(http_stats.responseText);
    } 
}
 
function act_stats(dir, code){ 
	dir=dir + "acc_stats.php?code=" + code;
	
	//alert(dir);
	
  http_stats = getXmlHttpObject_stats();
  http_stats.open("GET", dir, true);
  http_stats.onreadystatechange = handleHttpResponse_stats;
  http_stats.send(null);
} 

function getXmlHttpObject_stats() {  
    //alert("getXmlHttpObject");
    var xmlhttp;
		
    /*@cc_on 
    @if (@_jscript_version >= 5) 
    try 
    { 
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
    } 
    catch (e) 
    { 
    
    try{ 
    		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
    } 
    catch (e){ 
    		xmlhttp = false; 
    } 
    } 
    @else 
    xmlhttp = false; 
    @end @*/

    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        try{
            xmlhttp = new XMLHttpRequest();
        }
        catch (e){
            xmlhttp = false;
        } 
    }
    return xmlhttp; 
}