I would say just post the form to your server side page and handle it that way, but I will try to help you out with this method.
---
The first problem is due to the window.close event most likely. Also you need to view the page source after it has loaded to verify that the values are filled in from the server side code.
Second problem is the enter key does not call the event. To avoid this I would do is get rid of the onclick and make it called with onsubmit via the form.
<form name="passform" onsubmit="return checkpass(document.passform.pword.value
And change the input button to a submit button
<input type="submit" value="YES">
Now with the script you need to add some other code to keep the form from submitting. You need to add <i>retrun false;</i> after your alert statement and calling the new link statement.
---
Doing this on the server side would seem to be a lot easier in my mind, Fill in two hidden fields with the action and ids. Submit the form with the action set.
Do an if statement to see if the passwords match, if not return them back to the screen.
If it works, delete the record and write out the
string <script>window.close()</script> and that should get rid of the problem.
you need to add return false
If you need to update the parent page with the new information you can do
<script>window.opener.location.reload;window.close()</script>
Eric