Te paso una mezcla del tuyo y el mio.
Pruebalo y dime algo, pero no te quedes
en el head
Código PHP:
<script>
function abrir() {
ancho=300;
alto=400
anc=(screen.width-ancho) / 2;
alt=(screen.height-alto) / 2;
window.open('tuimagen.jpg','','width='+ancho+',height='+alto+',left='+anc+',top='+alt+')');
}
</script>
la llamada:
Código PHP:
<form action='javascript:popup("tuimagen.jpg")'>
<a href="#" onClick="abrir()"> <INPUT TYPE="" VALUE="PULSA AQUI"
style="background-color:yellow">
</a></FORM>
No me funcionaba, pero en cuanto cambié el INPUT TYPE se arregló todo.
Dime si te va o no.