/**
* ustawia tla dla obiektow o daneym id
*/
function tloid(jakieid, jakiobr) {
	obj1 = new OpacityObject(jakieid,jakiobr);
	obj1.setBackground();	
}

function ustawtla() {
	if (document.getElementById('container')) tloid('container','img/bg_alpha');
	if (document.getElementById('stopka')) tloid('stopka','img/bg_stopka');
	if (document.getElementById('footer')) tloid('footer','img/bg_btm_alpha');
	i = 0;
	while (document.getElementById('s_footer_'+i)) {
		tloid('s_footer_'+i,'img/sub_sec_foot');
		i++;
	}
}

// popup z id obrazka
function obr(num) {
	var OKIENKO = window.open('/popupzobrazkiem.php?id='+num,"omdpopup","alwaysRaised=yes,menubar=no,width=700,height=500");	
	OKIENKO.focus();
}

//popup z nazwą pliku
function obrplik(co) {
	var OKIENKO = window.open('/popupzobrazkiem.php?co='+co,"omdpopup","alwaysRaised=yes,menubar=no,width=700,height=500");	
	OKIENKO.focus();
}

function potw(jakiurl) {
			if (confirm('Czy na pewno?')) location.href=jakiurl;
		}
		
function toplayerclear(){
	document.getElementById('toplayer').innerHTML='';
	document.getElementById('toplayer').style.height='0px';
}

function zaznacz_all(ile){
	var i;
	for (i=1;i<=ile;i=i+1){ 
		document.getElementById('uid_'+i).checked=true
	}
}
function odznacz_all(ile){
	var i;
	for (i=1;i<=ile;i=i+1){ 
		document.getElementById('uid_'+i).checked=false
	}
}
