iForm is a jQuery plugin that automatically corrects any user input, performing validation routines behind the scene.
jQuery form auto-correct plugin