Yes, dwarfthrower, you are correct, my mistake.
I was so focused on your second js code, I passed over the onclick code you included.
Then I read the FAQ at:
http://www.tek-tips.com/faqs.cfm?fid=2809
but not carefully enough, and wrongly assumed that this.form was not needed.
Your code...