// JavaScript Document
<!--
var IE = navigator.appName=="Microsoft Internet Explorer";
var NS = navigator.appName=="Netscape";
var bVer = parseInt(navigator.appVersion);
var newWin=null;
function popup(loc, name, width, height, resizable, menubar, scrollbars) {
 var _params = "width="+width+",height="+height+",resizable="+resizable+", menubar="+menubar+",scrollbars="+scrollbars;
        if (bVer >= 4) {
                 _left = ( (screen.width-width) >>1 );
                 _top = ( (screen.height-height) >>1 );
        } else {
                 _left = ( (800-width) >>1 );
                 _top = ( (600-height) >>1 );
        }
        if (IE) _params += ",top=" + _top + ",left=" + _left;
        else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
        newWin = window.open(loc, name, _params);
        if ( newWin!=null && !(IE && bVer<5) )
                newWin.focus();
}
//-->
/// javascript:popup1('', 'NewWindow', 630, 500);
jQuery.extend({
		tworz_maske: function(opt){if(window.ActiveXObject){var io = document.createElement('<div id="maska" name="maska"></div>');} else {var io = document.createElement('div');io.id = "maska";io.name = "maska";}io.style.position = 'absolute';io.style.top = '0px';io.style.left = '0px';io.style.background = '#000000';if(!opt){opt = 0.5;}io.style.display = "block";io.style.zIndex = 1000;document.body.appendChild(io);$(io).css("height",$(document).height());$(io).css("width",$(document).width());$(io).css("opacity",opt);return io}
});