// validate.js // Functions to validate the fields on the current document. // Fields on the document that are specified in fieldname are checked to be sure that they are non-null // then any form-specific processing is done. // Arguments: // fieldname: array containing text strings which are the fields on the current form. These should be defined in the jsheader // fielddesc: array containing corresponding descriptions for the fields on the current form // form: the form being processed function validateRequiredFields(fieldname, fielddesc, form) { var msg = new Array(''); var currentField; var currentType; var focusObj; for (var i=0; i