<!--
/********************************************************************************
 *																*
 *					AJAX Script By Sonic							*
 *			You cannot redistribuite or modify this script!				*
 *																*
 ********************************************************************************/   
function getXMLHttpRequest() {
	var  XHR = null,
 		browserUtente = navigator.userAgent.toUpperCase();
 
 	if(typeof(XMLHttpRequest) === "function" || typeof(XMLHttpRequest) === "object")
		XHR = new XMLHttpRequest();
 	else if (window.ActiveXObject && browserUtente.indexOf("MSIE 4") < 0)
	{
 		if(browserUtente.indexOf("MSIE 5") < 0)
   			XHR = new ActiveXObject("Msxml2.XMLHTTP");
  		else // le versioni 5 e 5.5 invece sfruttano lo stesso nome
   			XHR = new ActiveXObject("Microsoft.XMLHTTP");
 	}
	return XHR;
	//return null;
} 

function dohit(page, uid, load, table)
{
	aj = getXMLHttpRequest();
	if (!aj)
		return;

	aj.open("get", "/hits.php", true); 
	aj.setRequestHeader("connection", "close");
	
	aj.onreadystatechange = function()
	{  
	     	if(aj.readyState == 4)
		{ 
			if (aj.responseText)
			{
				var td = document.getElementById("sidebar");
				var repl = new RegExp("<b>Hits:<\/b>","gi");
				td.innerHTML = td.innerHTML.replace(repl,"<b>Hits:</b> " + aj.responseText);
			}
		}     
	}
	aj.send(null);
	
}

dohit();
-->
