//<script language="javascript" type="text/javascript">
//<!--
    //browserName = navigator.appName;
    //browserVersion = parseInt(navigator.appVersion);
    //if ((browserName == "Netscape" && browserVersion >= 3) || (bName == "Microsoft Internet Explorer" && browserVersion >= 4))
    //{
    //  browserCompability = "Y";
    //}
    //else
    //{
    //  browserCompability = "N";
    //}

    function ViewDesign(img_src, img_wide, img_high)
    {
        var scrollbar = 'no';
        var win_wide = img_wide; var win_high = img_high;
        if (win_wide > screen.width) { win_wide = screen.width; scrollbar = "yes"; }
        if (win_high > screen.height) { win_high = screen.height; scrollbar = "yes"; }
        var left = (screen.width - win_wide) / 2;
        var top = (screen.height - win_high) / 2;
        var winAttribs =
                'toolbar=0,status=0,menubar=0,resizable=0,directories=0,dependent=yes,'
                + 'scrollbars=' + scrollbar + ',width=' + win_wide + ',height=' + win_high + ',top=' + top + ',left=' + left;
        var winHandler = window.open('', '_blank', winAttribs);
        var htmlContent =
                '<html><head><title>' + img_src + '</title><style>'
                + 'div.image{position:absolute;top:0;left:0;width:' + img_wide + 'px;height:' + img_high + 'px;'
                + 'border:0px;padding:0px;z-index:0;overflow:auto;background-color:#c0c0c0;'
                + 'background-image:url(\'' + img_src + '\');background-repeat:no-repeat;}</style>'
                + '</head><body><div class="image" onClick="self.close();"></div></body></html>';
        winHandler.document.open();
        winHandler.document.write(htmlContent);
        winHandler.document.close();
        winHandler.focus();
    }

//-->
//</script>
