
/*


Copyright JMWorld 2007.

Todos los derechos reservados.


*/


ao=false;ap=String;at=true;ap.prototype.LTrim=function(){var re=/\s*((\S+\s*)*)/;return this.replace(re,"$1");};ap.prototype.RTrim=function(){var re=/((\s*\S+)*)\s*/;return this.replace(re,"$1");};ap.prototype.trim=function(){return this.LTrim().RTrim();};ap.prototype.isNumeric=function(){if(isNaN(Number(this))){return ao}return at};ap.prototype.isInt=function(){if(this.isNumeric()&&this.indexOf('.')==-1){return at}return ao};ap.prototype.isDate=function(){var re=/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/;return re.test(this);};ap.prototype.isEmail=function(){var re=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;return re.test(this);};ap.prototype.hasChar=function(c){return this.indexOf(c)!=-1}