  function Modulo() {
     // Variabili associate ai campi del modulo
	 var nome = document.modulo.nome.value;
	 var testo = document.modulo.testo.value;
	 var email = document.modulo.email.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 azienda
		
		if ((nome == "") || (nome == "undefined")) {
           alert("Il campo Nome è obbligatorio.");
           document.modulo.nome.focus();
           return false;
        }
   

			else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
           alert("Inserire un indirizzo email corretto.");
           document.modulo.email.select();
		   document.modulo.email.focus();
           return false;
        }


		 else if ((testo == "") || (testo == "undefined")) {
           alert("Il campo Messaggio è obbligatorio.");
           document.modulo.testo.focus();
           return false;
        }	
							

 
        //INVIA IL MODULOs
        else {
           document.modulo.action = "http://www.lucianoolivieri.it/commento-exe-esegui.asp";
           document.modulo.submit();
        }
  }

