// JavaScript Document
function Validatore_Form(theForm){
if (theForm.nome.value =="")
                {
                alert("Inserire il nome")
                theForm.nome.focus();
                return (false);
                }
if (theForm.cognome.value =="")
                {
                alert("Inserire il cognome")
                theForm.cognome.focus();
                return (false);
                }
if (theForm.richiesta.value =="")
                {
                alert("Inserire la richiesta")
                theForm.richiesta.focus();
                return (false);
                }
if (theForm.email.value =="")
                {
                alert("Inserire l'email")
                theForm.email.focus();
                return (false);
                }
if (theForm.telefono.value =="")
                {
                alert("Inserire il telefono")
                theForm.email.focus();
                return (false);
                }				
if (!check_email(theForm.email.value))
                {
                validity = false;
                alert("Email non valida");
                theForm.email.focus();
                return (false);
                }
if (!theForm.autorizzo.checked)
                {
                alert("Attenzione, senza l\'autorizzazione al trattamento dei dati, non possiamo accettare la sua richiesta")
                theForm.autorizzo.focus();
                return (false);
                }

}
function check_email(address) {
                  if ((address == "")
                       || (address.indexOf ("@") == -1)
                       || (address.indexOf (".") == -1))
                   return false;
                   return true;
                  }

