scrollbars=function show_object(idcko){
	eval("document.getElementById('"+idcko+"').style.display = '';");
	// kvuli bugu ie, schova select ktery je pod dynamickym menu
	if (document.getElementById('filtr') != null){
		document.getElementById('filtr').style.display = 'none';
		document.getElementById('indication').style.display = 'none';
	}
	if (document.getElementById('siteX') != null){
		document.getElementById('siteX').style.display = 'none';
		document.getElementById('type').style.display = 'none';
		document.getElementById('specialization').style.display = 'none';
	}
}

function hide_object(idcko){
	eval("document.getElementById('"+idcko+"').style.display = 'none';");
	// kvuli bugu ie, schova select ktery je pod dynamickym menu
	if (document.getElementById('filtr') != null){
		document.getElementById('filtr').style.display = '';
		document.getElementById('indication').style.display = '';
	}
	if (document.getElementById('siteX') != null){
		document.getElementById('siteX').style.display = '';
		document.getElementById('type').style.display = '';
		document.getElementById('specialization').style.display = '';
	}
}

function newWindow (url, xwidth, yheight){
	eval("window.open('"+url+"','','width="+xwidth+",height="+yheight+",location=no,toolbars=no,statusbar=no,scrollbars=yes,resizable=no')");
}

function newPopupWindow (url, xwidth, yheight){
	eval("window.open('"+url+"','','width="+xwidth+",height="+yheight+",location=no,toolbars=no,statusbar=no,scrollbars=no,resizable=yes')");
}

function change_img (name, path){
	eval("document.getElementById('"+name+"').src='"+path+"'");
}

function delete_confirm(idcko, section){
	if (confirm("Opravdu chcete smazat tento záznam?")){
		document.getElementById("id").value = idcko;
		document.getElementById("sectionId").value = section;
		document.getElementById("formDelete").submit();
	}
}

function inputCheckValue(name, value, step){
	if (step == 'in'){ // pri onclick
		if (eval("document.getElementById('"+name+"').value == '"+value+"';")){
			eval("document.getElementById('"+name+"').value = '';");
		}
	}else{ // pri onfocusout
		if (eval("document.getElementById('"+name+"').value == '';")){
			eval("document.getElementById('"+name+"').value = '"+value+"';");
		}
	}
}

function change_bg (idcko,background){
	eval("document.getElementById('"+idcko+"').style.backgroundColor='"+background+"'");
}

function loginDemand(){
	alert('Tato sekce je přístupná pouze prihlášeným uživatelům.');
}



