function aggiornaLocali(str)
{ 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  return;
	var url="/script/selectLocali.asp";
	url=url+"?AJtp="+str;
	//parametro utile per non prendere i risultati in caching
	url=url+"&sid="+Math.random();
	
	xmlHttp.onreadystatechange=stateChangedLocali;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChangedLocali() 
{ 
	if (xmlHttp.readyState==1)
	{
		document.getElementById("selectLocali").innerHTML="<select disabled=\"disabled\" name=\"lc\" value=\"\"><option>caricamento in corso - -</option></select>";
	}
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("selectLocali").innerHTML=xmlHttp.responseText;
	}
}