matchHeight=function(){ 
    var divs,contDivs,maxHeight,divHeight,d; 
	divs=document.getElementsByTagName('div'); 
	contDivs=[]; 
	maxHeight=0; 
	for(var i=0;i<divs.length;i++){ 
		if(/\bcontainer\b/.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;
    }
} 

window.onload=function(){ 
     if(document.getElementsByTagName){ 
          matchHeight(); 
	 }
}