window.open(apri, "pippo", 'width='+larghe+', height='+alte);


<a href=\"javascript:Popup('photo.php?photoid=$row[photoid]', 500, 1000)\">$row[photo_name]</a>