<!--
function Form1_Validator(theForm)
{

if (theForm.realname.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.realname.focus();
    return (false);
  }

  if (theForm.contact_phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.contact_phone.focus();
    return (false);
  }

  if (theForm.contact_phone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"phone\" field.");
    theForm.contact_phone.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.contact_phone.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  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;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Phone\" field.");
    theForm.contact_phone.focus();
    return (false);
  }

  if (theForm.contact_address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.contact_address.focus();
    return (false);
  }
  
  if (theForm.contact_city.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.contact_city.focus();
    return (false);
  }
  
  if (theForm.contact_zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.contact_zip.focus();
    return (false);
  }
  
    if (theForm.contact_zip.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Zip\" field.");
    theForm.contact_zip.focus();
    return (false);
  }
  
  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  	myOption = -1;
	for (i=theForm.tax_credit.length-1; i > -1; i--) {
    if (theForm.tax_credit[i].checked)
  	{
    	myOption = i; i = -1;
  	}
  }
  	if (myOption == -1) {
		alert("Please enter a value for the \"Tax Credit\" field.");
    	return (false);
	}	
  
  if (theForm.email.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
  
     if (theForm.how_did_you_hear.value == "")
  {
    alert("Please enter a value for the \"How did you hear about us?\" field.");
    theForm.how_did_you_hear.focus();
    return (false);
  }
  
  return (true);
}

