
	function OpenWindowPlain(strLocation, strWinTitle, intWidth, intHeight){
		newWin = window.open(strLocation, strWinTitle,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+intWidth+',height='+intHeight+'');
		newWin.focus();
	}

	function OpenWindowPlainNoScroll(strLocation, strWinTitle, intWidth, intHeight){
		newWin = window.open(strLocation, strWinTitle,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+intWidth+',height='+intHeight+'');
		newWin.focus();
	}

	function OpenWindow(strLocation, strWinName, strWinTitle, strSettings){
		strWinName = window.open(strLocation, strWinTitle,strSettings);
		//flashWin.focus();
	}

	function CloseAndRedirect(strLocation1, strLocation2, strParentTitle) {
		
		if (opener) {

			if (opener.closed) {

				ReopenWin = window.open(strLocation2, strParentTitle, 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640, height=480');
				window.close();

			} else {

				opener.location.href = strLocation1;
				opener.focus();
				window.close();

			}

		} else {

			ReopenWin = window.open(strLocation2, strParentTitle, 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640, height=480');
			window.close();

		}
	}
