function validForm(passForm) { if (passForm.password1.value ==""){ alert("Please Enter A Password") passForm.password1.focus() return false } if (passForm.password1.value !=passForm.password2.value) { alert("Passwords Entered Did Not Match") passForm.password1.focus() passForm.password2.select() return false } return true }