matchHeight=function(){ 

     var divs,divs2,divs3,contDivs,contDivs2,contDivs3,d,d2,d3,maxHeight,maxHeight2,MaxHeight3,divHeight,divHeight2,divHeight3; 

     // get all <div> elements in the document 

     divs=document.getElementsByTagName('div'); 
     divs2=document.getElementsByTagName('div'); 
     divs3=document.getElementsByTagName('div');

     contDivs=[]; 
     contDivs2=[]; 
     contDivs3=[]; 

     // initialize maximum height value 

     maxHeight=0;
     maxHeight2=0;
     maxHeight3=0;


     // iterate over all <div> elements in the document 

     for(var i=0;i<divs.length;i++){ 

          // make collection with <div> elements with class attribute 'container' 

          if(/\bcontainer\b/.test(divs[i].className)){ 

                d=divs[i]; 

                contDivs[contDivs.length]=d; 

                // determine height for <div> element 

                if(d.offsetHeight){ 

                     divHeight=d.offsetHeight; 

                } 

                else if(d.style.pixelHeight){ 

                     divHeight=d.style.pixelHeight; 

                } 


                // calculate maximum height 

                maxHeight=Math.max(maxHeight,divHeight); 

          } 

     } 


     for(var i2=0;i2<divs2.length;i2++){ 

          // make collection with <div> elements with class attribute 'container' 

          if(/\bcontainer\b/.test(divs2[i2].className)){ 

                d2=divs2[i2]; 

                contDivs2[contDivs2.length]=d2; 

                // determine height for <div> element 

                if(d2.offsetHeight){ 

                     divHeight2=d2.offsetHeight; 

                } 

                else if(d2.style.pixelHeight){ 

                     divHeight2=d2.style.pixelHeight; 

                } 


                // calculate maximum height 

                maxHeight2=Math.max(maxHeight2,divHeight2); 

          } 

     } 
	 


     for(var i3=0;i3<divs3.length;i3++){ 

          // make collection with <div> elements with class attribute 'container' 

          if(/\bcontainer\b/.test(divs3[i3].className)){ 

                d3=divs3[i3]; 

                contDivs3[contDivs3.length]=d3; 

                // determine height for <div> element 

                if(d3.offsetHeight){ 

                     divHeight3=d3.offsetHeight; 

                } 

                else if(d3.style.pixelHeight){ 

                     divHeight3=d3.style.pixelHeight; 

                } 


                // calculate maximum height 

                maxHeight3=Math.max(maxHeight3,divHeight3); 

          } 

     } 
	 

	  
	 
     // assign maximum height value to all of container <div> elements 

     for(var i=0;i<contDivs.length;i++){ 

          contDivs[i].style.height=maxHeight; 
 
} 

     for(var i2=0;i2<contDivs2.length;i2++){ 

          contDivs2[i2].style.height=maxHeight2; 
 
} 

     for(var i3=0;i3<contDivs3.length;i3++){ 

          contDivs3[i3].style.height=maxHeight3; 
 
} 


} 
