String.prototype.trim = function()
{
	return this.replace(/^\s+|\s+$/g, '') ;
}

String.prototype.is_valid_email = function()
{
	var re = /^([a-zA-Z0-9&\'\.\-_\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/ ;
	return re.test(this) ;
}
