var XmlHttp;
var getida;
function HandleResponse()
{
	if(XmlHttp.readyState == 4)
	{
		if(XmlHttp.status == 200)
		{			
			getida.innerHTML =(XmlHttp.responseText);
		}
	}
}
function CreateXmlHttp(num)
{
	
	try
	{
		XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch(oc)
		{
			XmlHttp = null;
		}
	}
	if(!XmlHttp && typeof XMLHttpRequest != "undefined") 
	{
		XmlHttp = new XMLHttpRequest();
	}

}
function CambiaBox(bb,num,elem) 
{
	var currentTime = new Date();
	getida = document.getElementById(elem); 
	CreateXmlHttp(num);
	if(XmlHttp)
	{
		XmlHttp.onreadystatechange = HandleResponse;
		XmlHttp.open("GET", "http://www.libraccio.it/aja/aja"+ bb +".asp?ff=" + currentTime.getTime() +  "&" + num,  true);
		XmlHttp.send(null);		
	}
	window.location.hash =num;
}



