	function PopWindow(mypage, myname, w, h, scroll) {
		if (h >= screen.height-60 ) {
		h = screen.height-75;
		scroll = 1;
	   }
		if(w >= screen.width ) {
			w = screen.width-15;
			scroll = 1;
		}
		if (screen.width == w) {
			var winl = 0;
	  }
		else {
			var winl = (screen.width - (w+10)) / 2;
		}
		if (screen.height == h) {
			wint = 0;
		}
		else {
			var wint = (screen.height - (h+75)) / 2;
		}
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes,menubar=no,status=no,toolbar=no,location=no,directories=no'
	win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}

