(function($) {
  $.fn.validationEngineLanguage = function() {};
  $.validationEngineLanguage = {
    newLang: function() {
      $.validationEngineLanguage.allRules = {
        "required": {
          "regex":"none",
          "alertText":"&bull; This field is required",
          "alertTextCheckboxMultiple":"&bull; Please select an option",
          "alertTextCheckboxe":"&bull; This checkbox is required"
        },

        "length": {
          "regex":"none",
          "alertText":"&bull; Between ",
          "alertText2":" &amp; ",
          "alertText3": " chars"
        },

        "maxCheckbox": {
          "regex":"none",
          "alertText":"&bull; Checks allowed Exceeded"
        },

        "minCheckbox": {
          "regex":"none",
          "alertText":"&bull; Please select ",
          "alertText2":" options"
        },

        "confirm": {
          "regex":"none",
          "alertText":"&bull; Your field is not matching"
        },

        "telephone": {
          "regex":/^[0-9\-\(\)\ ]+$/,
          "alertText":"&bull; Invalid phone number"
        },

        "email": {
          "regex":/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/,
          "alertText":"&bull; Invalid email address"
        },

        "date": {
          "regex":/^(0[1-9]|1[012])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/,
          "alertText":"&bull; Invalid date, must be in MM/DD/YYYY format"
        },

        "onlyNumber": {
          "regex":/^[0-9\ ]+$/,
          "alertText":"&bull; Numbers only"
        },

        "noSpecialCaracters": {
          "regex":/^[0-9a-zA-Z]+$/,
          "alertText":"&bull; No special caracters allowed"
        },

        "noSpecialCaractersSpacesOK": {
          "regex":/^[0-9a-zA-Z ]+$/,
          "alertText":"&bull; No special caracters allowed"
        },

        "ajaxUser": {
          "file":"validateUser.php",
          "alertTextOk":"&bull; This user is available",
          "alertTextLoad":"&bull; Loading, please wait",
          "alertText":"&bull; This user is already taken"
        },

        "onlyLetter": {
          "regex":/^[a-zA-Z\ \']+$/,
          "alertText":"&bull; Letters only"
        }
      }
    }
  }
})(jQuery);

$(document).ready(function() {
  $.validationEngineLanguage.newLang()
});
