<!-- Validates the form
function Form1_Validator(theForm)
{
	//Validates a textbox that is less than 2 characters long
			if (theForm.realname.value.length < 2)
			{
			  alert("Please enter your name.");
			  theForm.realname.focus();
			  return (false);
			}

	//Validates an Email Address Textbox
			if (theForm.email.value == "")
			{
			  alert("Please enter your email address.");
			  theForm.email.focus();
			  return (false);
			}
 			var teststr = (theForm.email.value);
  			var iserr=false;
			  if (!teststr=='')
			  {
				  // there must be >= 1 character before @, so we
				  // start looking at character position 1
				  // (i.e. second character)
				  var i = 1;
				  var sLength = teststr.length;
				  // look for @
				  while ((i < sLength) && (teststr.charAt(i) != "@"))
				  {
					 i++;
				  }
				  if ((i >= sLength) || (teststr.charAt(i) != "@"))
				  {
					 iserr=true;
				  }
				  else
				  {
					 i += 2;
					 // look for "."
					 while ((i < sLength) && (teststr.charAt(i) != "."))
					 {
						i++;
					 }
					 // there must be at least one character after the "."
					 if ((i >= sLength - 1) || (teststr.charAt(i) != "."))
					 {
						iserr = true;
					 }
				  }
			   }
			   if (iserr)
			   {
				  alert('Please enter a valid email address.');
				  theForm.email.focus();
   			      return (false);
			   }

	//Validates a textbox that is less than 7 characters long
			if (theForm.phone.value.length < 7)
			{
			  alert("Please enter your Phone Number.");
			  theForm.phone.focus();
			  return (false);
			}

	//Validates a textbox that is less than 2 characters long
			if (theForm.Questions_Comments.value.length < 2)
			{
			  alert("Please enter your questions or comments.");
			  theForm.Questions_Comments.focus();
			  return (false);
			}
	}
//-->