IE Javacript problem

When published and viewed in internet explorer 7, our course is having some issues or encountering a bug that I’m hoping someone else has encountered before. About two or three pages into the course, the page says it encounters a javascript error on the first line of this function:

Code:

function trivExitPage( newPage, bFeedback ) { if( newPage.indexOf( "ObjLayerAction" ) >= 0 || newPage.indexOf( ".action" ) >= 0 || newPage.indexOf( "history.back()" ) >= 0) trivGoToPage = newPage

And since the problem occurs at the top of the HTML page, the rest of the code doesn’t load. Since I have several text boxes with change contents actions applied to them, the end result is all my text boxes display their assigned variable’s default value (usually “0”).I’ve only added one major addition to the course since the error started occurring, and that is a random number variable that I am referencing frequently. But if the page isn’t even loading far enough to reach that code, I don’t see how this could be the problem. When viewed in Firefox this problem doesn’t occur. Has anyone run into something like this before or understands IE’s javascript handling to know what is going on?

Discussions have been disabled for this post