matchDivs=function(divclass){      var divs,contDivs,maxHeight,divHeight,d;      divs=document.getElementsByTagName('div');      contDivs=[];      maxHeight=0;      for(var i=0;i<divs.length;i++){ 	      var reg = new RegExp("\\b" + divclass + "\\b");          if(reg.test(divs[i].className)){                 d=divs[i];                 contDivs[contDivs.length]=d;                 if(d.offsetHeight){                      divHeight=d.offsetHeight; 					                }                 else if(d.style.pixelHeight){                      divHeight=d.style.pixelHeight;					                 }                 maxHeight=Math.max(maxHeight,divHeight);           }      }      for(var i=0;i<contDivs.length;i++){           contDivs[i].style.height=maxHeight + "px";      } } function addLoadEvent(func) {  var oldonload = window.onload;  if (typeof window.onload != 'function') {    window.onload = func;  } else {    window.onload = function() {      if (oldonload) {        oldonload();      }      func();    }  }}addLoadEvent(function(){      if(document.getElementsByTagName){         matchDivs("midbox-height");        matchDivs("botbox-height");     }});