

(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":"&bull; Este campo es obligatorio",
						"alertTextCheckboxMultiple":"&bull; Selecciona una de las dos opciones",
						"alertTextCheckboxe":"&bull; Debe estar marcado"},
					"length":{
						"regex":"none",
						"alertText":"*Between ",
						"alertText2":" and ",
						"alertText3": " characters allowed"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"&bull; Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"&bull; Please select ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"&bull; No coincide con la clave anterior"},		
					"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; Formato de e-mail incorreto"},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                         "alertText":"&bull; Invalid date, must be in YYYY-MM-DD format"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"&bull; S�lo n�meros"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"&bull; Sin caracteres especiales"},	
					"ajaxUser":{
						"file":"/php/validateUser.php",
						"extraData":"name=eric",
						"alertTextOk":"&bull; E-mail disponible",	
						"alertTextLoad":"&bull; Comprobando...",
						"alertText":"&bull; Ya hay un usuario con este e-mail"},
					"ajaxEmailReset":{
						"file":"/php/validateUser_reset.php",
						"extraData":"name=eric",
						"alertTextOk":"&bull; Este e-mail se encuentra en nuestra base de datos",
						"alertTextLoad":"&bull; Comprobando...",
                                                "alertText":"&bull; No hay ningún usuario con ese email"},
                                        "ajaxSubdominio":{
						"file":"/php/validateSubdominio.php",
						"extraData":"name=eric",
						"alertTextOk":"&bull; Subdominio disponible",
						"alertTextLoad":"&bull; Comprobando...",
						"alertText":"&bull; Ya hay un subdominio con ese nombre"},
					"ajaxName":{
						"file":"/php/validateUser.php",
						"alertText":"&bull; This name is already taken",
						"alertTextOk":"&bull; This name is available",	
						"alertTextLoad":"&bull; Loading, please wait"},		
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"&bull; S�lo letras"},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"&bull; You must have a firstname and a lastname"}	
					}	
					
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});
