in reply to How to validate the form in CGI

- onsubmit() is given inside the FORM tag....it returns true or false.....

see this onsubmit event to properly code your JavaScript.

Manav