function Modulo() {
     // Variabili associate ai campi del modulo
	 var nome = document.modulo.nome.value;
	 var cognome = document.modulo.cognome.value;
     var email = document.modulo.email.value;
	 var indirizzo = document.modulo.indirizzo.value;
	 var piva = document.modulo.piva.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 è obbligatorio.");
           document.modulo.nome.focus();
           return false;
        }
		//Effettua il controllo sul campo COGNOME
        if ((cognome == "") || (cognome == "undefined")) {
           alert("Il campo cognome è obbligatorio.");
           document.modulo.cognome.focus();
           return false;
        }
		//Effettua il controllo sul campo EMAIL
        else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
           alert("Inserire un indirizzo E-mail corretto.");
           document.modulo.email.select();
           return false;
        }
		//Effettua il controllo sul campo INDIRIZZO
        if ((indirizzo == "") || (indirizzo == "undefined")) {
           alert("Il campo indirizzo è obbligatorio.");
           document.modulo.indirizzo.focus();
           return false;
        }
		//Effettua il controllo sul campo P.IVA
        if ((piva == "") || (piva == "undefined")) {
           alert("Il campo P.iva / codice fiscale è obbligatorio.");
           document.modulo.piva.focus();
           return false;
        }
	
		if (!document.modulo.dati2.checked) {
			alert("E' obbligatorio leggere ed accettare l'informativa in tutte le sue parti");
			document.modulo.dati2.focus();
			return false;
		}		
        //INVIA IL MODULO
        else {
           document.modulo.action = "inviamail2.asp";
           document.modulo.submit();
        }
  }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}