function open_window(href, w, h) {
	w = Number(w) + 20;
	h = Number(h) + 10;
	sh = screen.height - 80;
	if (document.all) sh -= 40;
	sw = screen.width;
	if (h > sh) h = sh;
	if (w > sw) w = sw;
	posX = sw/2 - w/2;
	posY = sh/2 - h/2;
	if (posY < 0) posY = 0;
	if (posX < 0) posX = 0;
	posCode = (document.all) ? ",left=" + posX + ",top=" + posY : ",screenX=" + posX + ",screenY=" + posY;
	//Debug
	//alert("w=" + w + "\nh=" + h + "\nposX=" + posX + "\nposY=" + posY);
	moreWin = window.open(href, "idsrv_photo", "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, width=" + w + ", height=" + h + posCode);
	moreWin.focus();
}