function zoom(plik, size_x, size_y, scroll, loc, stat, posX, posY){

  size_x += 14;
  size_y += 32;
  
	if (posX == null) posX = Math.round(((screen.availWidth-size_x)/2)-5);
	if (posY == null) posY = Math.round(((screen.availHeight-size_y)/2)-14);

	if (scroll == null) scroll = 0;
	if (loc == null) loc = 0;
	if (stat == null) stat = 0;

	popup="width="+size_x+",height="+size_y+",left="+posX+",top="+posY+",toolbar=no,location="+loc+",directories=no,status="+stat+",menubar=no,scrollbars="+scroll+",resizable=no";
	opener = window.open( plik, 'zoom', popup);
}