Does anyone know how to generate dynamic pop-up windows? By that I mean does anyone know of a script be it in JavaScript, Perl or PHP that would allow me to link to an image and when clicked would open up another window with just the image in it and the window would be the size of the image?

I have several images that I would like to pop-up in their own window but they aren't all the same size.

Also, but this isn't really necessary, I would like only one pop-up to be open at a time. If another is opened it should replace the existing one.

Thanx for any help you can give me!