
  function Modulo(form) {
        var controllo_privacy = form.chkprivacy.checked;
        var nome = form.nome.value;
  	var attivita = form.attivita.value;
  	var localita = form.localita.value;
  	var telefono = form.telefono.value;
  	var email = form.email.value;
  	var testo = form.testo.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 Cognome e nome/Ragione sociale č obbligatorio.");
       form.nome.focus();
       return false;
    }
    if (!(attivita != "") || !(attivita != "undefined")) {
       alert("Il campo Attivitā č obbligatorio.");
       form.attivita.focus();
       return false;
    }
    if (!(localita != "") || !(localita != "undefined")) {
       alert("Il campo Localitā č obbligatorio.");
       form.localita.focus();
       return false;
    }
    if (!(telefono != "") || !(telefono != "undefined")) {
       alert("Il campo Telefono č obbligatorio.");
       form.telefono.focus();
       return false;
    }
    if ((testo == "") || (testo == "undefined")) {
       alert("Il campo Testo č obbligatorio.");
       form.testo.focus();
       return false;
    }
    if (!(email_reg_exp.test(email)) || (email == "") || (email == "undefined")) {
       alert("Inserire un indirizzo email corretto.");
       form.email.select();
       return false;
    }
    if (controllo_privacy!=true) {
       alert("Non č stata presa visione dell'informativa sulla Privacy");
       form.chkprivacy.focus();
       return false;
    }
    return true;
  }
 
