(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": "* Ovo polje je obavezno",
                    "alertTextCheckboxMultiple": "* Please select an option",
                    "alertTextCheckboxe": "* Morate prihvatiti uslove kupovine"
                },
				"imeiprezime": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([a-zA-Z]{2,20}\ ?){2,10}$/,
                    "alertText": "Neispravan unos imena i prezimena."
                },
				"firma": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([a-zA-Z1-9\.]{2,20}\ ?){2,10}$/,
                    "alertText": "Neispravan unos imena firme."
                },
				"firmaENG": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([a-zA-Z1-9]{2,20}\ ?){2,10}$/,
                    "alertText": "Invalid input of company name."
                },
				 "adresa": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([A-Za-z0-9\\\/\,\.]{1,15}\ ?){2,8}$/,
                    "alertText": "Neispravan unos adrese"
                },
				 "mesto": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([A-Za-z0-9\\\/\,\.]{1,15}\ ?){2,8}$/,
                    "alertText": "Neispravan unos mesta"
                },
				"postanskiBroj": {
                    // Simplified, was not working in the Iphone browser
                    "regex": /^[0-9]{3,20}$/,
                    "alertText": "Neispravan unos postanskog broja"
                },
				 "telefon": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([\-\+]?\ ?(([0-9]+)\ ?[\\\/]?)+)+$/,
                    "alertText": "Neispravan unos telefona"
                },
				"fax": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([\-\+]?\ ?(([0-9]+)\ ?[\\\/]?)+)+$/,
                    "alertText": "Neispravan unos fax-a"
                },
                "email": {
                    // Simplified, was not working in the Iphone browser
                    "regex": /^([A-Za-z0-9_\-\.\'])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,6})$/,
                    "alertText": "Neispravan unos Email adrese"
                },
				"maticniBroj": {
                    // Simplified, was not working in the Iphone browser
                    "regex": /^[0-9]{9,15}$/,
                    "alertText": "Neispravan unos maticnog broja"
                },
				"pib": {
                    // Simplified, was not working in the Iphone browser
                    "regex": /^[0-9]{7,15}$/,
                    "alertText": "Neispravan unos PIB broja"
                },
				"punoPoslovnoIme": {
                    // Simplified, was not working in the Iphone browser
                    "regex": /^([a-zA-Z0-9]{2,30}\ ?){1,10}$/,
                    "alertText": "Neispravan unos poslovnog imena"
                },
				"imeiprezimeENG": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([a-zA-Z]{2,20}\ ?){2,10}$/,
                    "alertText": "Invalid input of first and last name."
                },
				"emailENG": {
                    // Simplified, was not working in the Iphone browser
                    "regex": /^([A-Za-z0-9_\-\.\'])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,6})$/,
                    "alertText": "Invalid input of Email adress"
                },
				"telefonENG": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([\-\+]?\ ?(([0-9]+)\ ?[\\\/]?)+)+$/,
                    "alertText": "Invalid input of phone number"
                }
				
            };
            
        }
    };
    $.validationEngineLanguage.newLang();
})(jQuery);


    

