I have seen this error before with IE8 and there are numerous posts for the resolution which for the most part suggest a re-arrangement of the javascript code. And while this may be a suitable resolution for programmers that are writing and publishing the code when the problem is identified, unfortunately it isn't a viable solution for the end-users.
In my instance of providing support for resolving the issue, the quick and dirty solution was to simply remove IE8 and revert back to IE7 which totally resolved the error.
I assisted my client with removal of all JAVA installs (e.g. the JRE and updates) and also IE8, rebooted and reinstalled but the problem was still prevalent. It would appear as though IE8 (sometimes) has a problem with the interpretation of the jscripting or rather interprets it differently than IE7 which causes the problem. Strangely enough, other users running IE8 accessing the same page won't have any issues at all. Which would lead to speculation that there is a specific component that is being used by IE8 which when not installed or configured properly contributes to the issue.
In short, unless you have a undying need to use IE8 for some functionality that you can't acquire in IE7, revert your installation back. Otherwise, you can continue tinkering with IE8 until you acquire an acceptable solution.
Hope this helps you out.