Strange JavaScript problem - getElementById not working unless I alert()

Printable View