<!--
	function hideHint(elem_id, hint_val) {
  		if (document.getElementById(elem_id).value == hint_val) {
    		document.getElementById(elem_id).value = "";
    		document.getElementById(elem_id).style.color = "#000000";
  		}
	}

	function showHint(elem_id, hint_val) {
  		if (document.getElementById(elem_id).value == "") {
    		document.getElementById(elem_id).style.color = "#999999";
   			document.getElementById(elem_id).value = hint_val;
  		}
	}
	
	//Zmena farby pozadia v editacnom formulari
	function ChangeState(elem) {
  		document.getElementById(elem).style.backgroundColor = "white";
  	}
	
	//Kontrola editacneho formulara
	function ValidateForm(form) {
  		var mail = form.fmail.value;
		var mailfilter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		var phonefilter  = /^([0-9\/\\\-\+() ])+$/;
  		var go_on = "";
		var changecolor = "#CCCCCC";
		
		if (form.fmeno.value == "") {
			form.fmeno.style.backgroundColor = changecolor;
			go_on = "no";
		}
		if (form.fmail.value == "") {
			form.fmail.style.backgroundColor = changecolor;
			go_on = "no";
		}
		else if (!mailfilter.test(form.fmail.value)) {
			form.fmail.style.backgroundColor = changecolor;
			go_on = "no";
		}
		if (form.ftel.value == "") {
			form.ftel.style.backgroundColor = changecolor;
			go_on = "no";
		}
		else if(!phonefilter.test(form.ftel.value)) {
			form.ftel.style.backgroundColor = changecolor;
			go_on = "no";
		}
		if (form.ftext.value == "") {
			form.ftext.style.backgroundColor = changecolor;
			go_on = "no";
		}
		if (go_on == "no") { return false; }
		else { return true; }
  	}
-->
