//file:		window.js
//for:		pop-up window functions
//author:	JC Lango
//created:	10/26/00 09:37
//updated:	12/06/00 12:43
//last mod:	JC Lango
//			11/13/01 09:41 Denise H. Kennedy, added openstatuswindow function for secure pop up applications
// 			01/23/03 15:57 R Stewart, added no scroll open window function
var WindowOpener;

function OpenSubWindow(sUrl,iWidth,iHeight,sName){
//open window with with just scrollbars, given url,width,height,optional name
	sName=new String(sName);
	if(sName=="undefined")
		sName="subWindow";
	subWindow=window.open(sUrl,sName,"top=40,left=40,height=" + iHeight + ",width=" + iWidth + ",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no");
	WindowOpener=subWindow.opener;
	setTimeout("subWindow.focus();",100);
}


function OpenWindow(sUrl,sName){
//open window with all normal features, given url and optional name
	sName=new String(sName);
	if(sName=="undefined")
		sName="subWindow";
	subWindow=window.open(sUrl,sName);
	WindowOpener=subWindow.opener;
	setTimeout("subWindow.focus();",100);
}

function OpenStatusWindow(sUrl,iWidth,iHeight,sName){
//open window with with just scrollbars, given url,width,height,optional name
	sName=new String(sName);
	if(sName=="undefined")
		sName="subWindow";
	subWindow=window.open(sUrl,sName,"top=20,left=20,height=" + iHeight + ",width=" + iWidth + ",status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no");
	WindowOpener=subWindow.opener;
	setTimeout("subWindow.focus();",100);
}

function OpenSubWindowNoScroll(sUrl,iWidth,iHeight,sName){
//open window with with just scrollbars, given url,width,height,optional name
	sName=new String(sName);
	if(sName=="undefined")
		sName="subWindow";
	subWindow=window.open(sUrl,sName,"top=40,left=40,height=" + iHeight + ",width=" + iWidth + ",status=no,scrollbars=no,toolbar=no,menubar=no,location=no");
	WindowOpener=subWindow.opener;
	setTimeout("subWindow.focus();",100);
}


