 function Modulo() {
     // Variabili associate ai campi del modulo
     var nome_utente = document.form.nome.value;
     var cognome_utente = document.form.cognome.value;
     var email = document.form.email.value;
	 var accept = document.form.accept;
     // Espressione regolare dell'email
     var email_reg_exp = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;    //UP-EG 26-12-08 gmail extended addresses
       
        //Effettua il controllo sul campo nome_cliente
        if ((nome_utente == "") || (nome_utente == "undefined")) {
           alert("Il campo Nome è obbligatorio.");
           document.form.nome.focus();
           return false;
        }else if ((cognome_utente == "") || (cognome_utente == "undefined")) {
           alert("Il campo Cognome è obbligatorio.");
           document.form.cognome.focus();
           return false;
        }else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
           alert("Inserire un indirizzo email corretto.");
           document.form.email.select();
           return false;
/*  UP-EG 26-12-08           
        }else if ((tel == "") || (tel == "undefined")) {
           alert("Il campo tel è obbligatorio.");
           document.form.tel.focus();
           return false;
*/           
        }else if (accept.checked==false) {
           alert("Devi accettare l'informativa sulla privacy ed acconsentire al trattamento dati.");
           document.form.accept.focus();
           return false;
        }                     //INVIA IL form
        else {
              document.form.submit();
        }
  }


function controllo_data(stringa){
	var espressione = /^[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/;
  	if (!espressione.test(stringa))	return false; else return true;
}