function setBottom()
{
	var lefttable = document.getElementById('lefttable');
	var bottable = document.getElementById('bottable');

	if(lefttable && bottable)
	{
		lefttable.style.height = 0;

		if(window.innerHeight)
		{
			var hscreen = window.innerHeight;
		}
		else
		{
			var hscreen = document.body.clientHeight;
		}

		var helements = 110+31+32+bottable.clientHeight;
		var htable = hscreen - helements;


		if(lefttable.clientHeight < htable)
		{
			lefttable.style.height = htable+'px';
		}
	}
}

addLoadHandler(setBottom);

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;
	}
}
