//   ***********************************************
//   controllo  che i campi del form siano compilati
//   http://www.northwind.it
//   ***********************************************
function Form_Validatorz(theForm)
{

  if (theForm.nome.value == "")
  {
    alert("Inserire un valore per il campo \"Nome\".");
    theForm.nome.focus();
    return (false);
  }

  if (theForm.cognome.value == "")
  {
    alert("Inserire un valore per il campo \"Cognome\".");
    theForm.cognome.focus();
    return (false);
  }
  
    if (theForm.citta.value == "")
  {
    alert("Inserire un valore per il campo \"Cittą\".");
    theForm.citta.focus();
    return (false);
  }
  
     if (theForm.email.value == "")
  {
    alert("Inserire un valore per il campo \"E-Mail\".");
    theForm.email.focus();
    return (false);
  }
  
  if (theForm.circolo.value == "")
  {
    alert("Inserire un valore per il campo \"Circolo di Appartenenza\".");
    theForm.circolo.focus();
    return (false);
  }
  
  if (theForm.indirizzo.value == "")
  {
    alert("Inserire un valore per il campo \"Indirizzo\".");
    theForm.indirizzo.focus();
    return (false);
  }
  
  if (theForm.provincia.value == "")
  {
    alert("Inserire un valore per il campo \"Provincia\".");
    theForm.provincia.focus();
    return (false);
  }
  
  if (theForm.username.value == "")
  {
    alert("Inserire un valore per il campo \"Username\".");
    theForm.username.focus();
    return (false);
  }
  
  if (theForm.password.value == "")
  {
    alert("Inserire un valore per il campo \"Password\".");
    theForm.password.focus();
    return (false);
  }
  
    if (theForm.password.value!=theForm.password2.value)
  {
    alert("Password e Conferma Password diverse, ripetere inserimento Password.");
    theForm.password.value="";
    theForm.password2.value="";
    theForm.password.focus();
    return (false);   
	}
	
  return (true);
}
