<!-- Form Validation

function ValidateForm(theForm)
{

  if (theForm.Event.value == "")
  {
    alert("Please enter a value for the \"Event\" field.");
    theForm.Event.focus();
    return (false);
  }

  if (theForm.Event.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Event\" field.");
    theForm.Event.focus();
    return (false);
  }

  if (theForm.EventDate.value == "")
  {
    alert("Please enter a value for the \"EventDate\" field.");
    theForm.EventDate.focus();
    return (false);
  }

  if (theForm.EventDate.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"EventDate\" field.");
    theForm.EventDate.focus();
    return (false);
  }

  if (theForm.EventTime.value == "")
  {
    alert("Please enter a value for the \"EventTime\" field.");
    theForm.EventTime.focus();
    return (false);
  }

  if (theForm.EventTime.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"EventTime\" field.");
    theForm.EventTime.focus();
    return (false);
  }

  if (theForm.EventLocation.value == "")
  {
    alert("Please enter a value for the \"EventLocation\" field.");
    theForm.EventLocation.focus();
    return (false);
  }

  if (theForm.EventLocation.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"EventLocation\" field.");
    theForm.EventLocation.focus();
    return (false);
  }

  if (theForm.RequestedEnsemble.selectedIndex == 0)
  {
    alert("The first \"RequestedEnsemble\" option is not a valid selection.  Please choose one of the other options.");
    theForm.RequestedEnsemble.focus();
    return (false);
  }
if (theForm.Security.selectedIndex == 0)
	{
		alert("Please enter a security option.");
		theForm.Security.focus();
		return (false);
	}
	
  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length < 1)
  {
    alert("Please enter at least 1 characters in 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.Address.value.length < 1)
  {
    alert("Please enter at least 1 characters in 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.City.value.length < 1)
  {
    alert("Please enter at least 1 characters in 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.State.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"State\" field.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.ZipCode.value == "")
  {
    alert("Please enter a value for the \"ZipCode\" field.");
    theForm.ZipCode.focus();
    return (false);
  }

  if (theForm.ZipCode.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"ZipCode\" field.");
    theForm.ZipCode.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Phone.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }
  
  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }	

  if (theForm.ImageField.value == "")
  {
    alert("Please enter a value for the \"Number\" field.");
    theForm.ImageField.focus();
    return (false);
  }
//  return (true);
}
//-->
