 function Modulo() {
      // Variabili associate ai campi del modulo     
	  var nome = document.modulo.nome.value;     
	  var tel_fax = document.modulo.tel_fax.value;     
	  //var nickname = document.modulo.nickname.value;     
	  //var password = document.modulo.password.value;     
	  //var conferma = document.modulo.conferma.value;     
	  //var nascita = document.modulo.nascita.value;     
	  //var citta = document.modulo.citta.options[document.modulo.citta.selectedIndex].value;     
	  var indirizzo = document.modulo.indirizzo.value;
	  var citta = document.modulo.citta.value;
	  //var telefono = document.modulo.telefono.value;     
	  //var email = document.modulo.email.value;     
	  var note = document.modulo.note.value;     
	  // Espressione regolare dell'email     
	  //var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;        
	  //Effettua il controllo sul campo NOME        
	  if ((nome == "") || (nome == "undefined")) {           
	  alert("Il campo Nome e Cognome è obbligatorio.");           
	  document.modulo.nome.focus();           
	  return false;        }        
	  //Effettua il controllo sul campo TEL_FAX        
	  else if ((tel_fax == "") || (tel_fax == "undefined")) {           
	  alert("Il campo Telefono e Fax è obbligatorio.");           
	  document.modulo.tel_fax.focus();           
	  return false;        }        
	  //Effettua il controllo sul campo INDIRIZZO       
	   else if ((indirizzo == "") || (indirizzo == "undefined")) {           
	   alert("Il campo Indirizzo è obbligatorio.");           
	   document.modulo.indirizzo.focus();           
	   return false;        }        
	   //Effettua il controllo sul campo CITTA        
	   else if ((citta == "") || (citta == "undefined")) {           
	   alert("Il campo CAP, Città, Provincia è obbligatorio.");           
	   document.modulo.citta.focus();           
	   return false;        }        
	   //Effettua il controllo sul campo NOTE        
	   else if ((note == "") || (note == "undefined")) {           
	   alert("Il campo Note e richieste è obbligatorio.");           
	   document.modulo.note.focus();           
	   return false;        }        
	   //Verifica l'uguaglianza tra i campi PASSWORD e CONFERMA PASSWORD        
	   /*else if (password != conferma) {           
	   alert("La password confermata è diversa da quella scelta, controllare.");           
	   document.modulo.conferma.value = "";           
	   document.modulo.conferma.focus();           
	   return false;        }        
	   //Effettua il controllo sul campo DATA DI NASCITA        
	   else if (document.modulo.nascita.value.substring(2,3) != "/" ||           
	   document.modulo.nascita.value.substring(5,6) != "/" ||           
	   isNaN(document.modulo.nascita.value.substring(0,2)) ||           
	   isNaN(document.modulo.nascita.value.substring(3,5)) ||           
	   isNaN(document.modulo.nascita.value.substring(6,10))) {             
	   alert("Inserire nascita in formato gg/mm/aaaa");              
	   document.modulo.nascita.value = "";              
	   document.modulo.nascita.focus();              
	   return false;        }        
	   else if (document.modulo.nascita.value.substring(0,2) > 31) {           
	   alert("Impossibile utilizzare un valore superiore a 31 per i giorni");           
	   document.modulo.nascita.select();           
	   return false;        }        
	   else if (document.modulo.nascita.value.substring(3,5) > 12) {           
	   alert("Impossibile utilizzare un valore superiore a 12 per i mesi");           
	   document.modulo.nascita.value = "";           
	   document.modulo.nascita.focus();           
	   return false;        }        
	   else if (document.modulo.nascita.value.substring(6,10) < 1900) {          
	   alert("Impossibile utilizzare un valore inferiore a 1900 per l'anno");           
	   document.modulo.nascita.value = "";           
	   document.modulo.nascita.focus();           
	   return false;        }        
	   //Effettua il controllo sul campo CITTA'        
	   else if ((citta == "") || (citta == "undefined")) {          
	   alert("Il campo Città è obbligatorio.");          
	   document.modulo.citta.focus();          
	   return false;        }        
	   //Effettua il controllo sul campo INDIRIZZO        
	   else if ((indirizzo == "") || (indirizzo == "undefined")) {           
	   alert("Il campo Indirizzo è obbligatorio.");           
	   document.modulo.indirizzo.focus();           
	   return false;        }        
	   //Effettua il controllo sul campo TELEFONO        
	   else if ((isNaN(telefono)) || (telefono == "") || (telefono == "undefined")) {           
	   alert("Il campo Telefono è numerico ed obbligatorio.");           
	   document.modulo.telefono.value = "";           
	   document.modulo.telefono.focus();           
	   return false;        }       
	   else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {           
	   alert("Inserire un indirizzo email corretto.");           
	   document.modulo.email.select();           
	   return false;        }        
	   //Effettua il controllo sul campo HOMEPAGE        
	   else if ((homepage == "") || (homepage == "undefined") || (homepage.indexOf("http://") == (-1))) {           
	   alert("Il campo Homepage non può essere privo di http://");           
	   document.modulo.homepage.value = "http://";           
	   document.modulo.homepage.select();           
	   return false;        }        
	   //Effettua il controllo sul campo FIRMA        
	   else if ((firma == "") || (firma == "undefined") || (firma.indexOf("Inserisci qui il tuo slogan!") != (-1))) {           
	   alert("Il campo Firma è obbligatorio e non si può inserire la scritta predefinita.");           
	   document.modulo.firma.focus();           return false;        } 
	   */       
	   //INVIA IL MODULO        
	   else {           
	   document.modulo.action = "invio_mail.asp";           
	   document.modulo.submit();        
	   }  
	   } 