function Form1_Validator(theForm, language)
{	 
  //etichette
  if (language =='IT')
  	{
	  var eti00 = "Inserire il Nominativo o la Ragione Sociale dell'Azienda.";
	  var eti01 = "Inserire il Codice Fiscale o la Partita IVA  dell'Azienda.";
	  var eti02 = "Inserire un indirizzo E-mail.";
	  var eti03 = "Indirizzo e-mail non valido !";
	  var eti04 = "Inserire il numero di Telefono.";
	  var eti05 = "Inserire Note.";
	  var eti07 = "Si deve acconsentire al trattamento dei dati personali"; 
	}
  
  
  if (theForm.nome.value == "")
  {
    alert(eti00);
    theForm.nome.focus();
    return (false);
  }

  if (theForm.emailadd.value == "")
  {
    alert(eti02);
    theForm.emailadd.focus();
    return (false);
  }
  
 if (theForm.emailadd.value.indexOf('@', 0) == -1 || theForm.emailadd.value.indexOf('.', 0) == -1)
  { 
	alert(eti03);
    theForm.emailadd.focus();
    return (false);
  }
  if (theForm.tel.value == "")
  
  {
    alert(eti04);
    theForm.tel.focus();
    return (false);
  }
  if (theForm.note.value == "")
  
  {
    alert(eti05);
    theForm.note.focus();
    return (false);
  }
  if( theForm.privacy.checked==false ) 
	{
 	alert(eti07);
	theForm.privacy.focus();
	return (false);
	}

  return (true);
}
