V Srinivasan,
If you absolutely must validate your form on the client side, and it's been my experience that this can be extremely problematic, then you might want to try this old CGI trick. Add a hidden frame to your page, a zero-width/height frame. Use your client side JavaScript to post your form results to a servlet in this frame, and parse the results from your originating frame. It's a kludge, but it has its uses.
regards,
eric