// JavaScript Document
PositionX = 0;
PositionY = 0;
defaultWidth  = 1;
defaultHeight = 1;

var AutoClose = true;

var windver='width=200,height=200,location=no,resizable=yes,scrollbars=yes';

function popImage(imageURL,imageTitle){
imgWin=window.open('about:blank','',windver);

with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');

writeln('<sc'+'ript>');
writeln('function reSizeToImage(){');
writeln('window.resizeTo(100,100);');
writeln('width=40+document.images[0].width;');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');

writeln('function doTitle(){document.title="'+imageTitle+'";}');
writeln('</sc'+'ript>');
if (!AutoClose) 
writeln('</head><body bgcolor=FFFFFF onload="reSizeToImage();doTitle();self.focus()">')
else 
writeln('</head><body bgcolor=FFFFFF onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<div align="center"><img name="George" src='+imageURL+' style="display:block" border="1" align="middle"></div></body></html>');
close();		
}}