	//<!-- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2" >

	// potvrzeni akce
	function Confirm(text) {
  	if (window.confirm(text) == true) return true;
	  else return false;
	}

	// kontroluje email
	function CheckEmail(what) {
		txt = document.getElementById(what).value;
		if (txt.indexOf("@") > txt.length-5 || txt == "" || txt.length < 6 || txt.indexOf("@") < 0) {
			alert("Váš e-mail není ve správném formátu.");
			return false;
		}
		return true;
	}

	// kontroluje retezce
	function CheckNullString(what_arr)
	{
		var valid = true;
		
		for ( var i = 0; i < what_arr.length; i++ )
		{
			var txt = document.getElementById( what_arr[i] );
			var txt_err = document.getElementById( what_arr[i] + "_error" );
			
			if ( txt.value == "" )
			{
				txt_err.innerHTML = "!";
				valid = false;
			}
			else
			{
				txt_err.innerHTML = "";
			}
		}

		return valid;
	}

	// kontroluje telefonni cislo
	function CheckPhone(what) {
		txt = document.getElementById(what).value.replace(/ /gi, "");
		if (isNaN(txt) || parseInt(txt) < 1000 || txt.length > 12 || txt == "") {
			alert("Telefon zadejte jenom číslicemi: '"+what+"'");
			return false;
		}
		return true;
	}

	// kontroluje telefonni cislo
	function CheckPhoneOneOfThem(what1, what2) {
		txt1 = document.getElementById(what1).value.replace(/ /gi, "");
		txt2 = document.getElementById(what2).value.replace(/ /gi, "");
		
		chyba1 = false;
		chyba2 = false;
		
		if (isNaN(txt1) || parseInt(txt1) < 1000 || txt1.length > 12 || txt1 == "") {
			chyba1 = true;
		}
		if (isNaN(txt2) || parseInt(txt2) < 1000 || txt2.length > 12 || txt2 == "") {
			chyba2 = true;
		}
		
		if (chyba1 && chyba2) {
			alert("Telefon nebo mobil zadejte jenom číslicemi.");
			return false;
		}
		return true;
	}

	// kontroluje cislo
	function CheckNumber(what) {
		txt = document.getElementById(what).value.replace(/ /gi, "");
		if (isNaN(txt) || parseInt(txt) < 0 || /* parseInt(txt) > 100 ||*/ txt.length == 0) {
			alert("Vyplňte, prosím, textové pole: '"+what+"' pouze číslicemi.");
			return false;
		}
		document.getElementById(what).value = txt;
		return true;
	}

	// kontroluje cislo
	function CheckFloat(what) {
		txt = document.getElementById(what).value.replace(/ /gi, "");
		txt = txt.replace(/,/gi, ".");
		if (isNaN(txt) || /*parseFloat(txt) < 0 || parseInt(txt) > 100 ||*/ txt.length == 0) {
			alert("Vyplňte, prosím, textové pole: '"+what+"' pouze číslicemi.");
			return false;
		}
		document.getElementById(what).value = txt;
		return true;
	}
	
	// kontroluje checkbox
	function CheckBox(what) {
		txt = document.getElementById(what);
		if (!txt.checked) {
			alert("Zaškrtněte, prosím, souhlas s naším nákupním řádem.");
			return false;
		}
		return true;
	}

