function Validator(theForm)
{

  if (theForm.Acco_Name.value == "")
  {
    alert("Please enter a value for the \"Acco_Name\" field.");
    theForm.Acco_Name.focus();
    return (false);
  }
 
  if (theForm.Acco_Name.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Acco_Name\" field.");
    theForm.Acco_Name.focus();
    return (false);
  }
 
  if (theForm.Description.value == "")
  {
    alert("Please enter a value for the \"Description\" field.");
    theForm.Description.focus();
    return (false);
  }
 
  if (theForm.Proprietor.value == "")
  {
    alert("Please enter a value for the \"Proprietor\" field.");
    theForm.Proprietor.focus();
    return (false);
  }
 
  if (theForm.Proprietor.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Proprietor\" field.");
    theForm.Proprietor.focus();
    return (false);
  }
 
  if (theForm.Street.value == "")
  {
    alert("Please enter a value for the \"Street\" field.");
    theForm.Street.focus();
    return (false);
  }
 
  if (theForm.Street.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Street\" field.");
    theForm.Street.focus();
    return (false);
  }
 
  if (theForm.Tel.value == "")
  {
    alert("Please enter a value for the \"Tel\" field.");
    theForm.Tel.focus();
    return (false);
  }
 
  if (theForm.Tel.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Tel\" field.");
    theForm.Tel.focus();
    return (false);
  }
 
  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }
 
  if (theForm.Email.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }
 
  if (theForm.Ref_id.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Ref_id\" field.");
    theForm.Ref_id.focus();
    return (false);
  }
  return (true);
}

