function setHeight()
{
	var lft = document.getElementById('leftcol');
	var rgt = document.getElementById('rightcol');
	var crt = document.getElementById('centergray');
	var bct = document.getElementById('bigcolin');
	var maxheight = 0;
	if(lft != null && rgt != null && crt != null)
	{
		if((lft.offsetHeight-3) > (crt.offsetHeight+53)) {
			maxheight = lft.offsetHeight;
		}
		else {
			maxheight = crt.offsetHeight+3;
		}
		if(rgt.offsetHeight > maxheight) {
			maxheight = rgt.offsetHeight;
		}
		rgt.style.height = maxheight+'px';
		crt.style.height = maxheight-30+'px';
	}
	else if(lft != null && bct != null) {
		if(lft.offsetHeight > (bct.offsetHeight+30)) {
			bct.style.height = lft.offsetHeight-53+'px';
		}
	}
}

addLoadHandler(setHeight);

function addLoadHandler(handler)
{
	if(window.addEventListener)
	{
		window.addEventListener("load",handler,false);
	}
	else if(window.attachEvent)
	{
		window.attachEvent("onload",handler);
	}
	else if(window.onload)
	{
		var oldHandler = window.onload;
		window.onload = function piggyback()
		{
		    oldHandler();
		    handler();
		};
	}
	else
	{
		window.onload = handler;
	}
}
