You have been referred to this item:

How do I make a popup window the same size as my image?

http://b-cage.net/code/web/picpop.html