function popup( resource )
    {
        okno = null;
        w=650;
        h=580;
        if(window.screen)
        {
            aw = screen.availWidth;
            ah = screen.availHeight;
        }
        else
        {
            aw=510;
            ah=450;
        }
        dane="width="+w+",height="+h+",left="
            +(aw-w)/2+",top="
            +(ah-h)/2 
            +",toolbar=no,location=no,directories=no,"
            +"status=no,menubar=no,"
            +"scrollbars=yes,resizable=no";
        okno=window.open(resource,'pop',dane);
    }

