function Validator(theForm)
{

  if (theForm.account.value == "")
  {
    alert("Please enter the account number");
    theForm.account.focus();
    return (false);
  }

  if (theForm.account.value.length < 6)
  {
    alert("Please enter at least 6 characters for your Account Number.");
    theForm.account.focus();
    return (false);
  }

    if (theForm.email0.value == "")
  {
    alert("Please enter an invoice email address.");
    theForm.email0.focus();
    return (false);
  }

  if (theForm.email0.value.length < 6)
  {
    alert("Please enter at least 6 characters in the Invoice email Address field.");
    theForm.email0.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Please enter a Confirmation email address.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 6)
  {
    alert("Please enter at least 6 characters in the Confirmation email Address field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.phone.value == "")
  {
    alert("Please enter a phone number.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.phone.value.length < 10)
  {
    alert("Please enter the area code and the phone number.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.companyname.value == "")
  {
    alert("Please enter a company name.");
    theForm.companyname.focus();
    return (false);
  }

  if (theForm.companyname.value.length < 1)
  {
    alert("Please enter a company name.");
    theForm.companyname.focus();
    return (false);
  }

  if (theForm.contact.value == "")
  {
    alert("Please enter a contact name.");
    theForm.contact.focus();
    return (false);
  }

  if (theForm.contact.value.length < 1)
  {
    alert("Please enter a contact name.");
    theForm.contact.focus();
    return (false);
  }
  return (true);
}