function Form1_Validator(theForm)
{
if (theForm.firstname.value == "")
  {
    alert("Si prega di scrivere il vostro nome in questo campo.");
    theForm.firstname.focus();
    return (false);
  }
if (theForm.lastname.value == "")
  {
    alert("Si prega di scrivere il vostro cognome in questo campo.");
    theForm.lastname.focus();
    return (false);
  }
if (theForm.city.value == "")
  {
    alert("Si prega di indicare la vostra citta.");
    theForm.city.focus();
    return (false);
  }
if (theForm.country.value == "")
  {
    alert("Si prega d’indicare il vostro paese.");
    theForm.country.focus();
    return (false);
  }
if (theForm.email.value == "")
  {
    alert("Si prega di scrivere la tua e-mail in questo campo.");
    theForm.email.focus();
    return (false);
  }
if (theForm.email.value.indexOf('@',0)==-1 ||
        theForm.email.value.indexOf('.',0)==-1)
        {
            alert("Si prega di scrivere la tua e-mail in questo campo.")
            theForm.email.select()
            theForm.email.focus()
            return (false);
        }
if (theForm.email2.value == "")
    {
    alert("Si prega di confermare la tua e-mail.");
    theForm.email2.focus();
    return (false);
  }
if(theForm.email.value!=theForm.email2.value)
  {
  alert('E-mail deve essere lo stesso nei campi \"E-mail\" e \"Conferma E-mail\".');
  theForm.email.focus();
  return false;
  }
if (theForm.age.value == "")
  {
    alert("Si prega di indicare la vostra eta.");
    theForm.age.focus();
    return (false);
  }
if (theForm.gender.value == "")
  {
    alert("Si prega d’indicare il vostro sesso.");
    theForm.sex[0].focus();
    return (false);
  }
if (theForm.durationofdisease.value == "")
  {
    alert("Si prega d’indicare la durazione totale della malattia.");
    theForm.duration[0].focus();
    return (false);
  }
if (theForm.captcha_code.value == "")
  {
    alert("Si prega di digitare il codice digitale.");
    theForm.captcha_code.focus();
    return (false);
  } 
   return (true);
}
