				function GetTopCoord(tempEl) {
					var iTop
					if (window.navigator.appName != "Netscape") {
						iTop = window.screenTop + eval(window.document.images[tempEl]).offsetTop;
						tempEl = window.document.images[tempEl].offsetParent;
  						while (tempEl != null) {
  							iTop += tempEl.offsetTop;
  							tempEl = tempEl.offsetParent;
  						}
					}
					else {
							//Netscape's window.screenY value is the top of the browser window.
							//window.document.images[tempEl].y value is relative to the top edge of the display area.
							//In other words, the border of the window is not taken to account.  Neither are any toolbars and/or menu bars being shown.
							iTop = window.screenY + window.document.images[tempEl].y;
					}
					return iTop;
				}

				function GetLeftCoord(tempEl) {
					var iLeft
					if (window.navigator.appName != "Netscape") {
						iLeft = window.screenLeft + eval(window.document.images[tempEl]).offsetLeft;
						tempEl = window.document.images[tempEl].offsetParent;
  						while (tempEl != null) {
  							iLeft += tempEl.offsetLeft;
  							tempEl = tempEl.offsetParent;
  						}
					}
					else {
							//Netscape's window.screenX value is the left of the browser window.
							//window.document.images[tempEl].x value is relative to the left edge of the display area.
							//In other words, the border of the window is not taken to account.
							iLeft = window.screenX + window.document.images[tempEl].x;
					}
					return iLeft;
				}

				function GetCenterTop(iHeight) {
					var iCenterTop
					if (window.screen) {
						iCenterTop = ((screen.availHeight - 30) - iHeight) / 2;
					}
					return iCenterTop;
				}

				function GetCenterLeft(iWidth) {
					var iCenterLeft
					if (window.screen) {
						iCenterLeft = ((screen.availWidth - 10) - iWidth) / 2;
					}
					return iCenterLeft;
				}

				function GetCenterCoords(iHeight, iWidth, iCenterCoords) {	//(works in both Netscape (at least 4.7) and IE)
					//When dealing with arguments in JavaScript, it’s important to remember that with 
					//the exception of objects that are defined using the new operator, all arguments 
					//are passed by value. So, excluding objects, any changes made to an argument will 
					//be gone when processing returns to the calling function
					
					//The calling function must define iCenterCoords as a 'new Array()' to be able
					//to pass back values in it.
					if (window.screen) {
						iCenterCoords[0] = ((screen.availHeight - 30) - iHeight) / 2;	//Center Top
						iCenterCoords[1] = ((screen.availWidth - 10) - iWidth) / 2;		//Center Left
					}
					return true;
				}

				//function OpenWindow(sURL, sWindowName, iHeight, iWidth, bCenter, tempEl) {
				function OpenWindow(sURL, sWindowName, iHeight, iWidth, sFeatures) {
					//var sFeatures
					var newWin
					var bCenter = true
					var tempEl = ""
					
					//var iCenterCoords = new Array();
					//GetCenterCoords(iHeight, iWidth, iCenterCoords)
					//window.alert("top (iCenterCoords[0]): " + iCenterCoords[0]);
					//window.alert("left (iCenterCoords[1]): " + iCenterCoords[1]);
					
					// Not all features supported by both Netscape and IE browsers, but including them all doesn't affect the pop-up window.  The browser ignores features it doesn't support.
					//NOTE:  Netscape does not work properly if there are spaces after the commas.  Do not separate the features with a comma and space (, ).  Just use a comma (,).
					//sFeatures = "channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=no,toolbar=no";
					
					if (iHeight==0 && iWidth==0) {
						//Don't size/position the window
						}
					else {
						if (bCenter) {
  							// Append IE's features for positioning the window
  							sFeatures += ",left=" + GetCenterLeft(iWidth) + ",top=" + GetCenterTop(iHeight) + ",height=" + iHeight + ",width=" + iWidth;
  							// Append Netscape's features for positioning the window  (Netscape also has innerHeight and innerWidth features.)
  							sFeatures += ",screenX=" + GetCenterLeft(iWidth) + ",screenY=" + GetCenterTop(iHeight) + ",outerHeight=" + iHeight + ",outerWidth=" + iWidth;
						}
						else {
  							// Append IE's features for positioning the window
  							sFeatures += ",left=" + GetLeftCoord(tempEl) + ",top=" + GetTopCoord(tempEl) + ",height=" + iHeight + ",width=" + iWidth;
  							// Append Netscape's features for positioning the window  (Netscape also has innerHeight and innerWidth features.)
  							sFeatures += ",screenX=" + GetLeftCoord(tempEl) + ",screenY=" + GetTopCoord(tempEl) + ",outerHeight=" + iHeight + ",outerWidth=" + iWidth;
						}
					}
					
					newWin = window.open(sURL, sWindowName, sFeatures);
					return newWin;
				}