String.prototype.Trim = function(){return this.replace(/(^\s*)|(\s*$)/g, "");}
String.prototype.IsNumeric = function(){var s = this.Trim();return (s.search(/^[+-]?[0-9.]*$/) >= 0);}
String.prototype.IsAlpha = function(){return (this.replace(/\w\-*/g, "").length == 0);}
function IsEmail(strEmail){if(strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$$/) != -1){return (true);	}else{return (false);	}}