function zip_validator(theForm)
{

  if (step1.billingzip.value == "")
  {
    alert("Please enter a value for the \"Zip Code\" field.");
    step1.billingzip.focus();
    return (false);
  }

  if (step1.billingzip.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Zip Code\" field.");
    step1.billingzip.focus();
    return (false);
  }

  if (step1.billingzip.value.length > 5)
  {
    alert("Please enter at most 5 characters in the \"Zip Code\" field.");
    step1.billingzip.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = theForm.billingzip.value;
  var allValid = true;
  var validGroups = 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 \"Zip Code\" field.");
    step1.billingzip.focus();
    return (false);
  }
  return (true);
}