Hello guys!!

Please take a look at this: http://www20.brinkster.com/diablomax/index.html
I'm trying to get an image to pop-up in its own, separate window, when you click on the link.
I'm not all that skilled, the code that I'm using I took it from another website, and I
modified it such way to suit my needs. I made a .js file and I put the function in there as I
like it better that way because it's more organized, and of course I reference that .js file
into the head of the page as you can see.
Well here I have some problems:

The first problem is that all the images that I'm going to use will be 640x480 in size,
and I want that the new window that pops up to be the same size as the image.
As you see the actuall size of the new window is 640x480 (and same for the image), but because
it adds some blank space around the picture, the image is not fully visible without scrolling,
and cannot figure out how to make it such way that the window hugs the image preciselly,
without the waste of space around it. Besides all that, because it adds unnecessary space
around it doesn't fully dispaly the image, and as a result it adds scrollbars, that looks
really bad.

The second thing is that I want the new window to have fixed dimensions, I mean that I don't
want it to be resizable, I don't want those borders to resize, and regarding to this I also
want the maximize button to be grayed out. The only buttons that I want to be functional at
the top are the close window button and the minimize to the taskbar button.

Here it is the newwindow.js file:
========================================================
function NewWindow(mypage, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var myname = mypage.split('.')[0];
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open('', '', winprops)
win.document.writeln("<html><head><title>"+myname+"</title></head>"+
"<body onload='window.focus()'><form><iframe src=""+mypage+"" "+
"width='100%' height='100%' frameborder=no></iframe>"+
"</form></body></html>")
win.document.close; // need to close after writing
}
========================================================

Here it's the code in the index.html page:
========================================================
<html>
<head>
<script type="text/javascript" language="javascript" src="newwindow.js"></script>
</head>
<body>
<a href ="myimage.jpg" onclick = "NewWindow('myimage.jpg','640','480','no');return false;">View Image</a>
</body>
</html>
========================================================

Could you guys PLEASE help me!!?
THANK YOU!!