	//----------------------------------------------------------
	// Name		: popwin
	// Purpose	: Create Popup Window
	//----------------------------------------------------------
	//
	function popwin(url, name, width, height, location, menubar, status, toolbar)
	{
		if (name == null)
		{
			name = "stdWin";
		}
		if (width == null)
		{
			width = 770;
		}
		if (height == null)
		{
			height = 500;
		}
		if (location == null)
		{
			location = "no"
		}
		if (menubar == null)
		{
			menubar = "yes"
		}
		if (status == null)
		{
			status = "yes"
		}
		if (toolbar == null)
		{
			toolbar = "yes"
		}

		popup = window.open(url, name, 'width=' + width + ',height=' + height + ',location=' + location + ',menubar=' + menubar + ',status=' + status + ',toolbar=' + toolbar +',scrollbars=yes,resizable=yes,screenx=0,screeny=0,left=0,top=0');
		if (window.focus) setTimeout("popup.focus()",100);
	} 

	//----------------------------------------------------------
	// Name		: loadPopup
	// Purpose	: Used for Bankline Dem
	//----------------------------------------------------------
	//

	function loadPopup(url,width,height) {
	
		w = window.screen.availWidth;
		h = window.screen.availHeight;

		var leftPos = (w-width)/2, topPos = (h-height)/2;

		if (w < width) {
			width = w;
			leftPos = 0;
		}

		if (h < height) {
			height = h;
			topPos = 0;
		}
	
		popup = window.open(url, 'nwBanklineDemo', 'width=' + width + ',height=' + height + ',location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,screenx=' + leftPos + ',screeny=' + topPos + ',left=' + leftPos + ',top=' + topPos + '');
	}
