function initit() {
	if (document.formular.zzdate)
		document.formular.zzdate.onchange = copyVal();
}
function copyVal() {
	if (document.formular.zzdate)
		document.formular.zhdate.value = document.formular.zzdate.value;
}
function increase() {
	pv = document.formular.pocet_voleb;
	val = parseInt(pv.value);
	if(val < max_pocet_voleb) {
		s = "pop"+val;
		var inp = document.getElementById(s);
		inp.className = "";
		pv.value = val + 1;		
	}
}
function decrease() {
	pv = document.formular.pocet_voleb;
	val = parseInt(pv.value);
	if(val > 2) {
		s = "pop"+ (val - 1);
		var inp = document.getElementById(s);
		inp.className = "invi";
		pv.value = val - 1;		
	}
}
function setAction() {
	document.formular.action.value = "storno";
}
function checkOut() {
	pv = document.formular.pocet_voleb;
	val = parseInt(pv.value);
	if (document.formular.nazev.value.length < 3) {
	    alert(hla1);
	    return false;
	}
	if (document.formular.zzdate)
		if ((document.formular.zdate.value.length < 6) ||
			(document.formular.kzdate.value.length < 6)) {
			alert(hla2);
			return false;
		}
	return true;
}


