This will fail:

xxx = document.getElementById(“xxx”);

This will not:

var xxx = document.getElementById(“xxx”);

Apparently IE is storing every ID as READ ONLY variables in the global namespace, and you can’t reassign it (without using var).