Hola, yo utilizo esta funcion en javascript, la podés meter en el mismo documento o en tu carpetas de j´s haciendole un llamado a la función...
function abrirpopup(theURL,winName,features, myWidth, myHeight, isCenter) {
if(window.screen)if(isCenter)if(isCenter=="true"){
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
window.open(theURL,winName,features+((features!='' )?',':'')+'width='+myWidth+',height='+myHeight);
}
en el HTML lo escribes asi:
<a href="javascript
:;abrirpopup('productodetalle.php? id=<?=$row[id]?>','nombre_ventana','status=yes scrollbars=yes','640','400','true')">Clic para ver o colocas una imagen aqui</a>
también puedes ordenar los resultados en una tabla yu le colocas border="0" a la imagen para que no se le vea el borde azul feo