

(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":"* Rellene toda la informaci&#243;n obligatoria antes de hacer clic en enviar.",
						"alertTextCheckboxMultiple":"* Por favor, compruebe el campo.",
						"alertTextCheckboxe":"* Por favor, compruebe el campo."},
					"length":{
						"regex":"none",
						"alertText":"*El valor deber&#225; estar entre ",
						"alertText2":" y ",
						"alertText3": "."},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Please select ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Este campo es diferente de"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* El n&uacute;mero de tel&eacute;fono que introdujo no es v&aacute;lido."},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* La direcci&oacute;n de correo electr&oacute;nico que introdujo no es v&aacute;lida. <br /><span>Ex. sunombre@dominio.com</span>"},	
					"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":"* El n&#250;mero introducido no es v&#225;lido."},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Solo se aceptan n&#250;meros y texto en esta casilla."},	
					"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":"* Solo se acepta texto en esta casilla."},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"* You must have a firstname and a lastname"},
						
						// --- CUSTOM RULES -- Those are specific to the support website
						"pc":{
    				"regex":"/^[0-9]{7,8}$/", 
    				"alertText":"* Serial Number (A) inv&aacute;lido"},
					"sn":{
    				"regex":"/^[0-9]{7}$/",
    				"alertText":"* Serial Number (B) inv&aacute;lido"},
					
					"validpc": {
						"regex": "/^[^0][0-9]+$/",
						"alertText":"* El código de producto es incorrecto"},
					"validateWarr": {
						"nname":"validateWarr",
						"alertText":"* The format is incorrect"}	
			}
		}
	}
})(jQuery);

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