// overwrite the default form submission handler with a custom one.
wf.functionName_formValidation = "customValidation";

//evt : onSubmit event
function customValidation(evt) {
		return wf.utilities.XBrowserPreventEventDefault(evt);
}

// Change error message
wFORMS.behaviors['validation'].errMsg_custom = 'Please correct this field';