
function openWin(image, w, h){
	
	if(w < 505)
		w = 505;
	if(h < 150)
		h= 150;

	var winleft = (screen.width - w) / 2;
	var winUp = (screen.height - h) / 2;
		
	window.open("popup.php?image=" + image, 'sample', 'toolbar=no, width=' +w+ ', height=' +h+ ',left=' +winleft+ ",top="+winUp);
}