adds a validation rule to the input with the specified name
Required file: ext/dhtmlxform_dyn.js
Parameters:
myForm.setValidation('age', 'ValidInteger');