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