	var xpopup = null;
	var _w = 800;
	var _h = 600;
	try {
		_w = screen.width;
		_h = screen.height;
	} catch (e) {}

	function myPopUpSizedH(x) {
		var l = (_w-620)/2;
		var t = (_h-480)/2;
		window.open(x, 'popup', 'left=' + l + ',top=' + t + ',width=620,height=480,scrollbars=no,menubar=no,toolbar=no,dependent=yes');
	}
	function myPopUpSizedV(x) {
		var l = (_w-470)/2;
		var t = (_h-630)/2;
		window.open(x, 'popup', 'left=' + l + ',top=' + t + ',width=470,height=630,scrollbars=no,menubar=no,toolbar=no,dependent=yes');
	}

	function setupPopups() {
		try {
			var i;
			var n = document.images.length;
			for (i=0; i<n; i++) {
				var im = document.images[i];
				if (im) {
					if (im.className.indexOf("popup")>=0) {
						var filename = im.src;
						im.style.cursor = "hand";
						im.onclick = new Function("popUpSized('/window.php?u=" + escape(filename) + "', 780,560,'scrollbars=yes,menubar=no,toolbars=no,dependent=yes,sizeable=no');return false;");
					}
				}
			}
		} catch (e) {
		
		}
	}
