Asi se ve...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>abrir-pupups</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
var popup = null;
function abrirpopup(ruta,titulo,ancho,alto){
posicion_x = (screen.width) ? (screen.width-ancho)/2 : 0;
posicion_y = (screen.height) ? (screen.height-alto)/2 : 0;
config =
'height='+alto+',width='+ancho+',top='+posicion_y+ ',left='+posicion_x+',scrollbars=no,resizable=no'
popup = window.open(ruta,titulo,config)
}
</script>
</head>
<body>
<p>por un enlace texto</p>
<p><a href="images/1622g.jpg" onclick="abrirpopup(this.href,'name','640','342'); return false">abra el pop aqui</a></p>
<p>por una imagen<br>
<a href="images/1622g.jpg" onclick="abrirpopup(this.href,'name','640','342'); return false"><img src="thumbails/mini-1622g.jpg" width="175" height="94"></a></p>
</body>
</html>
Gracias
