This series of functions provide common form field validation. You customize the "validateForm" function to make calls to the following functions with your form fields. If the validation fails, the functions will alert the user with a message and put the text input focus on the field with the error. |