//open window
function openWindow(url,targetW) {
	//secureWindow =
	window.open(url,targetW,"status=yes,resizable=yes,scrollbars=yes,toolbar=no,menubar=no");
	window.focus();
}

// global variable for subwindow reference
var secureWindow,url;

//secure pop up window
// generate and fill the new window
function makeSecureWindow(url) {
	secureWindow = window.open(url,"secureWindow","status=yes,resizable=yes,scrollbars=yes,toolbar=no,menubar=no");
	secureWindow.focus();
}

function adjustLayout()
{
	// Get natural heights
	var cHeight = xHeight("col2o")*1.2;
	var lHeight = xHeight("col1o")*1.2;
	var rHeight = xHeight("col3o")*1.2;

	var mHeight = xHeight("col1")*1.2;

//	alert("l: "+lHeight+" m: "+mHeight+" - r: "+rHeight+" - c: "+cHeight+" = "+maxHeight);

	// Find the maximum height
	var maxHeight =
	Math.max(cHeight, Math.max(lHeight, rHeight));

	// Assign maximum height to all columns
	xHeight("col3", maxHeight);
	xHeight("col1", maxHeight);
	xHeight("col2", maxHeight);

	xHeight("maintab", maxHeight);

	xHeight("col3o", maxHeight);
	xHeight("col1o", maxHeight);
	xHeight("col2o", maxHeight);

	// Show the footer
	xShow("footer");
	//	alert("l: "+lHeight+" - r: "+rHeight+" - c: "+cHeight+" = "+maxHeight);
}


