var $=function(id){
		return document.getElementById(id);
}
String.prototype.Trim = function()
{
	return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.LTrim = function()
{
	return this.replace(/(^\s*)/g, "");
}
String.prototype.Rtrim = function()
{
	return this.replace(/(\s*$)/g, "");
} 
String.prototype.startWith=function(str)
{
	if(str==null||str==""||this.length==0||str.length>this.length)
  		return false;
	if(this.substring(0,str.length)==str)
  		return true;
	else
  		return false;
	return true;
}

