var $=function(obj)
{
  return document.getElementById(obj);
};
var $F=function(obj)
{
  return document.getElementById(obj).value;
}

var $E=function(str)
{
  return encodeURIComponent(str);
}
var noShowDiv=function(oDivId)
{
  $(oDivId).style.display="none";
}
var yesShowDiv=function(oDivId,msg)
{
  $(oDivId).style.display="block";
  $(oDivId).innerHTML=msg;
}
var debug=function(msg,isvalid)
{
 if(isvalid)
 {
  alert(msg);
 }
}
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, "");    
} 
