function open_picture(ID) { var features; features = 'scrollbars=yes,toolbar=no,width=700,height=600'; theURL = 'photo.php?img='+ID+'; popup = window.open(theURL,features); popup.focus(); }