wow Whaat, how long it took to write 62954821 lines of code ? 
you should add some error checking when you getElementById, maybe the DOM didnt finished rendering the HTML code when you are running the JS code. best way is to have a function that does getElementById and error check and then returns the object back if it is valid.
also ask the user to open the HTML in IE and see if it gives the same error (maybe a better line address as it is not in the shell anymore)

