
		// Quick way to test for Nav4 and IE4
		version4 = false
		if(navigator.appVersion.charAt(0) == "4") version4 = true;
		if(navigator.appVersion.charAt(0) == "5") version4 = true;
		
		var popupHandle = 0;
		
		function displayPopup(url,name,height,width,evnt,res,scroll) {

		if (arguments[5] == 0) res = 0; else res = 1;
		if (arguments[6] == 0) scroll = 0; else scroll = 1;


			if (height > (screen.availHeight - 50)) height = (screen.availHeight - 50);
			if (width > (screen.availWidth - 50)) width = (screen.availWidth - 50);
		
			var properties = "toolbar=0,location=0,height="+height;
			properties = properties+",width="+width;
			if(evnt != null) {
				if(navigator.appName == "Microsoft Internet Explorer") {
					left_X = (evnt.clientX + 10);
					if ((left_X + width) > screen.availWidth) left_X = screen.availWidth - width -20;
					top_Y = (evnt.clientY + 10);
					if ((top_Y + height) > screen.availHeight) top_Y = screen.availHeight - height -50;
		  		} else {
					// Navigator coordinates must be adjusted for scrolling
					left_X = (evnt.pageX - pageXOffset + 10);
					if ((left_X + width) > screen.availWidth) left_X = screen.availWidth - width -20;
					top_Y = (evnt.pageY - pageYOffset + 10);
					if ((top_Y + height) > screen.availHeight) top_Y = screen.availHeight - height -50;
				}
				properties = properties+",left="+left_X;
				properties = properties+",top="+top_Y;
			}
			properties = properties+",status=yes,scrollbars="+scroll+",dependent=yes,resizable="+res;

			popupHandle = window.open(url,name,properties);
		}
		
		function closePopup() {
			// mouseOut was introduced with JavaScript 1.1, so Navigator 2 users will
			// have to manually close the window
			if(popupHandle)
			{
			//	if(popupHandle != null && !popupHandle.closed) popupHandle.close();
				popupHandle.close();
			}
		}

