

(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = 	{"required":{    			// Add your regex rules here, you can take telephone as an example
						"regex":"none",
						"alertText":"* A k&#252;ld&#233;s gombra t&#246;rt&#233;no kattint&#225;s elott k&#233;rj&#252;k, t&#246;lts&#246;n ki minden sz&#252;ks&#233;ges inform&#225;ci&#243;t.",
						"alertTextCheckboxMultiple":"* K&#233;rj&#252;k aktiv&#225;lja.",
						"alertTextCheckboxe":"* K&#233;rj&#252;k aktiv&#225;lja."},
					"length":{
						"regex":"none",
						"alertText":"*A sz&#225;mnak a k&#246;vetkezo &#233;rt&#233;kek k&#246;zt kell lennie ",
						"alertText2":" &#233;s ",
						"alertText3": " ."},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Please select ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"* A mez&#337; elt&#233;r az "},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* A megadott telefonsz&#225;m hib&#225;s."},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* A megadott email-c&#237;m hib&#225;s."},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                         "alertText":"* Invalid date, must be in YYYY-MM-DD format"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* A megadott sz&#225;m &#233;rv&#233;nytelen."},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Ebbe a mezobe csak sz&#246;veget írhat."},	
					"ajaxUser":{
						"file":"validateUser.php",
						"extraData":"name=eric",
						"alertTextOk":"* This user is available",	
						"alertTextLoad":"* Loading, please wait",
						"alertText":"* This user is already taken"},	
					"ajaxName":{
						"file":"validateUser.php",
						"alertText":"* This name is already taken",
						"alertTextOk":"* This name is available",	
						"alertTextLoad":"* Loading, please wait"},		
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* A mez&#337;ben csak bet&#369;k szerepelhetnek."},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"* You must have a firstname and a lastname"},
						
						// --- CUSTOM RULES -- Those are specific to the support website
							"pc":{
    				"regex":"/^[0-9]{7,8}$/", 
    				"alertText":"* Sorozatszám  (A) helytelen"},
					"sn":{
    				"regex":"/^[0-9]{7}$/",
    				"alertText":"*  Sorozatszám  (B) helytelen"},
					
					"validpc": {
						"regex": "/^[^0][0-9]+$/",
						"alertText":"* A termékkód helytelen"},
					"validateWarr": {
						"nname":"validateWarr",
						"alertText":"* The format is incorrect"}	
			}
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});