 <!--
  function Modulo() {
     // Variabili associate ai campi del modulo
     var nome = document.modulo.nome.value;
     var oggetto = document.modulo.oggetto.value;
     var messaggio = document.modulo.messaggio.value;
     var email = document.modulo.mail.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 \350 obbligatorio.");
           document.modulo.nome.focus();
           return false;
        }
        if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
           alert("Inserire un indirizzo email corretto.");
           document.modulo.mail.select();
           return false;
        }
        //Effettua il controllo sul campo OGGETTO
        if ((oggetto == "") || (oggetto == "undefined")) {
           alert("Il campo Oggetto \350 obbligatorio.");
           document.modulo.oggetto.focus();
           return false;
        }
        //Effettua il controllo sul campo MESSAGGIO
        else if ((messaggio == "") || (messaggio == "undefined")) {
           alert("Il campo Messaggio \350 vuoto.");
           document.modulo.messaggio.focus();
           return false;
        }
        //INVIA IL MODULO
        else {
           document.modulo.action = "contatti.html";
           document.modulo.submit();
        }
  }
 //-->

