Use the clearError() function of the mage.validation JavaScript widget:
clearError()
mage.validation
As you can see, the last example also resets the form.