function addLoadEvent(func) {
     var oldonload = window.onload;
      if (typeof window.onload != 'function') {
       window.onload = func;
     } else {
        window.onload = function() {
          oldonload();
           func();
       }
     }
}


function adjustModule() {
   if (!document.getElementsByTagName) return false;
   if (!document.getElementById) return false;
   if (!document.getElementById("maincontenttable")) return false;
   if (document.getElementById("maincontentsubcell")) return false;
   
   mainContent = document.getElementById("maincontenttable");
   mainContent.className = "module";
   
}

addLoadEvent(adjustModule);
