<!--
function EventForm_Validator(theForm)
{

  //Type of Event:
    if (theForm.event_type.value == "")
    {
      alert("Please enter a value for the \"Type of Event\" field.");
      theForm.event_type.focus();
      return (false);
    }

  //ordering_interest
    if (theForm.ordering_interest.length > 200)
    {
      alert("Please enter less than 200 characters into the \"Items Interested in Ordering\" field.");
      theForm.ordering_interest.focus();
      return (false);
    }

  //person_ordering
    if (theForm.person_ordering.value == "")
    {
      alert("Please enter a name for the person ordering.");
      theForm.person_ordering.focus();
      return (false);
    }

  //Person Cell Phone or Second Phone:
    if (theForm.ordering_phone.value == "") 
    {
      alert("Either a Cell Phone or Second Phone number is required.");
      theForm.ordering_phone.focus();
      return (false);
    }

  //Person Ordering Email:
    var str=theForm.ordering_email.value
    var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
      if (filter.test(str))
      testresults=true
      else{
      alert("Please input a valid email address!");
      return (false);
      }


  //comments_concerns
    if (theForm.comments_concerns.length > 200)
    {
      alert("Please enter less than 200 characters into the \"Floral Color Scheme ...\" field.");
      theForm.comments_concerns.focus();
      return (false);
    }

  return (true);
}

//-->
