function lost_password(){
window.open('/riservata/password.asp', '', 'top=2, left=2, width=600, height=550, toolbar=no, location=no ,status=no, menubar=no, scrollbars=yes, resizable=yes')	
}
function foto(url){
			window.open('/pop/foto.asp?'+url, '', 'top=2, left=2, width=500, height=300, toolbar=no, location=no ,status=no, menubar=no, scrollbars=yes, resizable=yes');
}
function popEsito(id){
	window.open('/ordine/esito.asp?id='+id, '', 'top=2, left=2, width=550, height=500, toolbar=no, location=no ,status=no, menubar=no, scrollbars=yes, resizable=yes')
}


function ahah(url,target) {
   try {
	   document.getElementById(target).innerHTML = 'Loading...';
	   if (window.XMLHttpRequest) {
		   req = new XMLHttpRequest();
		   req.onreadystatechange = function() {ahahDone(target);};
		   req.open("GET", url, true);
		   req.send(null);
	   } else if (window.ActiveXObject) {
		   req = new ActiveXObject("Microsoft.XMLHTTP");
		   if (req) {
			   req.onreadystatechange = function() {ahahDone(target);};
			   req.open("GET", url, true);
			   req.send();
		   }
	   }
	}catch(z){ 
   		//alert(z.description.toString())
	}
} 
function ahahDone(target) {
   if (req.readyState == 4) {
	   if (req.status == 200 || req.status == 304) {
		   results = req.responseText;
		   document.getElementById(target).innerHTML = results;
	   } else {
		  // document.getElementById(target).innerHTML = "Attenzione si è verificato un'errore nell'elaborazione dei dati"; //+escape(req.statusText);
	   }
   }
}

function privacy(){
	ahah("/pop/privacy.asp","result")
}

function controllaLogin(){
	if(document.moduloLogin.login.value==""){
		alert("Inserisci Username");
		document.moduloLogin.login.focus();
		return false;
	}     	 
	if(document.moduloLogin.password.value==""){
		alert("Inserisci Password");
		document.moduloLogin.password.focus();
		return false;
	}     	 
}
