function openWindow(page)
	{
		OpenWin = window.open(page, "CtrlWindow", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=435,height=290,left=40,top=20");
		OpenWin.focus();
	}

function openCenteredWindow( urlPage, iWidth, iHeight)
{
	// center the window...
    var iTop = (window.screen.height/2 - (iHeight/2));
    var iLeft = (window.screen.width/2 - (iWidth/2));
	var newWin = window.open( urlPage, "CyteWindow", "left=" + String(iLeft) + ",top=" + String(iTop) + ",resizeable=1,scrollbars=1,status=0,toolbar=0,location=0,menubar=0,width=" + iWidth + ",height=" + iHeight + "");
	newWin.focus();
}

function openReadOnlyCenteredWindow( urlPage, iWidth, iHeight)
{
	// center the window...
    var iTop = (window.screen.height/2 - (iHeight/2));
    var iLeft = (window.screen.width/2 - (iWidth/2));
	var newWin = window.open( urlPage, "CyteWindow", "left=" + String(iLeft) + ",top=" + String(iTop) + ",resizeable=0,scrollbars=1,status=0,toolbar=0,location=0,menubar=0,width=" + iWidth + ",height=" + iHeight + "");
	newWin.focus();
}
