in reply to cgi form and javascript

A few things. You don't have the complete code listed or the error you are seeing. This information could help us help you.

I would also do some searches as these issues have been touched on before here. And I would try your js in a static html page to make sure it works in a clean environment.

"No matter where you go, there you are." BB