I just realized that you can’t have a Javascript variable and an element ID with the same name in IE. That’s what this is trying to tell you:
Object doesn’t support this property or method