// (c)opyleft 2003 - miika mäkäräinen - twilo@swipnet.se
var fileName = '';
var description = '';
var height = '';
var width = '';
var properties = '';

function imgWindow(imgnme, w, h, d, t) {
    height = parseInt(h) + parseInt(t);
    properties = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=' + height + ',width='+w;
    lrgewin = window.open("about:blank","",properties)

    description=d;
    width = w;
    height = h;
    fileName = imgnme;
    setTimeout('update()',200)
}

function update() {

    var head = '<html><head><title>' + description + '</title><link rel="stylesheet" href="popup.css" type="text/css"></head><body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" bgcolor="' + document.body.bgColor + '">';
    doc = lrgewin.document;
    doc.open('text/html');
    doc.write(head);
    doc.write('<img src="' + fileName + '" height="' + height + '" width=' + width + '" alt="' + description + '"><br>&nbsp;<font  face="verdana" size="1" class="text">');
    doc.write(description + '</font></body></html>');
    doc.close();
}
