/*********************************************************************************** * File: validate.js * Description: * Validation functions for forms * Example of usage: * * function thisvalidate(form) { * // Field name, Caption * checkString(form.firstName, "First Name"); * // Field name, Caption, Required (true | false) * checkEmail(form.email, "Email", true); * // Field name, Caption, Required (true | false) * checkDate(form.address3, "Date Of Birth", true); * * // Displays error and returns false if an error occurred * return checkError(); * } * * ... * *