var xmlHttp
var content_name

function ajaxopen()
{
	var xmlHttp=null;

	try //standards compliant
  	{
  		xmlHttp=new XMLHttpRequest();
  	}
	catch (e) // Non-compliant <- Bitches.
  	{
  		
  		try
    		{
    			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    		}
  		catch (e)
    		{
    			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    		}
  	}
	return xmlHttp;
}

function GetInfo()
{
	xmlHttp=ajaxopen();
	if(xmlHttp == null)
	{
		alert("Your browser requires an update to view our website. Try www.firefox.com");
		return;
	}
	xmlHttp.onreadystatechange=GetTimeStateChange;
	xmlHttp.open("GET", "./src/info.php", true);
	xmlHttp.send(null);
	setTimeout("GetInfo()", 20000);
}

function GetTimeStateChange()
{
	if(xmlHttp.readyState == 4)
	{
		document.getElementById('stats').innerHTML=xmlHttp.responseText;
	}
}
