I assume that you have only one form on page,
so to solve your problem, change all
document.forms.useraction.action
to
document.useraction.action
urtrivedi
Nearly a Posting Virtuoso
1,306 posts since Dec 2008
Reputation Points: 257
Solved Threads: 270