function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}

function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}



function getBrowserSize() {
 myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE

    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth ||
document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'

    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth ||
document.body.clientHeight ) ) {
    //IE 4 compatible

    myHeight = document.body.clientHeight;
  }
return myHeight
}

function stretch_columns_height() {



var boxy1=document.getElementById('box_content1');
var boxy2=document.getElementById('box_content2');
var boxy3=document.getElementById('box_content3');
var boxy4=document.getElementById('centre_pane');
 //var right=document.getElementById('right');

theheight = getBrowserSize() - 125;


boxy1.style.height=theheight+"px";
boxy2.style.height=(theheight-161)+"px";
boxy3.style.height=theheight+"px";
boxy4.style.height=(theheight-35)+"px";

}

