This is a Javascript problem and has nothing to do with JSPs.
But since I see you've also posted the same question
here, I'm going to ask for this
thread to be closed.
Please don't post the same question in multiple forums. It creates duplicate conversations and wastes the time of the people trying to help you.
Thanks,
Dave.