/*
---------------------------------------------------------------------------------------------
	NEW WINDOW: This file includes the function that sets up the new window parameters.
	The new window is used whenever you do not want to give up the page that is
	currently being displayed. Because of the ingenius programming, when the new window
	is called, it can be given every parameter it needs.  This way, each time you call
	a new window, it can be custom tailored to suit the need.
---------------------------------------------------------------------------------------------
*/

/*
**************************************************
	begin function for new window
**************************************************
*/

	function OpenWin(whatPage, whatName, width, height, scroll, toolbar, menubar, location, resize) {
		var newWin = null;

		leftPos = (screen.width) ? (screen.width - width) / 2 : 0;
		topPos = (screen.height) ? (screen.height - height) / 2 : 0;

		settings = 'height=' + height + ',width=' + width + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=' + scroll + ',toolbar=' + toolbar + ',menubar=' + menubar + ',location=' + location + ',resize=' + resize;

		newWin = window.open(whatPage, whatName, settings);
	}

/*
**************************************************
	end function for new window
**************************************************
*/