
function imagePopup(url, title, width, height)
{
    // Set these value approximately 20 pixels greater than the
    // size of the largest image to be used (needed for Netscape)
    defaultWidth  = 360;
    defaultHeight = 431;
    if (height == 0) height=window.innerHeight;
    if (width == 0) height=window.defaultWidth;

    imageTitle = title;

    x = (width)/2, y = (height)/2;
    if (screen)
    {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }

    // Set autoclose true to have the window close automatically
    // Set autoclose false to allow multiple popup windows
    var AutoClose = true;

    if (parseInt(navigator.appVersion.charAt(0))>=4){
        var isNN=(navigator.appName=="Netscape")?1:0;
        var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
    }
    var optNN='scrollbars=no,width='+width+',height='+height+',left='+x+',top='+y;
    var optIE='scrollbars=no,width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x;

    if (isNN){imgWin=window.open('about:blank','',optNN);}
    if (isIE){imgWin=window.open('about:blank','',optIE);}
    var imgheight = height;
    var imgwidth = width;
    if (isIE){
        if (imgheight == 0) imgheight=window.innerHeight;
        if (imgwidth == 0) imgheight=window.innerWidth;
    } else {
        if (imgheight == 0) imgheight=window.defaultHeight;
        if (imgwidth == 0) imgheight=window.defaultWidth;
    }
    with (imgWin.document){
        writeln('<html><head><title>'+imageTitle+'</title><style>body{margin:0px;}</style>');
        if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="self.focus()">')
        else writeln('</head><body scroll="no" onload="self.focus()" onblur="self.close()">');
        writeln('<img name="George" height="'+imgheight+'" width="'+imgwidth+'" src="'+url+'" >');
        writeln('</body></html>');
        close();
    }
    return false;
}
