<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->

function validateFormLocal(theForm)
{var testresults	  
var str=theForm.Email.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i


  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Email.value != "")
	{
	if (filter.test(str))
	testresults = true
	else{
		alert("Please input a valid email address!")
		theForm.Email.focus();
			return (false);
			}
			}

  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

	if (theForm.Address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.Address.focus();
   return (false);
  }
  if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return (false);
  }
  if (theForm.State.value == "")
  {
    alert("Please enter a value for the \"State\" field.");
    theForm.State.focus();
    return (false);
  }
  if (theForm.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.Zip.focus();
    return (false);
  }
   if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }
   if (theForm.Project.value == "")
  {
    alert("Please enter a value for the \"Project\" field.");
    theForm.Project.focus();
    return (false);
  }
   if (theForm.Prjname.value == "")
  {
    alert("Please enter a value for the \"Name of Film, Product or Group\" field.");
    theForm.Prjname.focus();
    return (false);
  }
   if (theForm.When.value == "")
  {
    alert("Please enter a value for the \"When do you want to film\" field.");
    theForm.When.focus();
    return (false);
  }
    if (theForm.Days.value == "")
  {
    alert("Please enter a value for the \"How many days\" field.");
    theForm.Days.focus();
    return (false);
  }
  if (theForm.Size.value == "")
  {
    alert("Please enter a value for the \"Size of Cast and Crew\" field.");
    theForm.Size.focus();
    return (false);
  }
  if (theForm.Services.value == "")
  {
    alert("Please enter a value for the \"Location(s), services needed\" field.");
    theForm.Services.focus();
    return (false);}

  return (testresults);
}
//->
