//====== //====== // // Template- FORM_JS.IHT by J.Young 24-MAY-05 / 4-APR-07 // // Purpose- // // Define form control javascript functions. // // Modifications- // // 24-JUN-05 JY / SH / JY 4=15710 // - Created. // // 15-AUG-06 TH / BH / VM 12=18564 // - Add generic form onKeypress handler. // - Add function to allow suppression of form // submssion when ENTER is pressed and the form focus // is not a submit button. // // 4-DEC-06 TH / SZ / HD 17=18749 // - In dy_dont_submit_on_enter, allow ENTER in a textarea, // as ENTER is used to drop to the next line. // // 4-APR-07 TH / BH / TH 17=18617 // - Allow a pattern for checkbox names to be specified to // CheckAll and UncheckAll. // // 04-Jul-07 BG / BG / BG 12=18420 // - Converted to from .iht to .js. // //====== //====== /* CheckAll (formObj,optionalPattern) Purpose- Check all checkboxes of formObj. UnCheckAll(formObj,optionalPattern) Purpose- Uncheck all checkboxes of formObj. Notes- Format of 'pat' is any valid regular expression. */ Dym.ToggleCheckbox = function (formObj,value,pat) { if (typeof formObj.elements != "undefined") { var elementList = formObj.elements; for (var i=0; i