Event occurs when validating started, but before any real validation is applied
Parameters for inputs
myform.attachEvent("onBeforeValidate", function (id){ //any custom logic here return true; });
Returning false from event handler will prevent validation.