
function bildPopup(bildSrc, bildTitle, bildAlt)
{
    var undefined;


    if (bildAlt == undefined)
    {
        bildAlt = '';
    }

    if (bildTitle == undefined)
    {
        bildTitle = 'titel';
    }

    bildpopnw = window.open("", "", 'resizable=1,width=110,height=110,scroll=no');

    with (bildpopnw)
    {
        focus();
        document.open();
        document.write('<html><head><title>' + bildTitle + '</title>');
        document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
        document.write('<link href=\"/styles.css\" rel=\"stylesheet\" type=\"text/css\"></head>');
        document.write('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll=\"no\" class=\"picpop\" onload=\"opener.bildpoprez(document.images[0].width,document.images[0].height)\">')
        document.write('<a href=\"javascript:self.close()\" title=\"click to close window\">');
        document.write('<img src=\"' + bildSrc + '\" border=\"0\" alt=\"' + bildAlt + '\"></a>')
        document.write('</body></html>')
        document.close();
    }
}

function bildpoprez(x, y)
{
    if (navigator.appName == 'Microsoft Internet Explorer')
    {
        bildpopnw.resizeTo(x + 10, y + 29);
    }

    else
    {
        if (navigator.appVersion.substring(0, 1) < "5")
        {
            bildpopnw.resizeTo(x, y + 22);
        }
        else
        {
            bildpopnw.resizeTo(x + 8 - 8, y + 28);
        }
    }

    bildpopx = (screen.availWidth / 2) - (x / 2);
    bildpopy = (screen.availHeight / 2) - (y / 2);
    bildpopnw.moveTo(bildpopx, bildpopy);
}
