	//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	// WEBSITEX WINDOW MANAGEMENT LIBRARY:
	//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	// COPYRIGHT:	(c) Copyright 1996-2002 by Intrepreneurs, Inc.
	// CREATED:		09/15/2000
	// AUTHOR:			Russ Humphries (RH)
	// NAME:				wsxWinLib
	// VERSION:		2000.09.15
	//
	// DESCRIPTION:
	//		WebsiteX JavaScript window management library.
	//
	// REVISIONS:
	//		DATE				BY	DESCRIPTION
	//		08/01/2000	RH	Library created from JavaScript functions.
	//		09/15/2000	RH	Code reviewed and tested.
	//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	//
	var theWin;
	var theUrl;
	var theMenu;
	function showDoc(pstrUrl, pblnMenu){
		var intScreenWidth, intScreenHeight, intWinWidth, intWinHeight, intLeft, intTop, strParams
		var strMenu = "no";
		//
		if (pblnMenu)
			strMenu = "yes";
		//
		if (theWin && !theWin.closed){
			// Activate the window.
			if (theUrl != pstrUrl){
				if (theMenu != strMenu){
					strParams = "toolbar=no,location=no,directories=no,status=yes,menubar=" + strMenu + ",scrollbars=yes,resizable=yes";
					theWin = window.open(pstrUrl,"wsxDocWin",strParams);
				}
				else{
					theWin.location = pstrUrl;
				}
			}
			theWin.focus();
		}else{
			if (document.all || document.layers) {
				intScreenWidth = screen.availWidth;
				intScreenHeight = screen.availHeight - 120;
				if (intScreenWidth <= 800) {
					intWinWidth = 800;
					intWinHeight = 600;
				} else {
					intWinWidth = 1024;
					intWinHeight = 768;
				}
			} else {
				intScreenWidth = 800;
				intScreenHeight = 600;
				intWinWidth = 800;
				intWinHeight = 600;
			}
			//
			intLeft = (intScreenWidth-intWinWidth)/2;
			intTop = (intScreenHeight-intWinHeight)/2; 
			//
			strParams = "toolbar=no,location=no,directories=no,status=yes,menubar=" + strMenu + ",scrollbars=yes,resizable=yes,width=" + intWinWidth + ",height=" + intWinHeight + ",left=" + intLeft + ",top=" + intTop;
			theWin = window.open(pstrUrl,"wsxDocWin",strParams);
			// Now activate the window.
			theWin.focus();
		}
		theUrl = pstrUrl;
		theMenu = strMenu;
	}
