/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,top=1,left=1'
win = window.open(mypage,myname,settings)
}





var o="";
var ostart;
o=window.self;
ostart=window.self;
var nrakt=0;
function go(nazwa){
if (o!=ostart){
	if (o.closed){}else {o.close();};
};
o=window.open(nazwa,'o','width=770,height=550,scrollbars=1,top=1.left=1');

};
