function newAjax()
{
	var xmlHttp;
	
	if(window.ActiveXObject)
	{
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if(window.XMLHttpRequest)
	{
		xmlHttp = new XMLHttpRequest();
	}
	else
	{
		alert("Ajax error");
		xmlHttp = null;
	}
	
	return xmlHttp;
}

	
var s = parseInt(Math.random()*10000000).toString(10);
var url = '../classes/statistics.php?s='+s;

var xmlHttp = newAjax();
xmlHttp.open("GET", url, true);

xmlHttp.onreadystatechange = function() 
{
	if(xmlHttp.readyState == 4)
	{
		document.getElementById("statistics").innerHTML = xmlHttp.responseText;
	}
}
xmlHttp.send(null);