/**
 * funkcja wyświetlająca w popupie obrazek
 * 
 * @author Rafał Żelazko
 * @author www.webperfekt.net
 */

function openImg(title, path, width, height) {
         var charset = 'iso-8859-2';
         var closeWindowText = 'Kliknij aby zamknąć okno';
         var newWindow = window.open("", "", "statusbar=1,scrollbars=1,menubar=0,width="+(width+30)+",height="+(height+10)+",top=0,left=0");
         newWindow.document.open();
         newWindow.document.write("<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset="+charset+"\">\n<title>"+title+"</title>\n</head>\n<body style=\"margin: 2px; text-align: center\">\n\n\
         <a href=\"#\" title=\""+title+" ("+closeWindowText+")\" onclick=\"javascript:window.close()\"><img src=\""+path+"\" width=\""+width+"\" height=\""+height+"\" alt=\""+title+" ("+closeWindowText+")\" style=\"border: 1px solid #000000\" /></a>\
         \n\n</body>\n</html>");
         newWindow.document.close();
         newWindow.focus();
} 