// only override IE
if (/msie/i.test (navigator.userAgent)) {
	document.nativeGetElementById = document.getElementById;
	document.getElementById = function(id) {
		var elem = document.nativeGetElementById(id);
		if (elem) {
			//make sure that it is a valid match on id
			if (elem.id == id) {
				return elem;
			} else {
				//otherwise find the correct element
				for (var i = 1; i < document.all[id].length; i++) {
					if (document.all[id][i].id == id) {
						return document.all[id][i];
					}
				}
			}
		}
		return null;
	};
}
