The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I’d recommend that you use the jQuery Validation Plugin: http://docs.jquery.com/Plugins/Validation
It’s super simple to implement, and very effective. Are you doing any server side validation, as well? It’s always a good idea to do both.