

(function($j) {
    $j.fn.validationEngineLanguage = function() { };
    $j.validationEngineLanguage = {
        newLang: function() {
            $j.validationEngineLanguage.allRules = {
                "required": {    			// Add your regex rules here, you can take telephone as an example
                    "regex": "none",
                    "alertText": "Campo obbligatorio",
                    "alertTextCheckboxMultiple": "* Please select an option",
                    "alertTextCheckboxe": "Leggi e conferma."
                },
                "length": {
                    "regex": "none",
                    "alertText": "Da ",
                    "alertText2": " a ",
                    "alertText3": " caratteri"
                },
                "lengthmin": {
                    "regex": "none",
                    "alertText": "La password deve avere una lunghezza compresa tra gli ",
                    "alertText2": " e i ",
                    "alertText3": " caratteri"
                },
                "maxCheckbox": {
                    "regex": "none",
                    "alertText": "* Checks allowed Exceeded"
                },
                "minCheckbox": {
                    "regex": "none",
                    "alertText": "* Please select ",
                    "alertText2": " options"
                },
                "confirm": {
                    "regex": "none",
                    "alertText": "Le password sono differenti."
                    
                },
                "confirmPassword": {
                    "alertText": "La password non può contenere il nome, il cognome, l'anno di nascita e la UserName. Deve essere composta da almeno un numero ed una lettera.\n La Password deve avere una lunghezza compresa tra gli 8 e i 15 caratteri."
                },
                "confirmBet": {
                    "regex": "none",
                    "alertText": "Il limite massimo di versamento mensile è di 5000 €."
                },
                "telephone": {
                    "regex": "/^[0-9\-\(\)\ ]+$/",
                    "alertText": "Formato non valido"
                },
                "email": {
                    "regex": "/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
                    "alertText": "Indirizzo Email non valido"
                },
                "date": {
                    "regex": "/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                    "alertText": "Data non valida. DD/MM/YYYY "
                },
                "onlyNumber": {
                    "regex": "/^[0-9\,\.\ ]+$/",
                    "alertText": "Solo Numeri"
                },
                "onlyBet": {
                    "regex": "/^[0-9\,\.\]+$/",
                    "alertText": "Importo non valido"
                },
                "noSpecialCaracters": {
                    "regex": "/^[0-9òàèùéa-zA-Z]+$/",
                    "alertText": "No caratteri speciali."
                },
                "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-zàèùòéA-Z\ \']+$/",
                    "alertText": "Solo Lettere"
                },
                "onlyName": {
                    "regex": "/^[a-zàèùòéA-Z\-\ \']+$/",
                    "alertText": "Solo Lettere"
                },
                "validate2fields": {
                    "nname": "validate2fields",
                    "alertText": "* You must have a firstname and a lastname"
                },
                "checkLimiteGiornPoker": {
                    "nname": "checkLimiteGiornPoker",
                    "regex": "/^[0-9\,\.\]+$/",
                    "alertText": "Campo obbligatorio<br />Importo non valido"
                },

                "checkLimiteMesePoker": {
                    "nname": "checkLimiteMesePoker",
                    "regex": "/^[0-9\,\.\]+$/",
                    "alertText": "Campo obbligatorio<br />Importo non valido"
                }

            }

        }
    }
})(jQuery);

$(document).ready(function() {
    $j.validationEngineLanguage.newLang()
});
