<!--
function Event_Submission_Form_Validator(theForm)
{

//Event Name: -------------------------------------------------------------------------
  if (theForm.evnt_name.value == "")
  {
    alert("Please enter a value for the \"Event Name\" field.");
    theForm.evnt_name.focus();
    return (false);
  }

  if (theForm.evnt_name.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Event Name\" field.");
    theForm.evnt_name.focus();
    return (false);
  }

//Sponsoring Organizations: ----------------------------------------------
  if (theForm.sponsor_orgs.value == "")
  {
    alert("Please enter a value for the \"Sponsoring Organizations\" field.");
    theForm.sponsor_orgs.focus();
    return (false);
  }

  if (theForm.sponsor_orgs.value.length > 255)
  {
    alert("Please enter at most 255 characters in the \"Sponsoring Organizations\" field.");
    theForm.sponser_orgs.focus();
    return (false);
  }

//Event Description: -----------------------------------------------------
  if (theForm.evnt_desc.value == "")
  {
    alert("Please enter a value for the \"Event Description\" field.");
    theForm.evnt_desc.focus();
    return (false);
  }

  if (theForm.evnt_desc.value.length > 255)
  {
    alert("Please enter at most 255 characters in the \"Event Description\" field.");
    theForm.evnt_desc.focus();
    return (false);
  }

//Event location: --------------------------------------------------------
  if (theForm.evnt_location.value == "")
  {
    alert("Please enter a value for the \"Event Location\" field.");
    theForm.evnt_location.focus();
    return (false);
  }

  if (theForm.evnt_location.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Event Location\" field.");
    theForm.evnt_location.focus();
    return (false);
  }

//Event address: ---------------------------------------------------------
  if (theForm.evnt_addr.value == "")
  {
    alert("Please enter a value for the \"Event address\" field.");
    theForm.evnt_addr.focus();
    return (false);
  }

  if (theForm.evnt_addr.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Event address\" field.");
    theForm.evnt_addr.focus();
    return (false);
  }

//Event city: ------------------------------------------------------------
  if (theForm.evnt_city.value == "")
  {
    alert("Please enter a value for the \"Event city\" field.");
    theForm.evnt_city.focus();
    return (false);
  }

  if (theForm.evnt_city.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Event city\" field.");
    theForm.evnt_city.focus();
    return (false);
  }

//Event state: -----------------------------------------------------------
  if (theForm.evnt_state.value == "")
  {
    alert("Please enter a value for the \"Event state\" field.");
    theForm.evnt_state.focus();
    return (false);
  }

  if (theForm.evnt_state.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Event state\" field.");
    theForm.evnt_state.focus();
    return (false);
  }

//Event zip code: ----------------------------------------------------
  if (theForm.evnt_zip.value == "")
  {
    alert("Please enter a value for the \"Event zip code\" field.");
    theForm.evnt_zip.focus();
    return (false);
  }

  if (theForm.evnt_zip.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Event zip code\" field.");
    theForm.evnt_zip.focus();
    return (false);
  }

//Event type: ------------------------------------------------------------
  if  ((theForm.evnt_type_workshop.checked    == false)
  &&   (theForm.evnt_type_luncheon.checked    == false)
  &&   (theForm.evnt_type_dinner.checked      == false)
  &&   (theForm.evnt_type_screening.checked   == false)
  &&   (theForm.evnt_type_premiere.checked    == false)
  &&   (theForm.evnt_other.value              == ""   ))
  {
    alert("Please enter at least one \"Type of Event\" selection or description.");
    theForm.evnt_other.focus();
    return (false);
  }

//Event Days: -------------------------------------------------------------------------
  if (theForm.evnt_days.value == "")
  {
    alert("Please enter a value for the \"Number of Days\" field.");
    theForm.evnt_days.focus();
    return (false);
  }

  var checkOK = "0123456789--/";
  var checkStr = theForm.evnt_days.value;
  var allValid = 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 digit and \"-/\" characters in the \"Number of Days\" field.");
    theForm.evnt_days.focus();
    return (false);
  }

//Event Beginning Date: ---------------------------------------------------------------
  if (theForm.evnt_beg_date.value == "")
  {
    alert("Please enter a value for the \"Beginning Date\" field.");
    theForm.evnt_beg_date.focus();
    return (false);
  }

  if (theForm.evnt_beg_date.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Beginning Date\" field.");
    theForm.evnt_beg_date.focus();
    return (false);
  }

//Event Ending Date: -----------------------------------------------------
//  if (theForm.evnt_end_date.value == "")
//  {
//    alert("Please enter a value for the \"Ending Date\" field.");
//    theForm.evnt_end_date.focus();
//    return (false);
//  }
//
//  if (theForm.evnt_end_date.value.length > 20)
//  {
//    alert("Please enter at most 20 characters in the \"Ending Date\" field.");
//    theForm.evnt_end_date.focus();
//    return (false);
//  }

//Event Beginning Time: ---------------------------------------------------------------
  if (theForm.evnt_beg_time.value == "")
  {
    alert("Please enter a value for the \"Beginning Time\" field.");
    theForm.evnt_beg_time.focus();
    return (false);
  }

  if (theForm.evnt_beg_time.value.length > 10)
  {
    alert("Please enter at most 10 characters in the \"Beginning Time\" field.");
    theForm.evnt_beg_time.focus();
    return (false);
  }

//Event Ending Time: -----------------------------------------------------
//  if (theForm.evnt_end_time.value == "")
//  {
//    alert("Please enter a value for the \"Ending Time\" field.");
//    theForm.evnt_end_time.focus();
//    return (false);
//  }
//
//  if (theForm.evnt_end_time.value.length > 10)
//  {
//    alert("Please enter at most 10 characters in the \"Ending Time\" field.");
//    theForm.evnt_end_time.focus();
//    return (false);
//  }

//Event cost: ------------------------------------------------------------
  if (theForm.evnt_cost.value == "")
  {
    alert("Please enter a value for the \"Cost to Attend\" field.");
    theForm.evnt_cost.focus();
    return (false);
  }

  var checkOK = "0123456789-$,.";
  var checkStr = theForm.evnt_cost.value;
  var allValid = 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 digit and \"$,.\" characters in the \"Cost to Attend\" field.");
    theForm.evnt_cost.focus();
    return (false);
  }

//Event comments: --------------------------------------------------------
  if (theForm.cost_comments.value.length > 250)
  {
    alert("Please enter at most 250 characters in the \"Event comments\" field.");
    theForm.cost_comments.focus();
    return (false);
  }

//Who should attend: -----------------------------------------------------
  if (theForm.who_attends.value.length > 250)
  {
    alert("Please enter at most 250 characters in the \"Who should attend\" field.");
    theForm.who_attends.focus();
    return (false);
  }

//Interested party phones: ---------------------------------------------------------
  if ((theForm.res_phone_days.value == "")
  &&  (theForm.res_phone_eves.value == ""))
  {
    alert("Please enter at least one \"Interested Parties phone\" number.");
    theForm.res_phone_days.focus();
    return (false);
  }

  if (theForm.res_phone_days.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Phone for interested parties, days\" field.");
    theForm.res_phone_days.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-()-EeXxTt \t\r\n\f";
  var checkStr = theForm.res_phone_days.value;
  var allValid = 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, whitespace and \"()-EeXxTt\" characters in the \"Phone for interested parties, evenings\" field.");
    theForm.res_phone_days.focus();
    return (false);
  }

//Interested party eve phone: ---------------------------------------------------------
  if (theForm.res_phone_days.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Phone for interested parties, evenings\" field.");
    theForm.res_phone_eves.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-()-EeXxTt \t\r\n\f";
  var checkStr = theForm.res_phone_eves.value;
  var allValid = 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, whitespace and \"()-EeXxTt\" characters in the \"Phone for interested parties, evenings\" field.");
    theForm.res_phone_eves.focus();
    return (false);
  }

//Check recipient name: ---------------------------------------------------------------
  if (theForm.check_to_name.value == "")
  {
    alert("Please enter a value for the \"Check recipient name\" field.");
    theForm.check_to_name.focus();
    return (false);
  }

  if (theForm.check_to_name.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Check recipient name\" field.");
    theForm.check_to_name.focus();
    return (false);
  }

//Check recipient address: ------------------------------------------------------------
  if (theForm.check_to_addr.value == "")
  {
    alert("Please enter a value for the \"Check recipient address\" field.");
    theForm.check_to_addr.focus();
    return (false);
  }

  if (theForm.check_to_addr.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Check recipient address\" field.");
    theForm.check_to_addr.focus();
    return (false);
  }

//Check recipient city: ---------------------------------------------------------------
  if (theForm.check_to_city.value == "")
  {
    alert("Please enter a value for the \"Check recipient city\" field.");
    theForm.check_to_city.focus();
    return (false);
  }

  if (theForm.check_to_city.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Check recipient address\" field.");
    theForm.check_to_city.focus();
    return (false);
  }

//Check recipient state: --------------------------------------------------------------
  if (theForm.check_to_state.value == "")
  {
    alert("Please enter a value for the \"Check recipient state\" field.");
    theForm.check_to_state.focus();
    return (false);
  }

  if (theForm.check_to_state.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Check recipient state\" field.");
    theForm.check_to_state.focus();
    return (false);
  }

  if (theForm.check_to_state.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Check recipient state\" field.");
    theForm.check_to_state.focus();
    return (false);
  }

//Check recipient zip code: -----------------------------------------------------------
  if (theForm.check_to_zip.value == "")
  {
    alert("Please enter a value for the \"Check recipient zip code\" field.");
    theForm.check_to_zip.focus();
    return (false);
  }

  if (theForm.check_to_zip.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Check recipient zip code\" field.");
    theForm.check_to_zip.focus();
    return (false);
  }

//Check payable to: -------------------------------------------------------------------
  if (theForm.check_payable_to.value == "")
  {
    alert("Please enter a value for the \"Check payable to\" field.");
    theForm.check_payable_to.focus();
    return (false);
  }

  if (theForm.check_payable_to.value.length > 50)
  {
    alert("Please enter at most 20 characters in the \"Check payable to\" field.");
    theForm.check_payable_to.focus();
    return (false);
  }

//Submitter name: ---------------------------------------------------------------------
  if (theForm.submitter_name.value == "")
  {
    alert("Please enter a value for the \"Form submitted by\" field.");
    theForm.submitter_name.focus();
    return (false);
  }

  if (theForm.submitter_name.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Form submitted by\" field.");
    theForm.submitter_name.focus();
    return (false);
  }

//Event submitter day/evening phones: --------------------------------------------------
  if ((theForm.submitter_phone_days.value == "")
  &&  (theForm.submitter_phone_eves.value == ""))
  {
    alert("Please enter a value for either \"Submitted by day or evening phone\" field.");
    theForm.submitter_phone_days.focus();
    return (false);
  }

  if (theForm.submitter_phone_days.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Submitted by day phone\" field.");
    theForm.submitter_phone_days.focus();
    return (false);
  }

  if (theForm.submitter_phone_eves.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Submitted by evening phone\" field.");
    theForm.submitter_phone_eves.focus();
    return (false);
  }

//Event submitter email eddress: ----------------------------------------------------------------------
  if (theForm.submitter_email.value == "")
  {
    alert("Please enter a value for the \"Submitted by\" email address field.");
    theForm.submitter_email.focus();
    return (false);
  }

  if (theForm.submitter_email.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Submitted by\" email address field.");
    theForm.submitter_email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-.@";
  var checkStr = theForm.submitter_email.value;
  var allValid = 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.submitter_email.focus();
    return (false);
  }

  return (true);
}
//-->