<!--
var readyState =	{
						UNINITIALIZED	: 0,
						OPEN			: 1,
						SENT			: 2,
						RECEIVING		: 3,
						LOADED 			: 4
					};

var statusText = new Array();

statusText[100] = "Continue";
statusText[101] = "Switching Protocols";
statusText[200] = "OK";
statusText[201] = "Created";
statusText[202] = "Accepted";
statusText[203] = "Non-Authoritative Information";
statusText[204] = "No Content";
statusText[205] = "Reset Content";
statusText[206] = "Partial Content";
statusText[300] = "Multiple Choices";
statusText[301] = "Moved Permanently";
statusText[302] = "Found";
statusText[303] = "See Other";
statusText[304] = "Not Modified";
statusText[305] = "Use Proxy";
statusText[306] = "(unused, but reserved)";
statusText[307] = "Temporary Redirect";
statusText[400] = "Bad Request";
statusText[401] = "Unauthorized";
statusText[402] = "Payment Required";
statusText[403] = "Forbidden";
statusText[404] = "Not Found";
statusText[405] = "Method Not Allowed";
statusText[406] = "Not Acceptable";
statusText[407] = "Proxy Authentication Required";
statusText[408] = "Request Timeout";
statusText[409] = "Conflict";
statusText[410] = "Gone";
statusText[411] = "Length Required";
statusText[412] = "Precondition Failed";
statusText[413] = "Request Entity Too Large";
statusText[414] = "Request-URI Too Long";
statusText[415] = "Unsupported Media Type";
statusText[416] = "Requested Range Not Satisfiable";
statusText[417] = "Expectation Failed";
statusText[500] = "Internal Server Error";
statusText[501] = "Not Implemented";
statusText[502] = "Bad Gateway";
statusText[503] = "Service Unavailable";
statusText[504] = "Gateway Timeout";
statusText[505] = "HTTP Version Not Supported";
statusText[509] = "Bandwidth Limit Exceeded";

var strLastPageContent = "";

var strWaiting	=	" <table cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%;\">\r\n"
				+	"	<tr>\r\n"
				+	"		<td><img src=\"images/loading.gif\" width=\"16\" height=\"16\" alt=\"\"  /></td>\r\n"
				+	"		<td style=\"width:100%;padding-left:5px;\">loading....</td>\r\n"
				+	"	</tr>\r\n"
				+	"</table>\r\n";

function getLastPageContent()
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = strLastPageContent;
}

function getXMLHttpRequest()
{
	var browserUtente = navigator.userAgent.toUpperCase();

	if (typeof(XMLHttpRequest) === "function" || typeof(XMLHttpRequest) === "object")
		return new XMLHttpRequest();
	else if (window.ActiveXObject && browserUtente.indexOf("MSIE 4") < 0 )
	{
		if(browserUtente.indexOf("MSIE 5") < 0)
			return new ActiveXObject("Msxml2.XMLHTTP");
		else
			return new ActiveXObject("Microsoft.XMLHTTP");
	}

	return null;
}

function loadFinaleCalendario(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataFinaliGiovaniliCalendario.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function loadFinaleSedi(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataFinaliGiovaniliSedi.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
					fnShowMap();
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function loadFinale(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataFinaliGiovanili.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
					//strLastPageContent = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function loadTabellone(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataTabellone.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
					strLastPageContent = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}


function loadCampionato(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataCampionato.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
					strLastPageContent = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function loadSquadre(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	arrPoint.length = 0;
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataSquadrePoint.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					eval(objXMLHttpRequest.responseText)
					
					loadSquadreHtml(pstrParams)
					//pElement.innerHTML = objXMLHttpRequest.responseText;
					//fnShowMap();
					//pageTracker._trackPageview("/AjaxGetDataSquadre.asp");
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function loadSquadreHtml(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataSquadreMappa.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
					
					if(arrPoint.length > 0)
						fnShowMap();
					pageTracker._trackPageview("/AjaxGetDataSquadre.asp");
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function loadSquadreTutte(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataSquadre.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}
function getFinaleCalendario(pintMese, pintGiorno)
{
	pintMese	= isNull(pintMese, 0);
	pintGiorno	= isNull(pintGiorno, 0);
	
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadFinaleCalendario('Mese=" + pintMese + "&Giorno=" + pintGiorno + "')", 10);
}

function getFinaleSedi()
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadFinaleSedi()", 10);
}

function getFinale(pintIDFinale, pintIDFaseFinale, pbooTabellone)
{
	pintIDFaseFinale	= isNull(pintIDFaseFinale, 0);
	pbooTabellone		= isNull(pbooTabellone, 1);
	
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadFinale('IDFinale=" + pintIDFinale + "&IDFaseFinale=" + pintIDFaseFinale + "&Tabellone=" + pbooTabellone + "')", 10);
}

function getTabellone(pstrComitato, pstrCampionato, pintTabellone)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadTabellone('Comitato=" + pstrComitato + "&Serie=" + pstrCampionato + "&Tabellone=" + pintTabellone + "')", 10);
}

function getCampionato(pstrComitato, pstrCampionato, pstrFase, pintGirone, pintAR, pintTurno)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadCampionato('com=" + pstrComitato + "&camp=" + pstrCampionato + "&fase=" + pstrFase + "&girone=" + pintGirone + "&ar=" + pintAR + "&turno=" + pintTurno + "')", 10);
}

function getSquadre(pstrComitato, pstrCampionato, pstrFase, pintGirone, pintAR, pintTurno)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadSquadre('com=" + pstrComitato + "&camp=" + pstrCampionato + "&fase=" + pstrFase + "&girone=" + pintGirone + "&ar=" + pintAR + "&turno=" + pintTurno + "')", 10);
}

function getSquadreTutte(pstrComitato, pstrCampionato, pstrFase, pintGirone, pintAR, pintTurno)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadSquadreTutte('com=" + pstrComitato + "&camp=" + pstrCampionato + "&fase=" + pstrFase + "&girone=" + pintGirone + "&ar=" + pintAR + "&turno=" + pintTurno + "')", 10);
}

function getClassifica(pstrComitato, pstrCampionato, pstrFase, pintGirone, pintAR, pintTurno)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadClassifica('com=" + pstrComitato + "&camp=" + pstrCampionato + "&fase=" + pstrFase + "&girone=" + pintGirone + "&ar=" + pintAR + "&turno=" + pintTurno + "')", 10);
}

function loadClassifica(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataClassifica.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function getClassificaDNA(pstrComitato, pstrCampionato, pstrFase, pintGirone, pintAR, pintTurno)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadClassificaDNA('com=" + pstrComitato + "&camp=" + pstrCampionato + "&fase=" + pstrFase + "&girone=" + pintGirone + "&ar=" + pintAR + "&turno=" + pintTurno + "')", 10);
}

function loadClassificaDNA(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataClassifica-dna.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function getInfo(pstrComitato, pstrCampionato, pstrFase, pintGirone, pintAR, pintTurno, pstrGara)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadInfo('com=" + pstrComitato + "&camp=" + pstrCampionato + "&fase=" + pstrFase + "&girone=" + pintGirone + "&ar=" + pintAR + "&turno=" + pintTurno + "&gara=" + pstrGara + "')", 10);
}

function loadInfo(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataInfo.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function getCerca(pstrArbitro, pstrNome, pstrComitato, pstrFase)
{
	var pElement = document.getElementById("divCampionato");
	pElement.innerHTML = "<table width=\"100%\" height=\"400\"><tr><td class=\"nero11n\" valign=\"top\">loading...&nbsp;</td><td width=\"99%\" valign=\"top\"><img src='images/loading.gif' border='0'></td></tr></table>";
	
	setTimeout("loadCerca('com=" + pstrComitato + "&arbitro=" + pstrArbitro + "&nome=" + pstrNome + "&Fase=" + pstrFase + "')", 10);
}

function loadCerca(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataCerca.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divCampionato");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}


//--- INIZIO CHI DOVE ----
function getComponente(pintID)
{
	var pElement = document.getElementById("divContenuto");
	pElement.innerHTML = strWaiting;
	
	setTimeout("loadComponente('ID=" + pintID + "')", 10);
}

function loadComponente(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataComponente.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divContenuto");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function getUfficio(pintID)
{
	var pElement = document.getElementById("divContenuto");
	pElement.innerHTML = strWaiting;
	
	setTimeout("loadUfficio('ID=" + pintID + "')", 10);
}

function loadUfficio(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataUfficio.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divContenuto");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function getStatuto(pintID)
{
	var pElement = document.getElementById("divContenuto");
	pElement.innerHTML = strWaiting;
	
	setTimeout("loadStatuto('ID=" + pintID + "')", 10);
}

function loadStatuto(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataStatuto.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divContenuto");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function getGiustizia(pintID)
{
	var pElement = document.getElementById("divContenuto");
	pElement.innerHTML = strWaiting;
	
	setTimeout("loadGiustizia('ID=" + pintID + "')", 10);
}

function loadGiustizia(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataGiustizia.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divContenuto");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function getComunicati(pintID)
{
	var pElement = document.getElementById("divContenuto");
	pElement.innerHTML = strWaiting;
	
	setTimeout("loadComunicati('ID=" + pintID + "')", 10);
}

function loadComunicati(pstrParams)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("GET", "AjaxGetDataComunicato.asp?" + pstrParams, true);

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divContenuto");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(null);
	}
	else
		return false;
}

function AjaxCheckFIPEmail(pstrEmail)
{
	var objXMLHttpRequest = getXMLHttpRequest();
	
	if (objXMLHttpRequest)
	{
		objXMLHttpRequest.open("POST", "AjaxCheckFIPEmail.asp", true);
		objXMLHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");

		objXMLHttpRequest.onreadystatechange = function()
		{
			if (objXMLHttpRequest.readyState == readyState.LOADED)
			{
				var pElement = document.getElementById("divEmail");
				
				if (statusText[objXMLHttpRequest.status] == "OK")
				{
					pElement.innerHTML = objXMLHttpRequest.responseText;;
				}
				else
				{
					pElement.innerHTML = "Server error: " + statusText[objXMLHttpRequest.status];
				}
			} 
		}

		objXMLHttpRequest.send(pstrEmail);
	}
	else
		return false;
}
//--- FINE CHI DOVE ----
//--> 
