    var popupHandle;

    function popup2(picUrlString, windowWidth, windowHeight)
    {
        /*  Always close the old one, so only one at a time is open */
        if(popupHandle || popupHandle!=null)
        {
        if (!popupHandle.closed) popupHandle.close();
        }
        popupHandle=null;

        /*  create a feature string for the popup */
        var x=(screen.width-windowWidth)/2
        var y=(screen.height-windowHeight)/2
        var featureString = "toolbar=no,scrollbars=no,resizable=no"

        featureString = ',left='+x + ',top='+y
        featureString += ',width='+windowWidth+',height='+windowHeight

        /*  html content of the popup */
        var htmlString = "<HTML><HEAD><title>Click to close help box!</title></HEAD>"
		htmlString += "<BODY scroll=auto marginwidth=20 marginheight=20 leftmargin=20 topmargin=20 bgcolor=\"#EBF8FE\" text=\"black\" onclick=\"self.close()\">"
        htmlString += picUrlString
        htmlString += "</BODY></HTML>"

        popupHandle = window.open("" ,"popup2", featureString)
        popupHandle = window.open("" ,"popup2")
        popupHandle.document.clear();
        popupHandle.document.writeln(htmlString);
        popupHandle.focus();
        popupHandle.document.close(); /*  should trigger the picture loading. */

        return popupHandle;
    }

    function winclose()
    {
        if (window.popupHandle!=null && !window.popupHandle.closed)
        {
            window.popupHandle.close();
        }
    }

    function doNothing()
    {
	} /*  does nothing but include_onced by JavaScript in this case */
