// JavaScript Document
var okno;

function anim_pop_up(plik,width,height) {
		var x = (screen.width/2) - (width/2);
		var y = (screen.height/2) - ((height)/2); 
		okno=window.open(plik,'anim','toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,directories=no,status=no,resizable=no,width='+width+',height='+(height)+',left='+x+',top='+y);
		okno.focus();
	}

function window_pop_up(plik,nazwa,width,height) {
	if (okno) {
		okno.close();
		}
		var x = (screen.width/2) - (width/2);
//		var y = (screen.height/2) - ((height+40)/2); 
		var y = (screen.height/2) - ((height)/2); 
//		okno=window.open(plik,nazwa,'toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,directories=no,status=no,resizable=no,width='+width+',height='+(height+40)+',left='+x+',top='+y);
		okno=window.open(plik,nazwa,'toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,directories=no,status=no,resizable=no,width='+width+',height='+height+',left='+x+',top='+y);
		okno.focus();
	}
	
function foto_next(plik,width,height) {
//	window.close();
	var x = (screen.width/2) - (width/2);
	var y = (screen.height/2) - ((height+40)/2); 
	okno=window.open(plik,'foto','toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,directories=no,status=no,resizable=no,width='+width+',height='+(height+40)+',left='+x+',top='+y);
	okno.focus();
	}

function form_reset(FormName,Od,Do) {
	for (i = Od; i <= Do ; i++) {
		document.forms[FormName].elements[i].value = '';
		}
	}
