Can you link to a live version of the page or paste your entire page's code up here? There's quite a few things that could be screwing this up right now, such as the fact that your onload attribute is just running the same function twice or that you may have redeclared a function by pasting it in twice. In order to fully figure out what's going on I need to be able to see everything.