function show_block ( block_id ) {
 	document.getElementById ( block_id ).style.display = "block";
 } 
function hide_block ( block_id ) {
	document.getElementById ( block_id ).style.display = "none";
}
function pop(action, w, h){
	var url="./index.php?action="+action;
	if(!w){w=300;}
	if(!h){h=200;}
	var popup=window.open(url,"pop","width="+w+",height="+h+",top="+(screen.availHeight/2-h/2)+",left="+(screen.availWidth/2-w/2));
	popup.focus();
	return false;
}
function check_calc1 (tr_id, select_id, typ) {
	hodnota = document.getElementById ( select_id ).value;
//	if(hodnota > 3) { alert('alert: ' + hodnota);}
	if(typ == '1') {
		if(hodnota == 13) {
			document.getElementById ( tr_id ).style.display = "block";
		} else {
			document.getElementById ( tr_id ).style.display = "none";
			document.formular.jistic_hodnota.value = "";
		}
	}
	if(typ == '2') {
		if(hodnota > 3 && hodnota < 10) {
			document.getElementById ( tr_id ).style.display = "block";
		} else {
			document.getElementById ( tr_id ).style.display = "none";
			document.formular.odber_nt.value = "";
		}
	}
}
function check_calc2 (fid1, fid2, select_id) {
//	hodnota = document.getElementById ( select_id ).status;
	hodnota = document.getElementById ( fid1 ).style.display;
//	alert('alert: ' + hodnota);
	if(hodnota == "none") {
		document.getElementById ( fid1 ).style.display = "block";
		document.getElementById ( fid2 ).style.display = "block";
	} else {
		document.getElementById ( fid1 ).style.display = "none";
		document.formular.cena_nt.value = "";
		document.getElementById ( fid2 ).style.display = "none";
		document.formular.odber_nt.value = "";
	}
}
/*
function hide_block( block_id ) {
	id=block_id;
    setTimeout('time_hide_block(id)', '1000');
}
*/
