
(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": "* This field is required",
                    "alertTextCheckboxMultiple": "* Please select an option",
                    "alertTextCheckboxe": "* This checkbox is required"
                },
				 "imeiprezime": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([a-zA-Z\ ]+\ [a-zA-Z\ ]*)$/,
                    "alertText": "Neispravan unos imena i prezimena"
                },
				 "adresa": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([a-zA-Z\ 1-9]+\ [a-zA-Z\ 1-9]*)$/,
                    "alertText": "Neispravan unos adrese"
                },
				 "telefon": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([\-\+]?[\\\/]?(([0-9]+)(\ )?)+)$/,
                    "alertText": "Neispravan unos telefona"
                },
                "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 e-mail adrese"
                },
				 "imeiprezime1": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^[First\ and\ last\ name]$/,
                    "alertText": "Invalid input of first and last name"
                },
				 "adresa1": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^[Delivery\ adress]$/,
                    "alertText": "Invalid input of adress"
                },
				 "telefon1": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^([\-\+]?(([0-9]+)(\ )?)+)$/,
                    "alertText": "Invalid input of phone"
                },
                "email1": {
                    // Simplified, was not working in the Iphone browser
                    "regex": /^([A-Za-z0-9_\-\.\'])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,6})$/,
                    "alertText": "Invalid e-mail adress"
                },
				
            };
            
        }
    };
    $.validationEngineLanguage.newLang();
})(jQuery);


    

