Event occurs for each error during validation
Parameters for inputs:
myform.attachEvent("onValidateError", function (input, value, result){ //any custom logic here });