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