Date.prototype.format =	function(sFormat){return this.getDate().zeroFill()+"/"+(this.getMonth()+1).zeroFill()+"/"+this.getFullYear();}
Number.prototype.zeroFill =	function(n){
								n = n || 2;
								var retVal = this.toString();
								for(var i = 0, l = (n-retVal.length);i < l;i++)
									retVal = "0" + retVal;
								return retVal;
							}
String.prototype.isEmpty = function(){return this.replace(/\s/g,"").length == 0;}
String.prototype.isMail = function(){return this.search(/^([\w\.\-])+@(([\w\-]{2,})+\.)+([a-z0-9]{2,})+$/i)!=-1}
String.prototype.isDate =	function(){
								var a = this.split("/");
								var d = new Date(a[2],a[1]-1,a[0]);
								return this == d.format();
							}
