function showInPopUp(_url, _win, _w, _h, _debug){
	var winname = "GALLERY_"+_win;
	_url=_url.replace('#', '%23');	// bugfix for '#' in url
	var showIPU=window.open(_url, winname, "width="+_w+", height="+_h+", top="+(screen.height-_h)/2+", left="+(screen.width-_w)/2+", status="+_debug+", toolbar=0, menu=0, location="+_debug+", resizable=1, scrollbars=auto");
// 	var showIPU=window.open(_url, winname, "width="+screen.width+", height="+screen.height+", top=0, left=0, status="+_debug+", toolbar=0, menu=0, location="+_debug+", resizable=1, scrollbars=auto");
// 	showIPU.moveTo(-4, -30);	// modification
	showIPU.focus();
}

