d=document;

function b(t) { this.blur() }

function druk() {
	print();
	//window.close();
}

function okno(adres,x,y,scroll,nazwa_okna) {
	if(scroll == null) {
		scrolls = 1;
	} else {
		scrolls = 0;
	}

	if(nazwa_okna == null) {
		nazwa_okna = Math.round(Math.random()*100000);
	}
	
	od_lewej = (screen.width - x)/2;
	//od_gory = (screen.height - y)/2;
	od_gory = 50;
	
	window.open(adres,"okno"+nazwa_okna,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scrolls+",resizeable=1,width="+x+",height="+y+",left="+od_lewej+",top="+od_gory+"");
}

/*
function okno(adres,x,y) {
	window.open(adres,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1,width="+x+",height="+y);
}
*/

function zdjecie(id,x,y) {
	szerokosc=x+40;
	wysokosc=y+100;

	od_lewej = (screen.width - x)/2;
	//od_gory = (screen.height - y)/2;
	od_gory = 50;

	window.open("../skrypty/pokaz_zdjecie.php?id="+id+"&x="+x+"&y="+y,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width="+szerokosc+",height="+wysokosc+",left="+od_lewej+",top="+od_gory+"");
}

function desc_prof() {
	var ele = document.getElementById("more_desc");
	var text = document.getElementById("more_btn");
	if(ele.style.display == "block") {
    	ele.style.display = "none";
		  text.innerHTML = "+ czytaj więcej...";
  	}
	else {
		ele.style.display = "block";
		text.innerHTML = "- zwiń opis";
	}
} 

