I think IE doesn't like to have the script inside the Form tags. The script refers to something that is between the Form tags, which haven't been closed yet.
Can you call it from the Body onLoad instead? You can do that in the "On Load JavaScript..." section of the Page Attributes.
I had a similar problem getting Google Suggest scripts to work in HTML DB.