

(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = 	{
					"required":{
						"regex":"none",
						"alertText":"Tato položka je povinná",
						"alertTextCheckboxMultiple":"Vyberte jednu z možností",
						"alertTextCheckboxe":"Tento checkbox je povinný"},
					"length":{
						"regex":"none",
						"alertText":"Zadejte ",
						"alertText2":" až ",
						"alertText3": " znaků"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"Zkraťte tento řetězec"},
					"minCheckbox":{
						"regex":"none",
						"alertText":"Prosím, vyberte minimálně ",
						"alertText2":" možnost(i)"},
					"confirm":{
						"regex":"none",
						"alertText":"Hesla se neshodují"},
					"phone":{
						"regex":"/^[+]?[()/0-9. -]{9,}$/",
						"alertText":"Chybný formát telefonního čísla"},
					"psc":{
						"regex":"/^([0-9]{5}|[0-9]{3} [0-9]{2})$/",
						"alertText":"Chybný formát PSČ"},
					"mail":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"Toto není platný e-mail"},
					"date":{
						"regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
						"alertText":"Chybné datum, musí být RRRR-MM-DD, tedy např. 2010-04-20"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"Lze vložit pouze číslo"},
					"onlyTime":{
						"regex":"/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/",
						"alertText":"Lze vložit pouze čas"},
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"..bez háčků, čárek, mezer..."},
					"ajaxUser":{
						"file":"../include/validate.php?typ=nick",
						"extraData":"name=admin",
						"alertTextOk":"Tento nick je volný",
						"alertTextLoad":"Čekejte prosím...",
						"alertText":"Tento nick není možné použít"},
					"ajaxMail":{
						"file":"../include/validate.php?typ=mail",
						"extraData":"name=admin",
						"alertTextOk":"Tento e-mail lze použít",
						"alertTextLoad":"Čekejte prosím...",
						"alertText":"Tento mail je již zaregistrován"},
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Povoleny jsou znaky a-z, A-Z"}
					}	
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});

