Might be a bit hefty file size wise for what you want but lightbox is quite nice for opening image overlays<br><br><a href="http://www.huddletogether.com/projects/lightbox2/">http://www.huddletogether.com/projects/lightbox2/
</a><br><br>the original version (just drop the 2 from url) is a little bit lighter or google for lightbox clones there was one done using moo.fx and prototypelite.js which has a smaller filesize<br><br>But on a separate note please look into progressive enhancement - what happens to the poor souls who dont have browsers which recognize the javascript protocol or who don't have a javascript enabled browser, what do they get instead??? 
<br><br><br><div><span class="gmail_quote">On 11/29/06, <b class="gmail_sendername">Nathan V. Patwardhan</b> &lt;<a href="mailto:nvp@noopy.org">nvp@noopy.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Nov 30, 2006 at 05:30:41AM +1100, David Chance wrote:<br>:<br>: What I'm looking to do is basically just have an image<br>: displayed, then when clicking on it a new window opens that I<br>: can size and include a close link in it.
<br>[snip]<br><br>:&nbsp;&nbsp; generator.document.write('&lt;A HREF=&quot;javascript:ImageWindow(ImgUrl)&quot;&gt;&lt;IMG SRC='ImgUrl' width=&quot;300&quot;&gt;');<br><br>Maybe what you'd meant was (untested):<br><br>&nbsp;&nbsp;&nbsp;&nbsp;generator.document.write
('&lt;A HREF=&quot;javascript:ImageWindow(ImgUrl)&quot;&gt;&lt;IMG SRC=&quot;' + ImgUrl + '&quot; width=&quot;300&quot;&gt;');<br><br>Make sure that ImgUrl is in the scope that you'd expect, too.<br><br>--<br>Nathan V. Patwardhan
<br><a href="mailto:nvp@noopy.org">nvp@noopy.org</a><br>_______________________________________________<br>Javascript mailing list<br><a href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a><br><a href="https://lists.LaTech.edu/mailman/listinfo/javascript">
https://lists.LaTech.edu/mailman/listinfo/javascript</a><br></blockquote></div><br>