function FormAreaCode_Validator(theForm) {	
		if (theForm.AreaCode.value.length != 3)
	  {
	    alert("Please enter 3 characters in the \"Area Code\" field.");
	    theForm.AreaCode.focus();
	    return (false);
	  }
	
	  var checkOK = "1234567890";
	  var checkStr = theForm.AreaCode.value;
	  var allValid = true;
	  var validGroups = 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 numbers in the \"Area Code\" field.");
	    theForm.AreaCode.focus();
	    return (false);
	  }
}
	  
function FormZipCode_Validator(theForm)
{	
  	  if (theForm.Zip.value.length > 5)
	  {
	    alert("Please enter no more than 5 digits in the \"Zip\" field.");
	    theForm.Zip.focus();
	    return (false);
	  }
   	  if (theForm.Zip.value.length < 5)
	  {
	    alert("Please enter 5 characters in the \"Zip\" code field.");
	    theForm.Zip.focus();
	    return (false);
	  }
	 var checkOK = "1234567890";
	  var checkStr = theForm.Zip.value;
	  var allValid = true;
	  var validGroups = 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 numbers in the \"Zip\" field.");
	    theForm.Zip.focus();
	    return (false);
	  }
}

function FormCityState_Validator(theForm)	
{
	  if (theForm.City.value == "")
	  {
	    alert("Please enter a value for the \"City\" field.");
	    theForm.City.focus();
	    return (false);
	  }
	
	if (theForm.City.value.length < 3)
	  {
	    alert("Please enter valid data in the \"City\" field.");
	    theForm.City.focus();
	    return (false);
	  }
	  
	  if (theForm.City.value.length > 50)
	  {
	    alert("Please enter at most 50 characters in the \"City\" field.");
	    theForm.City.focus();
	    return (false);
	  }
	
	  if (theForm.State.selectedIndex < 0)
	  {
	    alert("Please select one of the \"State or Province\" options.");
	    theForm.State.focus();
	    return (false);
	  }
	
	  if (theForm.State.selectedIndex == 0)
	  {
	    alert("The first \"State or Province\" option is not a valid selection.  Please choose one of the other options.");
	    theForm.State.focus();
	    return (false);
	  }

}	

