function doPublic(theForm)
{

  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-@.-";
  var checkStr = theForm.Email.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@.-\" characters in the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone Number\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Subject.value == "")
  {
    alert("Please enter a value for the \"Subject Of Message\" field.");
    theForm.Subject.focus();
    return (false);
  }

  if (theForm.IamA.selectedIndex < 0)
  {
    alert("Please select one of the \"Renter or Owner\" options.");
    theForm.IamA.focus();
    return (false);
  }

  if (theForm.IamA.selectedIndex == 0)
  {
    alert("Please select one of the \"Renter or Owner\" options.");
    theForm.IamA.focus();
    return (false);
  }
  return (true);
}
