
function zaz(typ){
	document.novy.id.value = typ
	document.novy.submit();
}

function ed_del_zaz(typ, idd){
	if(typ == 'smazat'){
		if(confirm("Chcete opravdu smazat tento záznam ?")){
			progress_bar();
			document.getElementById('man_zaz').id.value = typ;
			document.getElementById('man_zaz').id2.value = idd;
			document.getElementById('man_zaz').submit();
		}
	}else{
		document.getElementById('man_zaz').id.value = typ;
		document.getElementById('man_zaz').id2.value = idd;
		document.getElementById('man_zaz').submit();
	}
}


function grand_all(id){
	if(document.getElementById('cislo'+id).className == 'cislo_on'){
		//document.getElementById('tr'+id).className = 'tr_off';
		document.getElementById('otazka'+id).className = 'ot_off';
		document.getElementById('odpoved'+id).className = 'od_off';
		//document.getElementById('datum'+id).className = 'grand_off';
		document.getElementById('cislo'+id).className = 'cislo_off';
		//document.getElementById('public'+id).className = 'grand_off';
		document.getElementById('popis'+id).className = 'grand_off';
	}else{
		document.getElementById('cislo'+id).className = 'cislo_on';
		document.getElementById('otazka'+id).className = 'ot_on';
		document.getElementById('odpoved'+id).className = 'od_on';
		//document.getElementById('datum'+id).className = 'grand_on';
		//document.getElementById('cislo'+id).className = 'grand_on';
		//document.getElementById('public'+id).className = 'grand_on';
		document.getElementById('popis'+id).className = 'grand_on';
	}
}


function vse(){
	document.getElementById('vse').id.value = 'vse';
	document.getElementById('vse').submit();
}


