/* Helper functions for Internet Explorer's W3C complioance frailty */ if (/msie/i.test (navigator.userAgent)) //only override IE { 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.attributes['id'].value == id) { return elem; } else { //otherwise find the correct element for(var i=1;i