HOLA ALEJANDRA NO ES NECESARIO QUE PONGAS CODIGO DE JAVA SCRIP YA QUE LO PUEDES HACER ASI:
Código PHP:
<a onclick="this.target = 'popup'; window.open('', 'popup', 'width=450,height=250,top=200,left=200,resizable=0,scrollbars=0,menubar=0,toolbar=0,status=yes,location=0')" href="h t t p://w w w.tuweb/muestrafotogrande.php?id=<?echo $damefila["idparaubicarfoto"];?>">
<img src="borrar.gif" border="0" width="18" height="20"></a>
espero que este pequeño ejemplo te ayude, cualquier consulta o si deseas aprender mas acerca de php no dudes en escribirme. suerte
ojo: el h t t p y el w w w : esta separado ya que aun no tengo el minimo de mensajes para poder enviar direcciones web, ya lo juntas tu.