If you come from a IE world where a lot of stuff works little bit differently ;), you are used for javascript to do stuff in IE that does not work in Firefox. I do so I have to adjust myself a little to modern browsers.
For example switch to use document.getElementById
instead of document.all