The problem isn't firefox or Javascript, it's your page code.
There are several major errors in your html, including a second <html> tag in the middle of an unfinished <table>, two <head> sections, a 3rd <html> tag later on ...
IE tries to ignore bad code. Firefox doesn't.
Add a Doctype tag, clean up the HTML and Firefox should have no problem with it.