(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"
                },
                "length":{
                    "regex":"none",
                    "alertText":"*Between ",
                    "alertText2":" and ",
                    "alertText3": " characters allowed"
                },
                "maxCheckbox":{
                    "regex":"none",
                    "alertText":"* Checks allowed Exceeded"
                },
                "minCheckbox":{
                    "regex":"none",
                    "alertText":"* Please select ",
                    "alertText2":" options"
                },
                "confirm":{
                    "regex":"none",
                    "alertText":"* Your field is not matching"
                },
                "ccnumber":{
                    "regex":"/^[0-9]+$/",
                    "alertText":"* Invalid Credit Card Number, Please do not use spaces"
                },
                "telephone":{
                    "regex":"/^[0-9\-\(\)\ ]+$/",
                    "alertText":"* Invalid phone number"
                },
                "email":{
                    "regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+\.[a-zA-Z0-9]{2,4}$/",
                    "alertText":"* Invalid email address"
                },
                "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":"* Numbers only"
                },
                "noSpecialCharacters":{
                    "regex":"/^[0-9a-zA-Z]+$/",
                    "alertText":"* No special caracters allowed"
                },
                "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":"* Letters only"
                },
                "validate2fields":{
                    "nname":"validate2fields",
                    "alertText":"* You must have a firstname and a lastname"
                },
                "postcode":{
                    "regex":"/^[0-9]{4}$/",
                    "alertText":"Please enter a valid Postcode"
                },
                "firstname":{
                    "regex":"none",
                    "alertText":"Please enter your first name."
                },
                "lastname":{
                    "regex":"none",
                    "alertText":"Please enter your last name."
                },
                "street":{
                    "regex":"/^[0-9a-zA-Z\ \'\,\/-]+$/",
                    "alertText":"Please enter a valid Street Address"
                },
                "suburb":{
                    "regex":"/^[0-9a-zA-Z\ \'\/-]+$/",
                    "alertText":"Please enter a valid Suburb"
                }
            }

        }
    }
})(jQuery);

/*

	~~~~~ NOTE ~~~~~
	Don't forget you need to run the following in the .ready() function
    $.validationEngineLanguage.newLang();
    $("#<the id of the for which needs the validation>").validationEngine();

*/

