<!--
  function Modulo() {



var referente = document.modulo.referente.value;
var indirizzo = document.modulo.indirizzo.value;
var cap = document.modulo.cap.value;
var citta = document.modulo.citta.value;
var prov = document.modulo.prov.options[document.modulo.prov.selectedIndex].value;
var cell = document.modulo.cell.value;
var email = document.modulo.email.value;

var tipo_intervento = document.modulo.tipo_intervento.options[document.modulo.tipo_intervento.selectedIndex].value;
var tipo_locale = document.modulo.tipo_locale.options[document.modulo.tipo_locale.selectedIndex].value;

var dettagli = document.modulo.dettagli.value;

var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if ((referente == "") || (referente == "undefined")) {
   alert("Il campo Referente è obbligatorio.");
   document.modulo.referente.focus();
   return false;
}


else if ((indirizzo == "") || (indirizzo == "undefined")) {
   alert("Il campo Indirizzo è obbligatorio.");
   document.modulo.indirizzo.focus();
   return false;
}

else if ((isNaN(cap)) || (cap == "") || (cap == "undefined") || cap.length < 5 || cap.length > 5) {
   alert("Il campo Cap è numerico ed obbligatorio.");
   document.modulo.cap.select();
   return false;
}
        

else if ((citta == "") || (citta == "undefined")) {
   alert("Il campo Città è obbligatorio.");
   document.modulo.citta.focus();
   return false;
}


else if ((prov == "") || (prov == "undefined") || (prov == "Null")) {
   alert("Il campo Provincia è obbligatorio.");
   document.modulo.prov.focus();
   return false;
}


else if ((cell == "") || (cell == "undefined") || cell.length < 7) {
   alert("Inserire un recapito Telefonico.");
   document.modulo.tel.focus();
   return false;
}


else if ((!email == "")  && (!email_reg_exp.test(email) || (email == "") || (email == "undefined"))) {
          alert("Inserire un indirizzo email corretto.");
           document.modulo.email.select();
           return false;
        }


else if ((tipo_intervento == "") || (tipo_intervento == "undefined") || (tipo_intervento == "Null")) {
   alert("Il campo Tipo Intervento è obbligatorio.");
   document.modulo.tipo_intervento.focus();
   return false;
}

else if ((tipo_locale == "") || (tipo_locale == "undefined") || (tipo_locale == "Null")) {
   alert("Il campo Tipo Locale è obbligatorio.");
   document.modulo.tipo_locale.focus();
   return false;
}

else if ((dettagli == "") || (dettagli == "undefined")) {
   alert("Il campo Dettagli Intervento è obbligatorio.");
   document.modulo.dettagli.focus();
   return false;
}


       //INVIA IL MODULO
        else {
           
           //document.modulo.action = "mail_contatto.asp";
           document.modulo.action = "grazie.aspx";
           document.modulo.submit();
        }



 }




 //-->