function adjustLayout()
{
	// Get natural heights
	var lHeight = ( document.getElementById("pilot") ) ? xHeight("pilot") : 0;
	var cHeight = ( document.getElementById("usrarea") ) ? xHeight("usrarea") : 0;
	var rHeight = ( document.getElementById("content") ) ? xHeight("content") : 0;

	// Find the maximum height
	var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
	
	// Assign maximum height to all columns
	xHeight("pilot", maxHeight);
	xHeight("usrarea", maxHeight);
	xHeight("content", maxHeight);

}

window.onload = function()
{
	xAddEventListener(window, "resize", adjustLayout, false);
	adjustLayout();
}

function showPic( url, width, height )
{

	window.open( url, 'showPic', 'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,top=50,left=50' );

}

function openWindow(url, wName, sizex, sizey)
{
	popUpWin = window.open(url,wName,'title=0,toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=yes,resizable=1,width='+sizex+',height='+sizey,false);
	if (navigator.appName == 'Netscape') 
	{
		popUpWin.focus();
	}
}