
function FrontPage_Form1_Validator(theForm)
{
    if (theForm.company.value == "")
  {
    alert("Company is a required field.");
    theForm.company.focus();
    return (false);
  }
  
    if (theForm.name.value == "")
  {
    alert("Name is a required field.");
    theForm.name.focus();
    return (false);
  }
  
  if (theForm.country.value == "")
  {
    alert("Country is a required field");
    theForm.country.focus();
    return (false);
  }
  
  if (theForm.Email.value == "")
  {
    alert("eMail is a required field.");
    theForm.Email.focus();
    return (false);
  }

  if ((theForm.Email.value < "") || (theForm.Email.value > ""))
  {

  if ((theForm.Email.value.indexOf("@") < 0) || (theForm.Email.value.indexOf("@") > theForm.Email.value.length-1))
  {
    alert("Give us an valid \"eMail\" address.");
    theForm.Email.focus();
    return (false);
  }


  if ((theForm.Email.value.indexOf(".") < 0) || (theForm.Email.value.indexOf(".") > theForm.Email.value.length-1))
  {
    alert("Please, give us an valid \"eMail\" address.");
    theForm.Email.focus();
    return (false);
  }
  }
  return (true);
}
