<!-- hide script from old browsers

	var popupWindow;
	var popupWidth;
	var popupHeight;

	function createPopupWindow(width, height, top, left)
	{
		attr = "width=" + width + ",height=" + height;
		// position attributes for IE4+
		attr = attr + ",top=" + top + ",left=" + left;
		// position attributes for NN4+
		attr = attr + ",screenY=" + top + ",screenX=" + left;
		popupWindow = window.open("", "", attr);
		
		// for backward compatibility to Netscape 2
		if( popupWindow.opener == null )
		{
			popupWindow.opener = self;
		}

		// save size and location attributes
		popupWidth = width;
		popupHeight = height;
	}

	function closePopupWindow()
	{
		if( popupWindow )
		{
			popupWindow.close();
			popupWindow = null;	
		}
	}

	function showTip(popUpName,width,height,top,left)
	{
		attr = "width=" + width + ",height=" + height;
		// position attributes for IE4+
		attr = attr + ",top=" + top + ",left=" + left;
		// position attributes for NN4+
		attr = attr + ",screenY=" + top + ",screenX=" + left;
		window.open(popUpName, '', attr);
	}
	
	// Creates a new window of the specified size in the specified location with
	// the specified title and text along with a close button
	//
	// If the popup window already exists (was not closed), the same window will be
	// used only if the size was the same.
	// If the popup window already exists (was not closed), where ever the window position
	// currently is will be used - not the passed in values.
	function createTextPopup(text,title,width,height,top,left)
	{
		// check to see if existing window (if have one) has the same size attributes
		if( popupWidth != width || popupHeight != height )
		{
			// close and recreate to avoid Netscape problems with resizeTo()
			closePopupWindow();
		}
		
		// create a new window if first time or if someone has closed it
		if( !(popupWindow) || popupWindow.closed )
		{
			createPopupWindow(width, height, top, left);
		}

		if( popupWindow )
		{
			popupWindow.focus();
			var docContent = "<HTML><HEAD><TITLE>" + title;
			docContent += "</TITLE></HEAD><BODY>";
			docContent += text;
			docContent += "<CENTER><FORM><INPUT TYPE=\"button\" VALUE=\"Close\" onClick=\"window.opener.closePopupWindow()\"></FORM></CENTER>";
			docContent += "</BODY></HTML>";
			popupWindow.document.write(docContent);
			popupWindow.document.close();
		}
	}

// end of hiding script from old browsers -->
