html
when i click ok button of alert the form is getting submitted with out performing the other validations. i am using like this
<input type="image" src="./images/btn_passchange.gif" name="image" class="btn" tabindex="4" onclick="checkvalid()" alt="PWDCHG">
can anbody suggest me the solution
This isn't a Javascript forum. Java and Javascript are two entirely differently languages. You'll get better javascript info from a Javascript forum.
That said, I think that the onclick (or is it onsubmit? maybe they're the same) function has to return false to prevent the form from submitting. See what the return value of checkvalid is.