function ModuloContatti() {
     
     
     var nome = document.modulo_contatti.nome.value;
     var cognome = document.modulo_contatti.cognome.value;
     var email = document.modulo_contatti.email.value;
     var telefono = document.modulo_contatti.telefono.value;
     var richiesta = document.modulo_contatti.note.value;
     
	 
    
     var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
        
        if ((nome == "") || (nome == "undefined")) {
           alert("Il campo Nome è obbligatorio.");
           document.modulo_contatti.nome.focus();
           return false;
        }
        if ((cognome == "") || (cognome == "undefined")) {
           alert("Il campo Cognome è obbligatorio.");
           document.modulo_contatti.cognome.focus();
           return false;
        }

				if ((telefono == "") || (telefono == "undefined")) {
           alert("Inserire il numero di telefono");
           document.modulo_contatti.telefono.focus();
           return false;
        }
		
				if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
           alert("Inserire un indirizzo e-mail corretto.");
           document.modulo_contatti.email.select();
           return false;
        }

				if ((richiesta == "") || (richiesta == "undefined")) {
           alert("Indicare il tipo di richiesta");
           document.modulo_contatti.note.focus();
           return false;
        }
        if (document.modulo_contatti.accetto.checked == false){
						alert('Impossibile inviare la richiesta\nnon è stata data l\'autorizzazione al trattamento dei dati personali');
						return false;
				}	
	
        else {
           return true;
        }
  }
  

