wieso so kompliziert?
<a href="#" onclick="window.open('keine/ahnung.jpg', 'xxxxx', 'height=200,width=250')">bild 1</a>
machs so, so gehts sicher!
Und so funktioniert der Link auch ohne JS:
<a href="'keine/ahnung.jpg'"
target="xxxxx"
onclick="window.open(this.href, this.target, 'height=200,width=250');return false;">bild 1</a>
und falls der OP ein Skript sucht, das ein Fenster an eine Bildgröße anpasst http://home.arcor.de/struebig/js/popup/popup_2.htm
Struppi.