/*

window.onload = function() {
	layoutResizer();
}

function layoutResizer()
{
	xAddEventListener(window, 'resize', adjustlayout, false);
	adjustlayout();
}

function adjustlayout()
{ 
	var lHeight = xHeight('left') + xHeight('left-bottom');
	var cHeight = xHeight('content');
	var rHeight = xHeight('right');
	
	// Find the maximum height
	var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));

	// Assign maximum height to all columns
	xHeight('contentColum', maxHeight);
	xHeight('leftColum', maxHeight);
	xHeight('rightColum', maxHeight);
	
	// Show the footer
	xShow('footer');
}

*/

function acpopup(strURL, strType, strWidth, strHeight)
{
	var strOptions = '';

	if (strType == 'console')
	{
		strOptions = 'resizable,height=' + strHeight + ',width=' + strWidth;
	}
	else if (strType == 'fixed')
	{
		strOptions = 'status,height=' + strHeight + ',width=' + strWidth;
	}
	else if (strType == 'elastic')
	{
		strOptions = 'toolbar,menubar,scrollbars,resizable,location,height=' + strHeight + ',width=' + strWidth;
	}

	window.open(strURL, 'newWin', strOptions);
}