String.prototype.trim=function(){return this.replace(/(^\s+|\s+$)/g,'');};String.prototype.growLeft=function(num,charStr){var val=this;var m=num-val.length;for(var i=0;i this.Right)shift=area.Right-this.Right;if(area.Left-shift this.Bottom)shift=area.Bottom-this.Bottom;if(area.Top-shiftparseInt(this._style.width,10))this._style.width=w;this._style.display='none';Events.Attach(window,'onunload',this,'Dispose');Events.Attach(this._div,'onclick',this,'__handlerClick');this.__handlerClick=function(o,ev){ev.cancelBubble=true;} this.Show=function(obj,ev){if(this._style.display=='none'){var pt=Browser.GetEventPoint(ev);with(this._style){display='';visibility='hidden';top=pt.Y+this._shift.Y;left=pt.X+this._shift.X;} var area=Browser.GetElementArea(this._div,true);Browser.GetClientArea().TypeInArea(area);pt=area.GetTopLeftPoint();with(this._style){visibility='visible';top=pt.Y;left=pt.X;} Browser.GetShadow().Show(this._div);this._hideHandlerID=Events.Attach(document,'onclick',this,'_hide')+'|'+Events.Attach(window,'onscroll',this,'_hide')+'|'+Events.Attach(window,'onresize',this,'_hide');this._firstHide=true;if(IsValid(cleckEvents=obj.getAttribute('onClientClick')))eval(cleckEvents);Browser.ShowUnderControls(this._div,false,true);} };this._hide=function(){if(this._style.display=='' && !this._firstHide){this._style.display='none';Browser.GetShadow().Hide(this._div);var handlerArr=this._hideHandlerID.split('|');var l=handlerArr.length;for(var i=0;i