Validation.addAllThese([
	['requerido', 'Este es un campo requerido.', function(v) {
				return !Validation.get('IsEmpty').test(v);
			}],
	['valida-numero', 'Por favor introduzca un n&uacute;mero v&aacute;lido en este campo.', function(v) {
				return Validation.get('IsEmpty').test(v) || (!isNaN(v) && !/^\s+$/.test(v));
			}],
	['valida-digitos', 'Por favor emplee s&oacute;lo n&uacute;meros en este campo, evitando asimismo espacios y otros caracteres como puntos o comas.', function(v) {
				return Validation.get('IsEmpty').test(v) ||  !/[^\d]/.test(v);
			}],
	['valida-letras', 'Por favor emplee s&oacute;lo letras [A-z] en este campo.', function (v) {
				return Validation.get('IsEmpty').test(v) ||  /^[a-zA-Z]+$/.test(v)
			}],
	['valida-alfanumerico', 'Por favor emplee s&oacute;lo letras [A-z] o n&uacute;meros (0-9) en este campo. No se permiten espacios u otros caracteres.', function(v) {
				return Validation.get('IsEmpty').test(v) ||  !/\W/.test(v)
			}],
	['valida-fecha', 'Por favor introduzca una fecha v&aacute;lida.', function(v) {
				var test = new Date(v);
				return Validation.get('IsEmpty').test(v) || !isNaN(test);
			}],
	['valida-email', 'Por favor introduzca una direcci&oacute;n de correo electr&oacute;nico válida. Por ejemplo pedro@dominio.com.', function (v) {
				return Validation.get('IsEmpty').test(v) || /\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/.test(v)
			}],
	['valida-url', 'Por favor introduzca una URL válida.', function (v) {
				return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
			}],
	['valida-fecha-es', 'Por favor emplee este formato de fecha: dd/mm/aaaa. Por ejemplo, 17/03/2006 por el 17 de Marzo de 2006.', function(v) {
				if(Validation.get('IsEmpty').test(v)) return true;
				var regex = /^(\d{2})\/(\d{2})\/(\d{4})$/;
				if(!regex.test(v)) return false;
				var d = new Date(v.replace(regex, '$2/$1/$3'));
				return ( parseInt(RegExp.$2, 10) == (1+d.getMonth()) ) && 
							(parseInt(RegExp.$1, 10) == d.getDate()) && 
							(parseInt(RegExp.$3, 10) == d.getFullYear() );
			}],
	['valida-cambio-euro', 'Por favor introduzca una cantidad válida de &euro;. Por ejemplo: 100,12', function(v) {
				// [$]1[##][,###]+[.##]
				// [$]1###+[.##]
				// [$]0.##
				// [$].##
      return Validation.get('IsEmpty').test(v) ||  /^\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\,[0-9]{0,2})?|0(\,[0-9]{0,2})?|(\,[0-9]{1,2})?)$/.test(v)
			}],
	['valida-seleccion', 'Por favor realice una selecci&oacute;n.', function(v,elm){
				return elm.options ? elm.selectedIndex > 0 : !Validation.get('IsEmpty').test(v);
			}],
	['valida-uno-requerido', 'Por favor seleccione una de las anteriores opciones.', function (v,elm) {
				var p = elm.parentNode;
				var options = p.getElementsByTagName('INPUT');
				return $A(options).any(function(elm) {
					return $F(elm);
				});
			}]
]);

