function InRange(field, minlen, maxlen) { // This function checks to see if the size of the given field falls // inside the minlen and maxlen value. If it doesn't an appropriate // error message is issued and the function returns false. The field // should be sent as an object returnvalue = true; if ((field.value.length < minlen) || (field.value.length > maxlen)) { returnvalue = false; if (minlen == maxlen) alert("Form field " + field.name + " must have exactly " + maxlen + " characters") else { if (minlen == 0) alert("Form field " + field.name + " must not exceed " + maxlen + " characters") else alert("Form field " + field.name + " must have at least " + minlen + " characters but no more than " + maxlen + " characters."); } } return returnvalue; } //---------------------------------------------------------------- function AllNumbers(field) { // This functions checks a field and makes sure that field contains // only the digits 0-9. Blanks are not allowed. The field should be // sent as an object. myString = String(field.value); allnumeric = true; for (i=0;i