
function FrontPage_Form1_Validator_en(theForm)
{

  if (theForm.last_name.value == "")
  {
    alert("\"Last Name\" field cannot be left blank.");
    theForm.last_name.focus();
    return (false);
  }

  if (theForm.last_name.value.length > 40)
  {
    alert("\"Last Name\" must be less than 40 characters.");
    theForm.last_name.focus();
    return (false);
  }

  if (theForm.company.value == "")
  {
    alert("\"Company\" field cannot be left blank.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.company.value.length > 80)
  {
    alert("\"Company\" must be less than 80 characters.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("\"Email\" field cannot be left blank..");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 80)
  {
    alert("\"Email\" must be less than 80 characters.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("\"Phone\" field cannot be left blank.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.phone.value.length > 40)
  {
    alert("\"Phone\" must be less than 40 characters.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.country.value == "")
  {
    alert("\"Country\" field cannot be left blank.");
    theForm.country.focus();
    return (false);
  }

  if (theForm.country.value.length > 40)
  {
    alert("\"Country\" must be less than 40 characters.");
    theForm.country.focus();
    return (false);
  }
  return (true);
}



function FrontPage_Form1_Validator_ita(theForm)
{

  if (theForm.last_name.value == "")
  {
    alert("Inserire un valore per il campo \"Cognome\".");
    theForm.last_name.focus();
    return (false);
  }

  if (theForm.last_name.value.length > 40)
  {
    alert("Inserire al massimo 40 caratteri nel campo \"Cognome\".");
    theForm.last_name.focus();
    return (false);
  }

  if (theForm.company.value == "")
  {
    alert("Inserire un valore per il campo \"Azienda\".");
    theForm.company.focus();
    return (false);
  }

  if (theForm.company.value.length > 80)
  {
    alert("Inserire al massimo 80 caratteri nel campo \"Azienda\".");
    theForm.company.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Inserire un valore per il campo \"Email\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 80)
  {
    alert("Inserire al massimo 80 caratteri nel campo \"Email\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("Inserire un valore per il campo \"Telefono\".");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.phone.value.length > 40)
  {
    alert("Inserire al massimo 40 caratteri nel campo \"Telefono\".");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.country.value == "")
  {
    alert("Inserire un valore per il campo \"Paese\".");
    theForm.country.focus();
    return (false);
  }

  if (theForm.country.value.length > 40)
  {
    alert("Inserire al massimo 40 caratteri nel campo \"Paese\".");
    theForm.country.focus();
    return (false);
  }
  return (true);
}

