- function Validator(frmname)
- {
- this.formobj=document.forms[frmname];
- if(!this.formobj)
- {
- alert("BUG: couldnot get Form object "+frmname);
- return;
- }
- if(this.formobj.onsubmit)
- {
- this.formobj.old_onsubmit = this.formobj.onsubmit;
- this.formobj.onsubmit=null;
- }
- else
- {
- this.formobj.old_onsubmit = null;
- }
- this.formobj.onsubmit=form_submit_handler;
- this.addValidation = add_validation;
- this.setAddnlValidationFunction=set_addnl_vfunction;
- this.clearAllValidations = clear_all_validations;
- }
Posted by matt on Mon 18 Feb 16:28
report abuse | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.