
// popImg()
// global variable for subwindow reference
var newImgWindow;
// generate and fill the new window
function popImg(imgSrc) {
    var winFeatures = 'resizable,scrollbars';
    // make sure it isn't already opened
    if (!newImgWindow || newImgWindow.closed) {
        newImgWindow = window.open("","sub",winFeatures);
    } else if (newImgWindow.focus) {
        // window is already open and focusable, so bring it to the front
        newImgWindow.focus();
    }
    // assemble content for new window
    var newContent = '<html><head>';
    newContent += '<title>7x11</title>';
    newContent += '<link rel="stylesheet" href="zevenxelf.css" type="text/css" />';
    newContent += '<link rel="stylesheet" href="pressroom/pressroom.css" type="text/css" />';
    newContent += '</head><body class="hedenvinexypenburg">';
    newContent += '<div align="center"><br /><br />';
    newContent += '<img src="' + imgSrc + '" alt="" />';
    newContent += '</div><div align="center"><br /><br />';
    newContent += '<a href="javascript:window.close();">venster sluiten</a>';
    newContent += '<br /><br /><br /></div>';
    newContent += '</body></html>';
    // write HTML to new window document
    newImgWindow.document.write(newContent);
    newImgWindow.document.close(); // close layout stream
}
