function bigimage (obrazek,title) {

    if (title=='')
        title='Powiększenie'
    
    im = new Image ()
    im.src = obrazek

    w = 150
    h = 150
    l = Math.round((screen.width-w)/2)
    t = Math.round((screen.height-h)/2)

    if (navigator.appName.indexOf("Microsoft")!=-1) {
        addy = 0
        addx = 4
        }
    else {
        addy = 15
        addx = 0
    }
    
    nw = window.open ('','pic','toolbar=0,scrollbars=no,width='+w+',height='+h+',left='+l+',top='+t)

    nw.document.write ("<html><head><title>"+title+"</title></head>")
    nw.document.write ("<body scrolling='no' leftmargin='2' topmargin='2' marginheight='2' marginwidth='2' onClick='window.close()' onBlur='self.close()'>")
    nw.document.write ("<img src='"+obrazek+"' border=1 alt='"+title+"' style='display:block; cursor: hand' name='img'></body></html>")

    w = nw.document.images[0].width + 12 + addx
    h = nw.document.images[0].height + 34 + addy
    nw.resizeTo (w,h)

    l = Math.round((screen.width-w)/2)
    t = Math.round((screen.height-h)/2)
    nw.moveTo (l,t)

}
