<!--
function isValid(theForm){

  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the First Name field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.FirstName.value.length > 256)
  {
    alert("Please enter at most 256 characters in the First Name field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("Please enter a value for the City field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.City.value.length > 256)
  {
    alert("Please enter at most 256 characters in the City field.");
    theForm.City.focus();
    return (false);
  }

 if (theForm.Country.value == "")
  {
    alert("Please enter a value for the Country field.");
    theForm.Country.focus();
    return (false);
  }

  if (theForm.Country.value.length > 256)
  {
    alert("Please enter at most 256 characters in the Country field.");
    theForm.Country.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 > 256)
  {
    alert("Please enter at most 256 characters in the Email field.");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Email.value.indexOf("@") + "" == "-1" ||
        theForm.Email.value.indexOf(".") + "" == "-1")
  { 
     alert("Your email address appears to be invalid, please re-enter in the Email field.");
     theForm.Email.value="";
     theForm.Email.focus();
     return (false);
  }

  theForm.SendIt.value="Sending...";

  return (true);
}
// -->

