As I said, its because you have script debugging enabled in IE. Thats a developer feature of IE it is disabled by default. The error does not happen if it is disabled. The script debugger is probably breaking on errors that are handled by javascript error handling in normal use.
If you want the error message to go away then disable script debugging.
Hope it helps,
Joe