function HostedClickCount()
{
	var xhr_object;
	
	if(window.XMLHttpRequest) // Firefox
	   xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // Internet Explorer
	   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else
		return;
		
	xhr_object.open("GET", "hostedclick.php", true);	
	xhr_object.onreadystatechange = function()
	{
	   if(xhr_object.readyState == 4)
	   		document.getElementById('hostedClickCount').innerHTML = xhr_object.responseText;
	}	
	xhr_object.send(null);
}

function StartTimer()
{
	setInterval("HostedClickCount()", 5000);	
}

/*StartTimer();*/
