<!--
	function advSrch() {
		formData = {};
		// obor
		formData['prof'] = {};
		cntr = 0;
		a = document.getElementById('branchList');
		for (i=0;i<a.options.length;i++) {
			if (a.options[i].selected == true) {
				formData['prof'][cntr] = a.options[i].value;
				cntr++;
			}
		}
		// profese
		formData['skill'] = {};
		cntr = 0;
		a = document.getElementById('professionList');
		for (i=0;i<a.options.length;i++) {
			if (a.options[i].selected == true) {
				formData['skill'][cntr] = a.options[i].value;
				cntr++;
			}
		}
// keyword
		formData['key'] = document.getElementById('keyword').value;

		document.location.href = encodeURI(url);
		return false;
	}
	// fce pro validaci formularu (pokud neni nic vybrano, form se neodesila)
	var updated = {};
	function upd(el) {
		if (el.name.indexOf('srch') > -1) {
			if (el.value == 0 || el.value == '') updated[el.name] = null;
			else updated[el.name] = 1;
		}
	}
	function ret() {
		var len = 0;
		for (it in updated) {
			if (updated[it] != null && updated[it] != 'undefined') {
				len++;
			}
		}
		return (len > 0);
	}
	// end of validace
	
//-->

