// JavaScript Document
function assegna()
	{
	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
			{XHR=new ActiveXObject("Microsoft.XMLHTTP");}
		}
	return XHR;
	}

var readyState={
	inattivo: 0,
	inizializzato: 1,
	richiesta: 2,
	risposta: 3,
	completato: 4
	};

var statusText=new Array();
	statusText[100]="Continue";
	statusText[200]="OK";
	statusText[401]="Unauthorized";
	statusText[404]="Not Found";
	


