function FormValidator(theForm)
{
  var FmtStr="";
  var index = 0;
  var LimitCheck;
  var checkStr = theForm.phone.value;
  LimitCheck = checkStr.length;
  while (index != LimitCheck)
  {
   if (isNaN(parseInt(checkStr.charAt(index))))
    { }
   else
    { FmtStr = FmtStr + checkStr.charAt(index); }
   index = index + 1;
  }
  if (FmtStr.length != 10)
  {
    alert("Error - Phone ... U.S. phone numbers have exactly ten digits.");
    theForm.phone.focus();
    return (false);
  }
}  
