function getCoord(el) 
{
	var curleft = curtop = 0;
	if (el.offsetParent) 
	{
		curleft = el.offsetLeft
		curtop = el.offsetTop
		while (el = el.offsetParent) 
		{
			curleft += el.offsetLeft
			curtop += el.offsetTop
		}
	}
	return [curleft,curtop];
}
function layoutTB() 
{
	var clientHeight = getClientHeight();	
	var h = document.getElementById( 'header1' );
	var b = document.getElementById( 'clientResponseDiv' );
	var f = document.getElementById( 'clientMessageBoxDiv' );
	b.style.height = clientHeight - ( h.offsetHeight +  f.offsetHeight + 95 ) + 'px';
	
	
}

if( window.addEventListener ) { window.addEventListener( 'load', layoutTB, false ); window.addEventListener( 'resize', layoutTB, false );  }
else { window.attachEvent( 'onload', layoutTB ); window.attachEvent( 'onresize', layoutTB ); }

