var __aspxBESuffix="_B";var __aspxTEInputSuffix="_I";ASPxClientTextEdit=_aspxCreateClass(ASPxClientEdit,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.KeyDown=new ASPxClientEvent();this.KeyPress=new ASPxClientEvent();this.KeyUp=new ASPxClientEvent();this.TextChanged=new ASPxClientEvent();},FindInputElement:function(){return _aspxGetElementById(this.name+__aspxTEInputSuffix);},GetValue:function(){var input=this.GetInputElement();if(input.value==null||(input.value==""&&this.convertEmptyStringToNull))return null;else return input.value;},SetValue:function(value){if(value==null)value="";this.GetInputElement().value=value;},AdjustInputElementWidth:function(){var element=this.GetInputElement();if(_aspxIsExists(element)){var clientWidth=element.offsetParent.clientWidth;for(var i=element.offsetParent.clientWidth;i>0;i--){element.style.width=i+"px";if(element.offsetParent.clientWidth==clientWidth)break;}}},ResetInputElementWidth:function(){var element=this.GetInputElement();if(_aspxIsExists(element))element.style.width="0px";},UnstretchInputElement:function(){var inputElement=this.GetInputElement();var mainElement=this.GetMainElement();if(_aspxIsExistsElement(mainElement)&&_aspxIsExistsElement(inputElement)&&(mainElement.currentStyle.width==""||mainElement.currentStyle.width=="auto")&&inputElement.style.width=="100%"){inputElement.style.width="";}},RaiseValueChangedEvent:function(){var processOnServer=ASPxClientEdit.prototype.RaiseValueChangedEvent.call(this);if(_aspxIsExists(this.RaiseTextChanged))processOnServer=this.RaiseTextChanged()||processOnServer;return processOnServer;},OnKeyDown:function(evt){if(_aspxIsExists(this.RaiseKeyDown))this.RaiseKeyDown(evt);},OnKeyPress:function(evt){if(_aspxIsExists(this.RaiseKeyPress))this.RaiseKeyPress(evt);},OnKeyUp:function(evt){if(_aspxIsExists(this.RaiseKeyUp))this.RaiseKeyUp(evt);}});ASPxClientTextBoxBase=_aspxCreateClass(ASPxClientTextEdit,{});ASPxClientTextBox=_aspxCreateClass(ASPxClientTextBoxBase,{});ASPxClientMemo=_aspxCreateClass(ASPxClientTextEdit,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.minStretchedHeight=28;},ApplyVerticalStretch:function(){var inputElement=this.GetInputElement();var mainElement=this.GetMainElement();if(_aspxIsExistsElement(mainElement)&&_aspxIsExistsElement(inputElement)){mainElement.style.height="0px";inputElement.style.height="0px";var clientHeight=mainElement.offsetParent.clientHeight;for(var i=mainElement.offsetParent.clientHeight;i>0;i--){inputElement.style.height=i+"px";if(mainElement.offsetParent.clientHeight==clientHeight){if(!__aspxOpera&&inputElement.offsetHeight<this.minStretchedHeight)inputElement.style.height=this.minStretchedHeight+"px";mainElement.style.height=mainElement.offsetHeight+"px";break;}}}}});ASPxClientButtonEditBase=_aspxCreateClass(ASPxClientTextBoxBase,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.ButtonClick=new ASPxClientEvent();},GetButton:function(number){return _aspxGetElementById(this.name+__aspxBESuffix+number);},OnButtonClick:function(number){var processOnServer=this.autoPostBack;if(_aspxIsExists(this.RaiseButtonClick))processOnServer=this.RaiseButtonClick(number);if(_aspxIsExists(this.dropDownButtonIndex)&&this.dropDownButtonIndex==number)return;if(processOnServer)this.SendPostBack('BC:'+number);}});ASPxClientButtonEdit=_aspxCreateClass(ASPxClientButtonEditBase,{});function aspxEKeyDown(name,evt){var edit=aspxGetControlCollection().Get(name);if(edit!=null)edit.OnKeyDown(evt);}
function aspxEKeyPress(name,evt){var edit=aspxGetControlCollection().Get(name);if(edit!=null)edit.OnKeyPress(evt);}
function aspxEKeyUp(name,evt){var edit=aspxGetControlCollection().Get(name);if(edit!=null)edit.OnKeyUp(evt);}
function aspxBEClick(name,number){var edit=aspxGetControlCollection().Get(name);if(edit!=null)edit.OnButtonClick(number);}