function Modulo3() {
var contatto  = document.modulo.contatto.value;
var nome      = document.modulo.nome.value;
var indirizzo = document.modulo.indirizzo.value;
var localita  = document.modulo.localita.value;
var telefono  = document.modulo.telefono.value;
var cellulare = document.modulo.cellulare.value;
var email     = document.modulo.email.value;
var email2    = document.modulo.email2.value;
var provincia = document.modulo.provincia.selectedIndex;
/*var comune	  =	document.modulo.comune.selectedIndex;*/
var tipologia =	document.modulo.tipologia.selectedIndex;
var	conferma  = document.modulo.conferma.value;
     
     var mail_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

if ((provincia == 0 )) {
alert("Il campo PROVINCIA è obbligatorio.");
document.provincia.contatto.focus();
return false;        }

/*else if ((comune == 0)) {
alert("Il campo COMUNE è obbligatorio.");
document.comune.contatto.focus();           
return false;}*/

else if ((contatto == "") || (contatto == "undefined")) {
alert("Il campo NOME DEL RESPONSABILE è obbligatorio.");
document.modulo.contatto.focus();           
return false;}

else if ((nome == "") || (nome == "undefined")) {
alert("Il campo NOME DELLA STRUTTURA è obbligatorio.");
document.modulo.nome.focus();           
return false;}

else if ((tipologia == 0)) {
alert("Il campo TIPOLOGIA è obbligatorio.");
document.tipologia.contatto.focus();           
return false;}

else if ((indirizzo == "") || (indirizzo == "undefined")) {
alert("Il campo INDIRIZZO è obbligatorio.");
document.modulo.indirizzo.focus();           
return false;}

else if ((localita == "") || (localita == "undefined")) {
alert("Il campo LOCALITA è obbligatorio.");
document.modulo.localita.focus();           
return false;}

else if ((telefono == "") || (telefono == "undefined")) {
alert("Il campo TELEFONO è obbligatorio.");
document.modulo.telefono.focus();           
return false;}
 
else if (!mail_reg_exp.test(email) || (email == "") || (email == "undefined")) {
alert("Inserire un indirizzo E-mail corretto.");
document.modulo.email.focus();           
return false;}

else if (!mail_reg_exp.test(email2) || (email2 == "") || (email2 == "undefined")) {
alert("Inserire un indirizzo E-mail corretto nel campo CONFERMA EMAIL.");
document.modulo.email2.focus();           
return false;}

else if ((email != email2 )) {
alert("Le due email devono coincidere!");
document.modulo.email.focus();           
return false;}

else if ((conferma == "") || (conferma == "undefined")) {
alert("Ricopia il CODICE DI CONFERMA!");
document.modulo.conferma.focus();           
return false;}

        //INVIA IL MODULO
        else {
           document.modulo.submit();
        }
     
  }