// Open a new window with all standard features. If the window named already exists,
// 	bring it to the top of the window z-stack
//  This function will accept up to four parameters the last two, the height and width, are
//  optional and will default if not provided.
function openWin(fileToOpen,nameOfWindow) //, windowWidth, windowHeight
	{
	// Default the width and height
	windowWidth = 590;
	windowHeight = 450;
	// If we got at least the width
	if (arguments.length > 2)
		{
		// Use the specified width
		windowWidth = arguments[2];
		// If we got the height
		if (arguments.length > 3)
			{
			// Use the specified height
			windowHeight = arguments[3];
			}
		}
	gameWindow = window.open(fileToOpen,nameOfWindow,"width="+windowWidth+",height="+windowHeight+",menubar,scrollbars,status,resizable,location,toolbar");
	window.gameWindow.focus();
	}
function openNewWin(fileToOpen,nameOfWindow) {
	gameWindow = window.open(fileToOpen,nameOfWindow,"menubar,scrollbars,status,resizable,location,toolbar");
	window.gameWindow.focus();
	}
// Open a new window with only the bottom status bar (so the the SSL lock can be seen).
// If the window named already exists, bring it to the top of the window z-stack
function openWinNoFeatures(fileToOpen,nameOfWindow) //, windowWidth, windowHeight
	{
	// Default the width and height
	windowWidth = 590;
	windowHeight = 450;
	// If we got at least the width
	if (arguments.length > 2)
		{
		// Use the specified width
		windowWidth = arguments[2];
		// If we got the height
		if (arguments.length > 3)
			{
			// Use the specified height
			windowHeight = arguments[3];
			}
		}
	gameWindow = window.open(fileToOpen,nameOfWindow,"width="+windowWidth+",height="+windowHeight+",status");
	window.gameWindow.focus();
	}
// Open a new window with only the bottom status bar (so the the SSL lock can be seen).
// If the window named already exists, bring it to the top of the window z-stack
function openWinScrollOnly(fileToOpen,nameOfWindow) //, windowWidth, windowHeight
	{
	// Default the width and height
	windowWidth = 590;
	windowHeight = 450;
	// If we got at least the width
	if (arguments.length > 2)
		{
		// Use the specified width
		windowWidth = arguments[2];
		// If we got the height
		if (arguments.length > 3)
			{
			// Use the specified height
			windowHeight = arguments[3];
			}
		}
	gameWindow = window.open(fileToOpen,nameOfWindow,"width="+windowWidth+",height="+windowHeight+",status,scrollbars,resizable");
	window.gameWindow.focus();
	}
