function set_lingua(lingua)  {
	var mioObj;
	function CallBack() { // si occupa di gestire la risposta del server
	   if (mioObj.readyState==4 || mioObj.readyState=="complete"){ 
	      document.getElementById("dummy").innerHTML = mioObj.responseText;
		  location.reload();
	   } else {
	      document.getElementById("dummy").innerHTML = "loading..."
	   }
	} 
	mioObj = crea_istanzaXHRObj();
	if (mioObj==null){
		alert ("Browser does not support HTTP Request")
	} else {
		mioObj.onreadystatechange = CallBack;
		mioObj.open("GET","lingua.asp?lingua="+lingua,true)
		mioObj.send(null)
	}
}

function crea_istanzaXHRObj() { 
   // istanza oggetto XMLHttpRequest
   var istanzaXHRObj=null;
   if (window.XMLHttpRequest) { // Mozzilla, Safari, ...
      istanzaXHRObj=new XMLHttpRequest();
   }
   else if (window.ActiveXObject)  { // IE
      try {
	      istanzaXHRObj=new ActiveXObject("Msxml2.XMLHTTP")
	  } catch(e) {
	      try {
		      istanzaXHRObj=new ActiveXObject("Microsoft.XMLHTTP")
		  } catch(e) {
	  	}
	  }
   }
   return istanzaXHRObj
}


