

(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":"* Prieš spusteledami siusti pateikite visa reikalinga informacija",
						"alertTextCheckboxMultiple":"* Pasirinkite varianta",
						"alertTextCheckboxe":"* Šis laukelis privalomas"},
					"length":{
						"regex":"none",
						"alertText":"* Reikšme turi buti nuo",
						"alertText2":" iki ",
						"alertText3": " ."},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Please select ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Jusu laukeliai nesutampa"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* Telefono numeris neteisingas"},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* El. pašto adresas neteisingas"},	
					"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":"* Tik skaiciai"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Šiame langelyje gali buti tik tekstas ir skaiciai"},	
					"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":"* Šiame langelyje gali buti tik tekstas"},
					"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":"* Serijos numeris  (A) neteisingas"},
					"sn":{
    				"regex":"/^[0-9]{7}$/",
    				"alertText":"*  Serijos numeris  (B) neteisingas"},
					
					"validpc": {
						"regex": "/^[^0][0-9]+$/",
						"alertText":"* Produkto kodas neteisingas"},
						
					"validateWarr": {
						"nname":"validateWarr",
						"alertText":"* The format is incorrect"}	
			}
		}
	}
})(jQuery);

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