<!-- 
	function getIt(id) {
		return document.getElementById(id);
	}
	
	function doIfConfirmed(field,action,form,question,selectedfield) {
  		if (confirm(question)) {
  			getIt(selectedfield).value = getSelectedCheckboxes(form);
  			getIt(field).value = action;
	  		getIt(form).submit();	
  		}
  	}

	function switchVisibility(idToShow,idToHide) {
		document.getElementById(idToShow).style.display = 'inline';
		document.getElementById(idToHide).style.display = 'none';
	}

	function showElement(idToShow) {
		document.getElementById(idToShow).style.display = 'inline';
	}
	
	function getSelectedCheckboxes(idForm) {
		f =	document.getElementById(idForm);
		ids = "";
		for (i=0;i<f.length;i++) {
			if (f.elements[i].type == "checkbox") {
				if (f.elements[i].checked == true) {
					ids += f.elements[i].id;
				}
			}
		}
		ids = ids.slice(1);
		return ids;
	}

	function selectAll(idForm) {
		f =	document.getElementById(idForm);
		for (i=0;i<f.length;i++) {
			if (f.elements[i].type == "checkbox") {
				f.elements[i].checked = true;
			}
		}
	}
	
	function selectNone(idForm) {
		f =	document.getElementById(idForm);
		for (i=0;i<f.length;i++) {
			if (f.elements[i].type == "checkbox") {
				f.elements[i].checked = false;
			}
		}
	}
	
	function selectInvert(idForm) {
		f =	document.getElementById(idForm);
		for (i=0;i<f.length;i++) {
			if (f.elements[i].type == "checkbox") {
				f.elements[i].checked = !f.elements[i].checked;
			}
		}
	}

	function zmien(co) {
		document.images[11].src = "images/twarze/tw_" + co + ".jpg";
	}

	function powrot() {
		document.images[11].src = "images/twarze/tw_1.jpg";
	}
	
	function makevisible(cur,which){
	if (which==0) 
		cur.filters.alpha.opacity=100;
	else
		cur.filters.alpha.opacity=80
	}
	
	function laduj() {
	var d=document;
  	if(!d.lad) { d.lad = new Array(); }

	var i,j = 0;
	var a = laduj.arguments;
	for(i=0; i<a.length; i++)
		{ d.lad[j] = new Image; d.lad[j++].src=a[i];
		  window.status = (i+1) + "/" + a.length; }
	window.status = "";
	}
	
	function showPicture(img,desc,width,height,path) {
		/*if (navigator.appName=="Microsoft Internet Explorer") {
			okno=createPopup();
			okno.document.body.innerHTML='<html><body style="background:"><table rules="groups" align="center" bgcolor="#FED65D" bordercolor="#731F02" border="1" cellspacing="1" cellpadding="0" width="100%" height="100%" style="background: #FED65D url(telko2.gif) repeat-y; font-family: Arial CE; font-size:9pt;"><tr><td valign="top" style="background: #8E0300 url(images/galeria/wait2.gif) no-repeat center;" height="250"><img src="'+img+'"></td></tr><tr><td align="center">'+opis+'</td></tr><tr><td align="center"><a onClick="window.blur();" href="#" style="text-decoration:none; color: #B05800;"><i><b>Zamknij</b></i></a></td></tr></table></body></html>';
			okno.show((screen.width/2)-242,(screen.height/2)-207,width,height);
		} else {
		*/
		width = width + 21;
		height = height + 50;
		window.open(path+'picture.php?img='+img+'&desc='+desc,'','width='+width+',height='+height+',top='+((screen.height-height)/2)+',screenY='+((screen.height-height)/2)+',left='+((screen.width-width)/2)+',screenX='+((screen.width-width)/2)+',toolbar=no,status=no,location=no,directories=no,menubar=no,scrollbars=no,resizalbe=no');
	}

function check(f) {
	if ((f.tresc.value=="") || (f.autor.value==""))
	{
		alert("Pole z treścią lub podpis nie mogą być puste!");
	} else {
		f.submit();
	}
}
//-->