// JavaScript Document
window.onload=function()
{
  var menudiv = document.getElementById('leftBar');
  var contentdiv=document.getElementById('mainBar');
    var leftC = document.getElementById('leftColumn');
  var rightC=document.getElementById('rightColumn');
  menudiv.style.height=getPageSizeWithScroll()[1] +'px';
  contentdiv.style.height=getPageSizeWithScroll()[1]+ 'px';
    leftC.style.height=getPageSizeWithScroll()[1] +'px';
  rightC.style.height=getPageSizeWithScroll()[1]+ 'px';

}
function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}