getAllClasses=function(){
//	alert(document.all.length);
	tagsHavingClass='';
	foundClasses='';
	d=document.all;
	
   for(var i=0;i<d.length;i++){ 
          if(d[i].className!="")
		  {
		  		if(foundClasses.indexOf(d[i].className)==-1)
				{
//				  	alert(d[i].className);
					tagsHavingClass+=d[i].tagName+'  :: '+d[i].className+'<BR>';
					foundClasses+=d[i].className+' |';
				}
          } 
     }	
//	document.writeln(tagsHavingClass);
}

function getWindowSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
//  window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );

return myHeight;

}


matchHeight=function(){

     var divs,contDivs,maxHeight,divHeight,d; 

     // get all <div> elements in the document 

//     divs=document.getElementsByTagName('div');
	divs=document.getElementsByTagName('div');
    contDivs=[]; 

     // initialize maximum height value 
     maxHeight=0;

// iterate over all <div> elements in the document 
// 		alert(divs.length)
//		alert(/\bcontainer\b/.test(divs[0].className))

	tagsHavingClass="";
	

	
     for(var i=0;i<divs.length;i++){ 

  // make collection with <div> elements with class attribute 'container' 
                d=divs[i];
                contDivs[contDivs.length]=d;
                // determine height for <div> element 
//				alert(d.offsetHeight);					
                if(d.offsetHeight)
                     divHeight=parseInt(d.offsetHeight);
                else if(d.style.pixelHeight)
                     divHeight=parseInt(d.style.pixelHeight);
					
                // calculate maximum height 
				if(maxHeight<divHeight)
					maxHeight=divHeight;

     }

//alert(maxHeight);
myHeight=getWindowSize();

if(maxHeight<myHeight)
{
	
	innerRight=document.getElementById('innerPageRight');
	innerLeft=document.getElementById('innerPageLeft');
	
	innerRight.style.height=myHeight;
	innerLeft.style.height=myHeight;
	//alert(footerX);*/
}
} 

window.onresize= function()
{
//	matchHeight();
	document.location.href=document.location.href;
}

window.onload= function()
{
	matchHeight();
}
