<!--
function book_lynda_validate(theForm)
{

  //First Name:
    if (theForm.first_name.value == "")
    {
      alert("Please enter a \"First Name\".");
      theForm.first_name.focus();
      return (false);
    }

  //Last Name:
    if (theForm.last_name.value == "")
    {
      alert("Please enter a \"Last Name\".");
      theForm.last_name.focus();
      return (false);
    }

  //Company:
    if (theForm.company.value == "")
    {
      alert("Please enter a \"Company\".");
      theForm.company.focus();
      return (false);
    }

  //Email:
    var str=theForm.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);
      }
    if (theForm.email.value.length > 55)
    {
      alert("Please enter at most 55 characters for the \"Email Address\".");
      theForm.email.focus();
      return (false);
    }

  //Phone:
    if (theForm.phone.value == "")
    {
      alert("Please enter a \"Phone\" number.");
      theForm.phone.focus();
      return (false);
    }

  //Address:
    if (theForm.address.value == "")
    {
      alert("Please enter an \"Address\".");
      theForm.address.focus();
      return (false);
    }

  //City:
    if (theForm.city.value == "")
    {
      alert("Please enter a \"City\".");
      theForm.city.focus();
      return (false);
    }

 
  //State/Provence:
    if (theForm.state_province.value == "")
    {
      alert("Please enter a \"State/Provence\".");
      theForm.state_province.focus();
      return (false);
    }

  //Postal Code:
    if (theForm.postal_code.value == "")
    {
      alert("Please enter a \"Postal Code\".");
      theForm.postal_code.focus();
      return (false);
    }
  
  //Business Description:
    if (theForm.bus_desc.value == "")
    {
      alert("Please enter a \"Business Description\".");
      theForm.bus_desc.focus();
      return (false);
    }

    if (theForm.InfoRequest.value.length > 1000)
    {
      alert("Please enter at most 1000 characters for the \"Business Description\".");
      theForm.InfoRequest.focus();
      return (false);
    }

  //Group Description:
    if (theForm.group_desc.value == "")
    {
      alert("Please enter a \"Group Description\".");
      theForm.group_desc.focus();
      return (false);
    }

    if (theForm.group_desc.value.length > 1000)
    {
      alert("Please enter at most 1000 characters for the \"Group Description\".");
      theForm.group_desc.focus();
      return (false);
    }

  //Number of Attendees:
    if (theForm.no_attendees.value == "")
    {
      alert("Please enter \"Number of Attendees\".");
      theForm.no_attendees.focus();
      return (false);
    }

  //timeframe_dates:
    if (theForm.timeframe_dates.value == "")
    {
      alert("Please enter \"timeframe_dates\".");
      theForm.timeframe_dates.focus();
      return (false);
    }

//Script end
  return (true);
}

//-->
