// JavaScript Document 
// Validate with jquery version 1.3
// more validations added and uses name instead if div

	var filters = {
			required: function(el) {return ($(el).val() != '' && $(el).val() != -1);},
			email: function(el) {return /^[A-Za-z\.][A-Za-z0-9_\.]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/.test($(el).val());},
			phone: function(el){return /^[0-9 -]*$/.test($(el).val());},
			numeric: function(el){return /^[0-9]*\.?[0-9]*$/.test($(el).val());},
			currency: function(el){return /^[0-9]*\.?[0-9]{0,2}$/.test($(el).val());},
			alpha: function(el){return /^[a-zA-Z áéíóúAÉÍÓÚÑñ\.,;:\|)"(º_@><#&'\?¿¡!/\\%\$=]*$/.test($(el).val());},
			alphanum: function(el){return /^[a-zA-Z0-9 áéíóúAÉÍÓÚÑñ\.,;:\|)"(º_@><#&'\?¿¡!/\\%\$=]*$/.test($(el).val());},
			pin: function(el){return /^[a-zA-Z0-9]*$/.test($(el).val());}
		};	


$.extend({
		/* PARAMOS LA EJECUCIÓN*/
		stop: function(e){
        if (e.preventDefault) e.preventDefault();
        if (e.stopPropagation) e.stopPropagation();
    }, 
    /* PERSONALIZAMOS LA SALIDA POR PANTALLA */
    alert: function(str) {
    	alert(str);	
    }
});


	
