Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadInputControl=function(_1){
Telerik.Web.UI.RadInputControl.initializeBase(this,[_1]);
this._autoPostBack=false;
this._enabled=true;
this._showButton=false;
this._invalidStyleDuration=100;
this._emptyMessage="";
this._selectionOnFocus=Telerik.Web.UI.SelectionOnFocus.None;
this._postBackEventReferenceScript="";
this._styles=null;
this._isEnterPressed=false;
this._isDroped=false;
this._enableOldBoxModel=false;
this._shouldResetWidthInPixels=true;
this._reducedPixelWidthFlag=false;
this._originalTextBoxWidth=null;
this._originalCellPadding=null;
this._originalDisplay=null;
this._onTextBoxKeyUpDelegate=null;
this._onTextBoxKeyPressDelegate=null;
this._onTextBoxBlurDelegate=null;
this._onTextBoxFocusDelegate=null;
this._onTextBoxMouseOutDelegate=null;
this._onTextBoxMouseOverDelegate=null;
this._onTextBoxKeyDownDelegate=null;
this._onTextBoxMouseWheelDelegate=null;
this._onTextBoxDragDropDelegate=null;
this._onFormResetDelegate=null;
if($telerik.isSafari){
this._onTextBoxMouseUpDelegate=null;
}
this._focused=false;
this._allowApplySelection=true;
};
Telerik.Web.UI.RadInputControl.prototype={initialize:function(){
Telerik.Web.UI.RadInputControl.callBaseMethod(this,"initialize");
this._clientID=this.get_id();
this._wrapperElementID=this.get_id()+"_wrapper";
this._textBoxElement=$get(this.get_id()+"_text");
if($telerik.isIE7&&$get(this._wrapperElementID).style.display=="inline-block"){
$get(this._wrapperElementID).style.display="inline";
$get(this._wrapperElementID).style.zoom=1;
}
this._originalTextBoxCssText=this._textBoxElement.style.cssText;
if(this._originalTextBoxCssText.lastIndexOf(";")!=this._originalTextBoxCssText.length-1){
this._originalTextBoxCssText+=";";
}
this.repaint();
this._originalMaxLength=this._textBoxElement.maxLength;
if(this._originalMaxLength==-1){
this._originalMaxLength=2147483647;
}
this._initializeHiddenElement(this.get_id());
this._initializeValidationField(this.get_id());
this._selectionEnd=0;
this._selectionStart=0;
this._isInFocus=true;
this._hovered=false;
this._invalid=false;
this._attachEventHandlers();
this.updateCssClass();
this._initializeButtons();
this._initialValue=this.get_value();
if($telerik.isFirefox2&&this.isEmpty()&&this.get_emptyMessage().length>this._originalMaxLength){
this.updateDisplayValue();
}
this.raise_load(Sys.EventArgs.Empty);
if(this._focused){
this._updateStateOnFocus();
}
},dispose:function(){
Telerik.Web.UI.RadInputControl.callBaseMethod(this,"dispose");
if(this.Button){
if(this._onButtonClickDelegate){
$removeHandler(this.Button,"click",this._onButtonClickDelegate);
this._onButtonClickDelegate=null;
}
}
if($telerik.isIE){
if(this._onTextBoxPasteDelegate){
$removeHandler(this._textBoxElement,"paste",this._onTextBoxPasteDelegate);
this._onTextBoxPasteDelegate=null;
}
}else{
if(this._onTextBoxInputDelegate){
$removeHandler(this._textBoxElement,"input",this._onTextBoxInputDelegate);
this._onTextBoxInputDelegate=null;
}
}
if(this._onTextBoxKeyDownDelegate){
$removeHandler(this._textBoxElement,"keydown",this._onTextBoxKeyDownDelegate);
this._onTextBoxKeyDownDelegate=null;
}
if(this._onTextBoxKeyPressDelegate){
$removeHandler(this._textBoxElement,"keypress",this._onTextBoxKeyPressDelegate);
this._onTextBoxKeyPressDelegate=null;
}
if(this._onTextBoxKeyUpDelegate){
$removeHandler(this._textBoxElement,"keyup",this._onTextBoxKeyUpDelegate);
this._onTextBoxKeyUpDelegate=null;
}
if(this._onTextBoxBlurDelegate){
$removeHandler(this._textBoxElement,"blur",this._onTextBoxBlurDelegate);
this._onTextBoxBlurDelegate=null;
}
if(this._onTextBoxFocusDelegate){
$removeHandler(this._textBoxElement,"focus",this._onTextBoxFocusDelegate);
this._onTextBoxFocusDelegate=null;
}
if(this._onTextBoxMouseOutDelegate){
$removeHandler(this._textBoxElement,"mouseout",this._onTextBoxMouseOutDelegate);
this._onTextBoxMouseOutDelegate=null;
}
if(this._onTextBoxMouseOverDelegate){
$removeHandler(this._textBoxElement,"mouseover",this._onTextBoxMouseOverDelegate);
this._onTextBoxMouseOverDelegate=null;
}
if($telerik.isSafari&&this._onTextBoxMouseUpDelegate){
$removeHandler(this._textBoxElement,"mouseup",this._onTextBoxMouseUpDelegate);
this._onTextBoxMouseUpDelegate=null;
}
if(this._onFormResetDelegate){
if(this._textBoxElement.form){
$removeHandler(this._textBoxElement.form,"reset",this._onFormResetDelegate);
}
this._onFormResetDelegate=null;
}
if(Sys.Browser.agent!=Sys.Browser.InternetExplorer){
if(this._onTextBoxMouseWheelDelegate){
if($telerik.isSafari3||$telerik.isOpera){
$removeHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate);
}else{
$removeHandler(this._textBoxElement,"DOMMouseScroll",this._onTextBoxMouseWheelDelegate);
}
this._onTextBoxMouseWheelDelegate=null;
}
if(this._onTextBoxDragDropDelegate){
$removeHandler(this._textBoxElement,"dragdrop",this._onTextBoxDragDropDelegate);
this._onTextBoxDragDropDelegate=null;
}
}else{
if(this._onTextBoxMouseWheelDelegate){
$removeHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate);
this._onTextBoxMouseWheelDelegate=null;
}
if(this._onTextBoxDragDropDelegate){
$removeHandler(this._textBoxElement,"drop",this._onTextBoxDragDropDelegate);
this._onTextBoxDragDropDelegate=null;
}
}
if(this._textBoxElement){
this._textBoxElement._events=null;
}
},clear:function(){
this.set_value("");
},disable:function(){
this.set_enabled(false);
this._textBoxElement.disabled="disabled";
this.updateCssClass();
this.updateClientState();
this.raise_disable(Sys.EventArgs.Empty);
},enable:function(){
this.set_enabled(true);
this._textBoxElement.disabled="";
this.updateCssClass();
this.updateClientState();
this.raise_enable(Sys.EventArgs.Empty);
},focus:function(){
this._textBoxElement.focus();
},blur:function(){
this._textBoxElement.blur();
},isEmpty:function(){
return this._hiddenElement.value=="";
},isNegative:function(){
return false;
},isReadOnly:function(){
return this._textBoxElement.readOnly||!this._enabled;
},isMultiLine:function(){
return this._textBoxElement.tagName.toUpperCase()=="TEXTAREA";
},updateDisplayValue:function(){
if(this._focused){
this.set_textBoxValue(this.get_editValue());
}else{
if(this.isEmpty()&&this.get_emptyMessage()){
this._textBoxElement.maxLength=2147483647;
this._isEmptyMessage=true;
this.set_textBoxValue(this.get_emptyMessage());
this._textBoxElement.maxLength=this._originalMaxLength;
}else{
this._isEmptyMessage=false;
this.set_textBoxValue(this.get_displayValue());
}
}
},__isEmptyMessage:function(){
return this.isEmpty()&&this.get_emptyMessage();
},repaint:function(){
this._updatePercentageHeight();
if(this._shouldResetWidthInPixels){
this._resetWidthInPixels();
}
if(!this._reducedPixelWidthFlag&&this._enableOldBoxModel){
this._reducePixelWidthByPaddings();
}
},updateCssClass:function(){
if(this._enabled&&(!this.__isEmptyMessage())&&(!this.isNegative())){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EnabledStyle"][0]);
this._textBoxElement.className=this.get_styles()["EnabledStyle"][1];
}
if(this._enabled&&(!this.__isEmptyMessage())&&this.isNegative()){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["NegativeStyle"][0]);
this._textBoxElement.className=this.get_styles()["NegativeStyle"][1];
}
if(this._enabled&&this.__isEmptyMessage()){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]);
this._textBoxElement.className=this.get_styles()["EmptyMessageStyle"][1];
}
if(this._hovered){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["HoveredStyle"][0]);
this._textBoxElement.className=this.get_styles()["HoveredStyle"][1];
}
if(this._focused){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["FocusedStyle"][0]);
this._textBoxElement.className=this.get_styles()["FocusedStyle"][1];
}
if(this._invalid){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["InvalidStyle"][0]);
this._textBoxElement.className=this.get_styles()["InvalidStyle"][1];
}
if(this._textBoxElement.readOnly&&this.__isEmptyMessage()){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]);
this._textBoxElement.className=this.get_styles()["EmptyMessageStyle"][1];
}else{
if(this._textBoxElement.readOnly){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["ReadOnlyStyle"][0]);
this._textBoxElement.className=this.get_styles()["ReadOnlyStyle"][1];
}
}
if(!this._enabled){
this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["DisabledStyle"][0]);
this._textBoxElement.className=this.get_styles()["DisabledStyle"][1];
}
},updateCssText:function(_2){
var _3=_2.split(";");
var i;
var _5="";
for(i=0;i<_3.length;i++){
var _6=_3[i].split(":");
if(_6.length==2){
var _7=""+_6[0].toLowerCase();
if(_7!="width"&&_7!="height"){
_5+=_3[i]+";";
}
}
}
return _5;
},selectText:function(_8,_9){
this._selectionStart=_8;
this._selectionEnd=_9;
this._applySelection();
},selectAllText:function(){
if(this._textBoxElement.value.length>0){
this.selectText(0,this._textBoxElement.value.length);
return true;
}
return false;
},GetValue:function(){
return this.get_value();
},SetValue:function(_a){
this.set_value(_a);
},GetDisplayValue:function(){
return this.get_displayValue();
},GetEditValue:function(){
return this.get_editValue();
},SetCaretPosition:function(_b){
this.set_caretPosition(_b);
},GetWrapperElement:function(){
return this.get_wrapperElement();
},GetTextBoxValue:function(){
return this.get_textBoxValue();
},SetTextBoxValue:function(_c){
this.set_textBoxValue(_c);
},get_value:function(){
return this._hiddenElement.value;
},set_value:function(_d){
var _e=new Telerik.Web.UI.InputValueChangingEventArgs(_d,this._initialValue);
this.raise_valueChanging(_e);
if(_e.get_cancel()==true){
this._SetValue(this._initialValue);
return false;
}
if(_e.get_newValue()){
_d=_e.get_newValue();
}
var _f=this._setHiddenValue(_d);
if(_f==false){
_d="";
}
this._triggerDomEvent("change",this._getValidationField());
this.raise_valueChanged(_d,this._initialValue);
if(typeof (_f)=="undefined"||_f==true){
this.set_textBoxValue(this.get_editValue());
this.updateDisplayValue();
this.updateCssClass();
}
},get_displayValue:function(){
return this._hiddenElement.value;
},get_editValue:function(){
return this._hiddenElement.value;
},set_caretPosition:function(_10){
this._selectionStart=_10;
this._selectionEnd=_10;
this._applySelection();
},get_caretPosition:function(){
this._calculateSelection();
if(this._selectionStart!=this._selectionEnd){
return new Array(this._selectionStart,this._selectionEnd);
}else{
return this._selectionStart;
}
},raisePostBackEvent:function(){
eval(this._postBackEventReferenceScript);
},get_wrapperElement:function(){
return $get(this._wrapperElementID);
},get_textBoxValue:function(){
return this._textBoxElement.value;
},set_textBoxValue:function(_11){
if(this._textBoxElement.value!=_11){
this._textBoxElement.value=_11;
}
},get_autoPostBack:function(){
return this._autoPostBack;
},set_autoPostBack:function(_12){
if(this._autoPostBack!==_12){
this._autoPostBack=_12;
this.raisePropertyChanged("autoPostBack");
}
},get_emptyMessage:function(){
return this._emptyMessage;
},set_emptyMessage:function(_13){
if(this._emptyMessage!==_13){
this._emptyMessage=_13;
this._isEmptyMessage=(_13!="");
this.updateClientState();
this.raisePropertyChanged("emptyMessage");
}
},get_selectionOnFocus:function(){
return this._selectionOnFocus;
},set_selectionOnFocus:function(_14){
if(this._selectionOnFocus!==_14){
this._selectionOnFocus=_14;
this.raisePropertyChanged("selectionOnFocus");
}
},get_showButton:function(){
return this._showButton;
},set_showButton:function(_15){
if(this._showButton!==_15){
this._showButton=_15;
this.raisePropertyChanged("showButton");
}
},get_invalidStyleDuration:function(){
return this._invalidStyleDuration;
},set_invalidStyleDuration:function(_16){
if(this._invalidStyleDuration!==_16){
this._invalidStyleDuration=_16;
this.raisePropertyChanged("invalidStyleDuration");
}
},get_enabled:function(){
return this._enabled;
},set_enabled:function(_17){
if(this._enabled!==_17){
this._enabled=_17;
this.raisePropertyChanged("enabled");
}
},get_styles:function(){
return this._styles;
},set_styles:function(_18){
if(this._styles!==_18){
this._styles=_18;
this.raisePropertyChanged("styles");
}
},saveClientState:function(_19){
var _1a=["enabled","emptyMessage"];
if(_19){
for(var i=0,j=_19.length;i<j;i++){
_1a[_1a.length]=_19[i];
}
}
var _1d={};
for(var i=0;i<_1a.length;i++){
_1d[_1a[i]]=this["get_"+_1a[i]]();
}
return Sys.Serialization.JavaScriptSerializer.serialize(_1d);
},get_visible:function(){
if(this.get_wrapperElement().style.display=="none"){
return false;
}else{
return true;
}
},set_visible:function(_1e){
if(_1e){
this.get_wrapperElement().style.display=this._originalDisplay;
this.repaint();
}else{
this._originalDisplay=this.get_wrapperElement().style.display;
this.get_wrapperElement().style.display="none";
}
},_reducePixelWidthByPaddings:function(){
if(this._textBoxElement.offsetWidth>0&&this._textBoxElement.parentNode.tagName.toLowerCase()=="span"&&this._textBoxElement.parentNode.parentNode.className!="rcInputCell"&&this._textBoxElement.style.width&&this._textBoxElement.style.width.indexOf("%")==-1&&(!this._originalTextBoxWidth||this._originalTextBoxWidth.indexOf("%")==-1)){
var _1f=0;
if(document.defaultView&&document.defaultView.getComputedStyle){
_1f=parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-left-width"))+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-left"))+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-right"))+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-right-width"));
}else{
if(this._textBoxElement.currentStyle){
if(!$telerik.isIE||(document.compatMode&&document.compatMode!="BackCompat")){
_1f=parseInt(this._textBoxElement.currentStyle["borderLeftWidth"])+parseInt(this._textBoxElement.currentStyle["paddingLeft"])+parseInt(this._textBoxElement.currentStyle["paddingRight"])+parseInt(this._textBoxElement.currentStyle["borderRightWidth"]);
}
}
}
var _20=parseInt(this._textBoxElement.style.width)-_1f;
if(_1f==0||_20<=0){
return;
}
this._textBoxElement.style.width=_20+"px";
var _21="";
var _22=this._originalTextBoxCssText.split(";");
for(var i=0;i<_22.length;i++){
var _24=_22[i].split(":");
if(_24.length==2){
var _25=""+_24[0].toLowerCase();
if(_25!="width"){
_21+=_22[i]+";";
}else{
_21+="width:"+_20+"px;";
if(!this._originalTextBoxWidth){
this._originalTextBoxWidth=_22[i].split(":")[1].trim();
}
}
}
}
this._originalTextBoxCssText=_21;
this._reducedPixelWidthFlag=true;
}
},_updatePercentageHeight:function(){
var _26=$get(this._wrapperElementID);
if(_26.style.height.indexOf("%")!=-1&&_26.offsetHeight>0){
var _27=0;
if(this._textBoxElement.currentStyle){
_27=parseInt(this._textBoxElement.currentStyle["borderTopWidth"])+parseInt(this._textBoxElement.currentStyle["borderBottomWidth"])+parseInt(this._textBoxElement.currentStyle["paddingTop"])+parseInt(this._textBoxElement.currentStyle["paddingBottom"]);
}else{
if(window.getComputedStyle){
_27=parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-top-width"))+parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-bottom-width"))+parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-top"))+parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-bottom"));
}
}
this._textBoxElement.style.height="1px";
this._textBoxElement.style.cssText=this._textBoxElement.style.cssText;
this._textBoxElement.style.height=_26.offsetHeight-_27+"px";
if(this._originalTextBoxCssText.search(/(^|[^-])height/)!=-1){
this._originalTextBoxCssText=this._originalTextBoxCssText.replace(/(^|[^-])height(\s*):(\s*)([^;]+);/i,"$1height:"+(_26.offsetHeight-_27)+"px;");
}else{
this._originalTextBoxCssText+="height:"+(_26.offsetHeight-_27)+"px;";
}
}
},_resetWidthInPixels:function(){
if(($telerik.isIE7||$telerik.isIE6)&&this._textBoxElement.offsetWidth>0&&(this._textBoxElement.parentNode.tagName.toLowerCase()=="td"||(this._textBoxElement.parentNode.parentNode.tagName.toLowerCase()=="td"&&this._textBoxElement.parentNode.parentNode.className=="rcInputCell")||(this._textBoxElement.parentNode.tagName.toLowerCase()=="span"&&this._textBoxElement.parentNode.parentNode.className!="rcInputCell"&&(this._textBoxElement.currentStyle["width"].indexOf("%")!=-1||(this._originalTextBoxWidth&&this._originalTextBoxWidth.indexOf("%")!=-1))))){
var _28=this._textBoxElement.value;
var _29;
var _2a;
var _2b="";
if(_28!=""){
this._textBoxElement.value="";
}
if(this._originalCellPadding&&this._textBoxElement.parentNode.tagName.toLowerCase()=="td"){
this._textBoxElement.parentNode.style.paddingRight=this._originalCellPadding;
}else{
if(this._originalCellPadding&&this._textBoxElement.parentNode.parentNode.tagName.toLowerCase()=="td"&&this._textBoxElement.parentNode.parentNode.className=="rcInputCell"){
this._textBoxElement.parentNode.parentNode.style.paddingRight=this._originalCellPadding;
}
}
if(this._originalTextBoxWidth){
this._textBoxElement.style.width=this._originalTextBoxWidth;
}else{
if(_28!=""){
this._textBoxElement.style.cssText=this._textBoxElement.style.cssText;
}
}
_29=parseInt(this._textBoxElement.currentStyle["paddingLeft"])+parseInt(this._textBoxElement.currentStyle["paddingRight"]);
_2a=this._textBoxElement.clientWidth-_29;
if(_2a>0){
this._textBoxElement.style.width=_2a+"px";
if(this._textBoxElement.parentNode.tagName.toLowerCase()=="td"){
if(!this._originalCellPadding){
this._originalCellPadding=this._textBoxElement.parentNode.currentStyle["paddingRight"];
}
this._textBoxElement.parentNode.style.paddingRight="0px";
}else{
if(this._textBoxElement.parentNode.parentNode.tagName.toLowerCase()=="td"&&this._textBoxElement.parentNode.parentNode.className=="rcInputCell"){
if(!this._originalCellPadding){
this._originalCellPadding=this._textBoxElement.parentNode.parentNode.currentStyle["paddingRight"];
}
this._textBoxElement.parentNode.parentNode.style.paddingRight="0px";
}
}
var _2c=this._originalTextBoxCssText.split(";");
for(var i=0;i<_2c.length;i++){
var _2e=_2c[i].split(":");
if(_2e.length==2){
var _2f=""+_2e[0].toLowerCase();
if(_2f!="width"){
_2b+=_2c[i]+";";
}else{
_2b+="width:"+_2a+"px;";
if(!this._originalTextBoxWidth){
this._originalTextBoxWidth=_2c[i].split(":")[1].trim();
}
}
}
}
this._originalTextBoxCssText=_2b;
}
if(_28!=""){
this._textBoxElement.value=_28;
}
}
},_initializeHiddenElement:function(id){
this._hiddenElement=$get(id);
},_initializeValidationField:function(id){
},_initializeButtons:function(){
this._onButtonClickDelegate=Function.createDelegate(this,this._onButtonClickHandler);
this.Button=null;
var _32=$get(this._wrapperElementID);
var _33=_32.getElementsByTagName("a");
for(i=0;i<_33.length;i++){
if(_33[i].parentNode.className.indexOf("riBtn")!=(-1)){
this.Button=_33[i];
$addHandler(this.Button,"click",this._onButtonClickDelegate);
}
}
},_attachEventHandlers:function(){
this._onTextBoxKeyUpDelegate=Function.createDelegate(this,this._onTextBoxKeyUpHandler);
this._onTextBoxKeyPressDelegate=Function.createDelegate(this,this._onTextBoxKeyPressHandler);
this._onTextBoxBlurDelegate=Function.createDelegate(this,this._onTextBoxBlurHandler);
this._onTextBoxFocusDelegate=Function.createDelegate(this,this._onTextBoxFocusHandler);
this._onTextBoxKeyDownDelegate=Function.createDelegate(this,this._onTextBoxKeyDownHandler);
$addHandler(this._textBoxElement,"keydown",this._onTextBoxKeyDownDelegate);
$addHandler(this._textBoxElement,"keypress",this._onTextBoxKeyPressDelegate);
$addHandler(this._textBoxElement,"keyup",this._onTextBoxKeyUpDelegate);
$addHandler(this._textBoxElement,"blur",this._onTextBoxBlurDelegate);
$addHandler(this._textBoxElement,"focus",this._onTextBoxFocusDelegate);
if($telerik.isIE||$telerik.isSafari){
this._onTextBoxPasteDelegate=Function.createDelegate(this,this._onTextBoxPasteHandler);
$addHandler(this._textBoxElement,"paste",this._onTextBoxPasteDelegate);
}else{
this._onTextBoxInputDelegate=Function.createDelegate(this,this._onTextBoxInputHandler);
$addHandler(this._textBoxElement,"input",this._onTextBoxInputDelegate);
}
if(this._textBoxElement&&this._textBoxElement.form){
this._onFormResetDelegate=Function.createDelegate(this,this._onFormResetHandler);
$addHandler(this._textBoxElement.form,"reset",this._onFormResetDelegate);
}
this._attachMouseEventHandlers();
},_onTextBoxPasteHandler:function(e){
if(this.isMultiLine()&&this._maxLength>0){
if($telerik.isSafari){
var _35=this;
window.setTimeout(function(){
_35._textBoxElement.value=_35._textBoxElement.value.substr(0,_35._maxLength);
},1);
}else{
if(!e){
var e=window.event;
}
if(e.preventDefault){
e.preventDefault();
}
var _36=this._textBoxElement.document.selection.createRange();
var _37=this._maxLength-this._textBoxElement.value.length+_36.text.length;
var _38=window.clipboardData.getData("Text").substr(0,_37);
_36.text=_38;
}
}
},_onTextBoxInputHandler:function(e){
if(this.isMultiLine()&&this._maxLength>0){
this._textBoxElement.value=this._textBoxElement.value.substr(0,this._maxLength);
}
},_attachMouseEventHandlers:function(){
if($telerik.isSafari){
this._onTextBoxMouseUpDelegate=Function.createDelegate(this,this._onTextBoxMouseUpHandler);
$addHandler(this._textBoxElement,"mouseup",this._onTextBoxMouseUpDelegate);
}
this._onTextBoxMouseOutDelegate=Function.createDelegate(this,this._onTextBoxMouseOutHandler);
this._onTextBoxMouseOverDelegate=Function.createDelegate(this,this._onTextBoxMouseOverHandler);
this._onTextBoxMouseWheelDelegate=Function.createDelegate(this,this._onTextBoxMouseWheelHandler);
this._onTextBoxDragDropDelegate=Function.createDelegate(this,this._onTextBoxDragDropHandler);
$addHandler(this._textBoxElement,"mouseout",this._onTextBoxMouseOutDelegate);
$addHandler(this._textBoxElement,"mouseover",this._onTextBoxMouseOverDelegate);
if(Sys.Browser.agent!=Sys.Browser.InternetExplorer){
if($telerik.isSafari3||$telerik.isOpera){
$addHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate);
}else{
$addHandler(this._textBoxElement,"DOMMouseScroll",this._onTextBoxMouseWheelDelegate);
}
$addHandler(this._textBoxElement,"dragdrop",this._onTextBoxDragDropDelegate);
}else{
$addHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate);
$addHandler(this._textBoxElement,"drop",this._onTextBoxDragDropDelegate);
}
},_onTextBoxMouseUpHandler:function(e){
if($telerik.isSafari&&this._allowApplySelection){
this._allowApplySelection=false;
this._updateSelectionOnFocus();
e.preventDefault();
e.stopPropagation();
}
},_onTextBoxKeyPressHandler:function(e){
var _3c=new Telerik.Web.UI.InputKeyPressEventArgs(e,e.charCode,String.fromCharCode(e.charCode));
this.raise_keyPress(_3c);
if(_3c.get_cancel()){
e.stopPropagation();
e.preventDefault();
return false;
}
if((e.charCode==13)&&!this.isMultiLine()){
this._updateHiddenValueOnKeyPress(e);
if(this.get_autoPostBack()&&this._initialValue!==this.get_textBoxValue()){
this._isEnterPressed=true;
this.raisePostBackEvent();
if(Sys.Browser.agent==Sys.Browser.InternetExplorer){
e.stopPropagation();
e.preventDefault();
}
}
return true;
}
},_onTextBoxKeyUpHandler:function(e){
this._updateHiddenValueOnKeyPress(e);
},_onTextBoxBlurHandler:function(e){
if(!this._isInFocus||this.isReadOnly()){
e.preventDefault();
e.stopPropagation();
return false;
}
this._isInFocus=false;
this._focused=false;
var _3f=this.get_textBoxValue();
if(this._initialValue!==_3f){
this.set_value(_3f);
}else{
this.updateDisplayValue();
this.updateCssClass();
}
this.raise_blur(Sys.EventArgs.Empty);
this._triggerDomEvent("blur",this._getValidationField());
},_onTextBoxFocusHandler:function(e){
if(!this.isReadOnly()){
this._allowApplySelection=true;
this._updateStateOnFocus();
this._triggerDomEvent("focus",this._getValidationField());
}
},_updateStateOnFocus:function(){
if(this._isDroped){
this._updateHiddenValue();
this._isDroped=false;
}
this._isInFocus=true;
this._focused=true;
this.updateDisplayValue();
this.updateCssClass();
if(!$telerik.isSafari){
this._updateSelectionOnFocus();
}
this.raise_focus(Sys.EventArgs.Empty);
},_onTextBoxMouseOutHandler:function(e){
this._hovered=false;
this.updateCssClass();
this.raise_mouseOut(Sys.EventArgs.Empty);
},_onTextBoxMouseOverHandler:function(e){
this._hovered=true;
this.updateCssClass();
this.raise_mouseOver(Sys.EventArgs.Empty);
},_onTextBoxKeyDownHandler:function(e){
if(e.keyCode==27&&!$telerik.isIE){
var _44=this;
window.setTimeout(function(){
_44.set_textBoxValue(_44.get_editValue());
},0);
}
},_onTextBoxMouseWheelHandler:function(e){
var _46;
if(this._focused){
if(e.rawEvent.wheelDelta){
_46=e.rawEvent.wheelDelta/120;
if(window.opera){
_46=-_46;
}
}else{
if(e.detail){
_46=-e.rawEvent.detail/3;
}else{
if(e.rawEvent&&e.rawEvent.detail){
_46=-e.rawEvent.detail/3;
}
}
}
if(_46>0){
this._handleWheel(false);
}else{
this._handleWheel(true);
}
e.stopPropagation();
e.preventDefault();
}
},_onButtonClickHandler:function(e){
var _48=new Telerik.Web.UI.InputButtonClickEventArgs(Telerik.Web.UI.InputButtonType.Button);
this.raise_buttonClick(_48);
},_onTextBoxDragDropHandler:function(e){
this._isDroped=true;
},_onFormResetHandler:function(e){
this._resetInputValue();
},_resetInputValue:function(){
if(this._initialValue==null){
this._initialValue="";
}
this._setHiddenValue(this._initialValue);
this.updateDisplayValue();
if($telerik.isIE){
this._textBoxElement.defaultValue=this.get_displayValue();
}
},_getValidationField:function(){
return this._hiddenElement;
},_calculateSelection:function(){
if((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){
this._selectionEnd=this._textBoxElement.selectionEnd;
this._selectionStart=this._textBoxElement.selectionStart;
return;
}
var s1=document.selection.createRange();
if(s1.parentElement()!=this._textBoxElement){
return;
}
var s=s1.duplicate();
s.move("character",-this._textBoxElement.value.length);
s.setEndPoint("EndToStart",s1);
var _4d=s.text.length;
var _4e=s.text.length+s1.text.length;
this._selectionEnd=Math.max(_4d,_4e);
this._selectionStart=Math.min(_4d,_4e);
},_SetValue:function(_4f){
var _50=this._setHiddenValue(_4f);
if(typeof (_50)=="undefined"||_50==true){
this.set_textBoxValue(this.get_editValue());
}
},_triggerDomEvent:function(_51,_52){
if(!_51||_51==""||!_52){
return;
}
if(_52.fireEvent&&document.createEventObject){
var _53=document.createEventObject();
_52.fireEvent(String.format("on{0}",_51),_53);
}else{
if(_52.dispatchEvent){
var _54=true;
var _53=document.createEvent("HTMLEvents");
_53.initEvent(_51,_54,true);
_52.dispatchEvent(_53);
}
}
},_updateSelectionOnFocus:function(){
if(!this.get_textBoxValue()){
this.set_caretPosition(0);
}
switch(this.get_selectionOnFocus()){
case Telerik.Web.UI.SelectionOnFocus.None:
break;
case Telerik.Web.UI.SelectionOnFocus.CaretToBeginning:
this.set_caretPosition(0);
break;
case Telerik.Web.UI.SelectionOnFocus.CaretToEnd:
if(this._textBoxElement.value.length>0){
if($telerik.isIE){
this.set_caretPosition(this._textBoxElement.value.replace(/\r/g,"").length);
}else{
this.set_caretPosition(this._textBoxElement.value.length);
}
}
break;
case Telerik.Web.UI.SelectionOnFocus.SelectAll:
this.selectAllText();
break;
default:
this.set_caretPosition(0);
break;
}
},_isInVisibleContainer:function(_55){
var _56=_55;
while((typeof (_56)!="undefined")&&(_56!=null)){
if(_56.disabled||(typeof (_56.style)!="undefined"&&((typeof (_56.style.display)!="undefined"&&_56.style.display=="none")||(typeof (_56.style.visibility)!="undefined"&&_56.style.visibility=="hidden")))){
return false;
}
if(typeof (_56.parentNode)!="undefined"&&_56.parentNode!=null&&_56.parentNode!=_56&&_56.parentNode.tagName.toLowerCase()!="body"){
_56=_56.parentNode;
}else{
return true;
}
}
return true;
},_applySelection:function(){
if(!this._isInVisibleContainer(this._textBoxElement)){
return;
}
if((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){
this._textBoxElement.selectionStart=this._selectionStart;
this._textBoxElement.selectionEnd=this._selectionEnd;
return;
}
this._textBoxElement.select();
sel=document.selection.createRange();
sel.collapse();
sel.moveStart("character",this._selectionStart);
sel.collapse();
sel.moveEnd("character",this._selectionEnd-this._selectionStart);
sel.select();
},_clearHiddenValue:function(){
this._hiddenElement.value="";
},_handleWheel:function(_57){
},_setHiddenValue:function(_58){
if(this._hiddenElement.value!=_58.toString()){
this._hiddenElement.value=_58;
}
this._setValidationField(_58);
return true;
},_setValidationField:function(_59){
},_updateHiddenValueOnKeyPress:function(){
this._updateHiddenValue();
},_updateHiddenValue:function(){
if(!this._textBoxElement.readOnly){
return this._setHiddenValue(this._textBoxElement.value);
}
},_escapeNewLineChars:function(_5a,_5b){
_5a=escape(_5a);
while(_5a.indexOf("%0D%0A")!=-1){
_5a=_5a.replace("%0D%0A",_5b);
}
while(_5a.indexOf("%0A")!=-1){
_5a=_5a.replace("%0A",_5b);
}
while(_5a.indexOf("%0D")!=-1){
_5a=_5a.replace("%0D",_5b);
}
return unescape(_5a);
},_isNormalChar:function(e){
if(($telerik.isFirefox&&e.rawEvent.keyCode!=0&&e.rawEvent.keyCode!=13)||($telerik.isOpera&&e.rawEvent.which==0)||($telerik.isSafari&&(e.charCode<Sys.UI.Key.space||e.charCode>60000))){
return false;
}
return true;
},add_blur:function(_5d){
this.get_events().addHandler("blur",_5d);
},remove_blur:function(_5e){
this.get_events().removeHandler("blur",_5e);
},raise_blur:function(_5f){
this.raiseEvent("blur",_5f);
},add_mouseOut:function(_60){
this.get_events().addHandler("mouseOut",_60);
},remove_mouseOut:function(_61){
this.get_events().removeHandler("mouseOut",_61);
},raise_mouseOut:function(_62){
this.raiseEvent("mouseOut",_62);
},add_valueChanged:function(_63){
this.get_events().addHandler("valueChanged",_63);
},remove_valueChanged:function(_64){
this.get_events().removeHandler("valueChanged",_64);
},raise_valueChanged:function(_65,_66){
if(_65.toString()==_66.toString()){
return false;
}
this._initialValue=this.get_value();
var _67=new Telerik.Web.UI.InputValueChangedEventArgs(_65,_66);
this.raiseEvent("valueChanged",_67);
var _68=!_67.get_cancel();
if(this.get_autoPostBack()&&_68&&!this._isEnterPressed){
this.raisePostBackEvent();
}
},add_error:function(_69){
this.get_events().addHandler("error",_69);
},remove_error:function(_6a){
this.get_events().removeHandler("error",_6a);
},raise_error:function(_6b){
if(this.InEventRaise){
return;
}
this.InEventRaise=true;
this.raiseEvent("error",_6b);
if(!_6b.get_cancel()){
this._invalid=true;
this._errorHandlingCanceled=false;
this.updateCssClass();
var _6c=this;
var _6d=function(){
_6c._invalid=false;
_6c.updateCssClass();
};
setTimeout(_6d,this.get_invalidStyleDuration());
}else{
this._errorHandlingCanceled=true;
this._invalid=false;
this.updateCssClass();
}
this.InEventRaise=false;
},add_load:function(_6e){
this.get_events().addHandler("load",_6e);
},remove_load:function(_6f){
this.get_events().removeHandler("load",_6f);
},raise_load:function(_70){
this.raiseEvent("load",_70);
},add_mouseOver:function(_71){
this.get_events().addHandler("mouseOver",_71);
},remove_mouseOver:function(_72){
this.get_events().removeHandler("mouseOver",_72);
},raise_mouseOver:function(_73){
this.raiseEvent("mouseOver",_73);
},add_focus:function(_74){
this.get_events().addHandler("focus",_74);
},remove_focus:function(_75){
this.get_events().removeHandler("focus",_75);
},raise_focus:function(_76){
this.raiseEvent("focus",_76);
},add_disable:function(_77){
this.get_events().addHandler("disable",_77);
},remove_disable:function(_78){
this.get_events().removeHandler("disable",_78);
},raise_disable:function(_79){
this.raiseEvent("disable",_79);
},add_enable:function(_7a){
this.get_events().addHandler("enable",_7a);
},remove_enable:function(_7b){
this.get_events().removeHandler("enable",_7b);
},raise_enable:function(_7c){
this.raiseEvent("enable",_7c);
},add_keyPress:function(_7d){
this.get_events().addHandler("keyPress",_7d);
},remove_keyPress:function(_7e){
this.get_events().removeHandler("keyPress",_7e);
},raise_keyPress:function(_7f){
this.raiseEvent("keyPress",_7f);
},add_enumerationChanged:function(_80){
this.get_events().addHandler("enumerationChanged",_80);
},remove_enumerationChanged:function(_81){
this.get_events().removeHandler("enumerationChanged",_81);
},raise_enumerationChanged:function(_82){
this.raiseEvent("enumerationChanged",_82);
},add_moveUp:function(_83){
this.get_events().addHandler("moveUp",_83);
},remove_moveUp:function(_84){
this.get_events().removeHandler("moveUp",_84);
},raise_moveUp:function(_85){
this.raiseEvent("moveUp",_85);
},add_moveDown:function(_86){
this.get_events().addHandler("moveDown",_86);
},remove_moveDown:function(_87){
this.get_events().removeHandler("moveDown",_87);
},raise_moveDown:function(_88){
this.raiseEvent("moveDown",_88);
},add_buttonClick:function(_89){
this.get_events().addHandler("buttonClick",_89);
},remove_buttonClick:function(_8a){
this.get_events().removeHandler("buttonClick",_8a);
},raise_buttonClick:function(_8b){
this.raiseEvent("buttonClick",_8b);
},add_valueChanging:function(_8c){
this.get_events().addHandler("valueChanging",_8c);
},remove_valueChanging:function(_8d){
this.get_events().removeHandler("valueChanging",_8d);
},raise_valueChanging:function(_8e){
this.raiseEvent("valueChanging",_8e);
}};
Telerik.Web.UI.RadInputControl.registerClass("Telerik.Web.UI.RadInputControl",Telerik.Web.UI.RadWebControl);
if(typeof (ValidatorSetFocus)=="function"){
ValidatorSetFocus=function(val,_90){
var _91;
if(typeof (val.controlhookup)=="string"){
var _92;
if((typeof (_90)!="undefined")&&(_90!=null)){
if((typeof (_90.srcElement)!="undefined")&&(_90.srcElement!=null)){
_92=_90.srcElement;
}else{
_92=_90.target;
}
}
if((typeof (_92)!="undefined")&&(_92!=null)&&(typeof (_92.id)=="string")&&(_92.id==val.controlhookup)){
_91=_92;
}
}
if((typeof (_91)=="undefined")||(_91==null)){
_91=document.getElementById(val.controltovalidate);
}
var _93=false;
if((_91.style)&&(typeof (_91.style.visibility)!="undefined")&&(_91.style.visibility=="hidden")&&(typeof (_91.style.width)!="undefined")&&(document.getElementById(_91.id+"_text")||document.getElementById(_91.id+"_dateInput_text"))&&(_91.tagName.toLowerCase()=="input"||_91.tagName.toLowerCase()=="textarea")){
_93=true;
}
if((typeof (_91)!="undefined")&&(_91!=null)&&(_91.tagName.toLowerCase()!="table"||(typeof (_90)=="undefined")||(_90==null))&&((_91.tagName.toLowerCase()!="input")||(_91.type.toLowerCase()!="hidden"))&&(typeof (_91.disabled)=="undefined"||_91.disabled==null||_91.disabled==false)&&(typeof (_91.visible)=="undefined"||_91.visible==null||_91.visible!=false)&&(IsInVisibleContainer(_91)||_93)){
if(_91.tagName.toLowerCase()=="table"&&(typeof (__nonMSDOMBrowser)=="undefined"||__nonMSDOMBrowser)){
var _94=_91.getElementsByTagName("input");
var _95=_94[_94.length-1];
if(_95!=null){
_91=_95;
}
}
if(typeof (_91.focus)!="undefined"&&_91.focus!=null){
if(_93&&document.getElementById(_91.id+"_text")){
document.getElementById(_91.id+"_text").focus();
}else{
if(_93&&document.getElementById(_91.id+"_dateInput_text")){
document.getElementById(_91.id+"_dateInput_text").focus();
}else{
_91.focus();
}
}
Page_InvalidControlToBeFocused=_91;
}
}
};
}
if(typeof (ValidatedControlOnBlur)=="function"){
ValidatedControlOnBlur=function(_96){
var _97;
if((typeof (_96.srcElement)!="undefined")&&(_96.srcElement!=null)){
_97=_96.srcElement;
}else{
_97=_96.target;
}
var _98=false;
if((_97.style)&&(typeof (_97.style.visibility)!="undefined")&&(_97.style.visibility=="hidden")&&(typeof (_97.style.width)!="undefined")&&(document.getElementById(_97.id+"_text")||document.getElementById(_97.id+"_dateInput_text"))&&(_97.tagName.toLowerCase()=="input"||_97.tagName.toLowerCase()=="textarea")){
_98=true;
}
if((typeof (_97)!="undefined")&&(_97!=null)&&(Page_InvalidControlToBeFocused==_97)){
if(_98&&document.getElementById(_97.id+"_text")){
document.getElementById(_97.id+"_text").focus();
}else{
if(_98&&document.getElementById(_97.id+"_dateInput_text")){
document.getElementById(_97.id+"_dateInput_text").focus();
}else{
_97.focus();
}
}
Page_InvalidControlToBeFocused=null;
}
};
}
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.InputErrorReason=function(){
};
Telerik.Web.UI.InputErrorReason.prototype={ParseError:1,OutOfRange:2};
Telerik.Web.UI.InputErrorReason.registerEnum("Telerik.Web.UI.InputErrorReason",false);
Telerik.Web.UI.SelectionOnFocus=function(){
};
Telerik.Web.UI.SelectionOnFocus.prototype={None:0,CaretToBeginning:1,CaretToEnd:2,SelectAll:3};
Telerik.Web.UI.SelectionOnFocus.registerEnum("Telerik.Web.UI.SelectionOnFocus",false);
Telerik.Web.UI.InputButtonType=function(){
};
Telerik.Web.UI.InputButtonType.prototype={Button:1,MoveUpButton:2,MoveDownButton:3};
Telerik.Web.UI.InputButtonType.registerEnum("Telerik.Web.UI.InputButtonType",false);
Telerik.Web.UI.DisplayFormatPosition=function(){
};
Telerik.Web.UI.DisplayFormatPosition.prototype={Left:1,Right:2};
Telerik.Web.UI.DisplayFormatPosition.registerEnum("Telerik.Web.UI.DisplayFormatPosition",false);
Telerik.Web.UI.InputSettingValidateOnEvent=function(){
};
Telerik.Web.UI.InputSettingValidateOnEvent.prototype={Blur:0,Submit:1,All:2};
Telerik.Web.UI.InputSettingValidateOnEvent.registerEnum("Telerik.Web.UI.InputSettingValidateOnEvent",false);
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.InputValueChangedEventArgs=function(_99,_9a){
Telerik.Web.UI.InputValueChangedEventArgs.initializeBase(this);
this._newValue=_99;
this._oldValue=_9a;
};
Telerik.Web.UI.InputValueChangedEventArgs.prototype={get_oldValue:function(){
return this._oldValue;
},get_newValue:function(){
return this._newValue;
}};
Telerik.Web.UI.InputValueChangedEventArgs.registerClass("Telerik.Web.UI.InputValueChangedEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.InputValueChangingEventArgs=function(_9b,_9c){
Telerik.Web.UI.InputValueChangingEventArgs.initializeBase(this,[_9b,_9c]);
};
Telerik.Web.UI.InputValueChangingEventArgs.prototype={set_newValue:function(_9d){
if(this._newValue!==_9d){
this._newValue=_9d;
}
}};
Telerik.Web.UI.InputValueChangingEventArgs.registerClass("Telerik.Web.UI.InputValueChangingEventArgs",Telerik.Web.UI.InputValueChangedEventArgs);
Telerik.Web.UI.MaskedTextBoxEventArgs=function(_9e,_9f,_a0){
Telerik.Web.UI.MaskedTextBoxEventArgs.initializeBase(this);
this._newValue=_9e;
this._oldValue=_9f;
this._chunk=_a0;
};
Telerik.Web.UI.MaskedTextBoxEventArgs.prototype={get_oldValue:function(){
return this._oldValue;
},get_newValue:function(){
return this._newValue;
},get_currentPart:function(){
return this._chunk;
}};
Telerik.Web.UI.MaskedTextBoxEventArgs.registerClass("Telerik.Web.UI.MaskedTextBoxEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.InputKeyPressEventArgs=function(_a1,_a2,_a3){
Telerik.Web.UI.InputKeyPressEventArgs.initializeBase(this);
this._domEvent=_a1;
this._keyCode=_a2;
this._keyCharacter=_a3;
};
Telerik.Web.UI.InputKeyPressEventArgs.prototype={get_domEvent:function(){
return this._domEvent;
},get_keyCode:function(){
return this._keyCode;
},get_keyCharacter:function(){
return this._keyCharacter;
}};
Telerik.Web.UI.InputKeyPressEventArgs.registerClass("Telerik.Web.UI.InputKeyPressEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.InputButtonClickEventArgs=function(_a4){
Telerik.Web.UI.InputButtonClickEventArgs.initializeBase(this);
this._buttonType=_a4;
};
Telerik.Web.UI.InputButtonClickEventArgs.prototype={get_buttonType:function(){
return this._buttonType;
}};
Telerik.Web.UI.InputButtonClickEventArgs.registerClass("Telerik.Web.UI.InputButtonClickEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.InputErrorEventArgs=function(_a5,_a6){
Telerik.Web.UI.InputErrorEventArgs.initializeBase(this);
this._reason=_a5;
this._inputText=_a6;
};
Telerik.Web.UI.InputErrorEventArgs.prototype={get_reason:function(){
return this._reason;
},get_inputText:function(){
return this._inputText;
}};
Telerik.Web.UI.InputErrorEventArgs.registerClass("Telerik.Web.UI.InputErrorEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.NumericInputErrorEventArgs=function(_a7,_a8,_a9,_aa){
Telerik.Web.UI.NumericInputErrorEventArgs.initializeBase(this,[_a7,_a8]);
this._keyCode=_a9;
this._keyCharacter=_aa;
};
Telerik.Web.UI.NumericInputErrorEventArgs.prototype={get_reason:function(){
return this._reason;
},get_inputText:function(){
return this._inputText;
},get_keyCode:function(){
return this._keyCode;
},get_keyCharacter:function(){
return this._keyCharacter;
}};
Telerik.Web.UI.NumericInputErrorEventArgs.registerClass("Telerik.Web.UI.NumericInputErrorEventArgs",Telerik.Web.UI.InputErrorEventArgs);
Telerik.Web.UI.InputManagerKeyPressEventArgs=function(_ab,_ac,_ad,_ae){
Telerik.Web.UI.InputManagerKeyPressEventArgs.initializeBase(this,[_ab,_ac,_ad]);
this._targetInput=_ae;
};
Telerik.Web.UI.InputManagerKeyPressEventArgs.prototype={get_targetInput:function(){
return this._targetInput;
}};
Telerik.Web.UI.InputManagerKeyPressEventArgs.registerClass("Telerik.Web.UI.InputManagerKeyPressEventArgs",Telerik.Web.UI.InputKeyPressEventArgs);
Telerik.Web.UI.InputManagerEventArgs=function(_af,_b0){
Telerik.Web.UI.InputManagerEventArgs.initializeBase(this);
this._targetInput=_af;
this._domEvent=_b0;
};
Telerik.Web.UI.InputManagerEventArgs.prototype={get_targetInput:function(){
return this._targetInput;
},get_domEvent:function(){
return this._domEvent;
}};
Telerik.Web.UI.InputManagerEventArgs.registerClass("Telerik.Web.UI.InputManagerEventArgs",Sys.EventArgs);
Telerik.Web.UI.InputManagerErrorEventArgs=function(_b1,_b2,_b3){
Telerik.Web.UI.InputManagerErrorEventArgs.initializeBase(this,[_b1,_b2]);
this._targetInput=_b3;
};
Telerik.Web.UI.InputManagerErrorEventArgs.prototype={get_targetInput:function(){
return this._targetInput;
},set_inputText:function(_b4){
this._inputText=_b4;
}};
Telerik.Web.UI.InputManagerErrorEventArgs.registerClass("Telerik.Web.UI.InputManagerErrorEventArgs",Telerik.Web.UI.InputErrorEventArgs);
Telerik.Web.UI.NumericInputManagerErrorEventArgs=function(_b5,_b6,_b7,_b8,_b9){
Telerik.Web.UI.NumericInputManagerErrorEventArgs.initializeBase(this,[_b5,_b6,_b7,_b8]);
this._targetInput=_b9;
};
Telerik.Web.UI.NumericInputManagerErrorEventArgs.prototype={get_targetInput:function(){
return this._targetInput;
}};
Telerik.Web.UI.NumericInputManagerErrorEventArgs.registerClass("Telerik.Web.UI.NumericInputManagerErrorEventArgs",Telerik.Web.UI.NumericInputErrorEventArgs);
Telerik.Web.UI.InputManagerValidatingEventArgs=function(_ba){
Telerik.Web.UI.InputManagerValidatingEventArgs.initializeBase(this);
this._input=_ba;
this._isValid=true;
};
Telerik.Web.UI.InputManagerValidatingEventArgs.prototype={get_input:function(){
return this._input;
},get_isValid:function(){
return this._isValid;
},set_isValid:function(_bb){
this._isValid=_bb;
}};
Telerik.Web.UI.InputManagerValidatingEventArgs.registerClass("Telerik.Web.UI.InputManagerValidatingEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.RadTextBox=function(_bc){
Telerik.Web.UI.RadTextBox.initializeBase(this,[_bc]);
this._maxLength=0;
};
Telerik.Web.UI.RadTextBox.prototype={initialize:function(){
Telerik.Web.UI.RadTextBox.callBaseMethod(this,"initialize");
if($telerik.isFirefox&&this._textBoxElement&&this._textBoxElement.type=="password"){
this._clearHiddenValue();
this.updateDisplayValue();
this.updateCssClass();
}
if(this._textBoxElement&&this._textBoxElement.nodeName&&(this._textBoxElement.nodeName.toUpperCase()=="TEXTAREA")){
this.updateDisplayValue();
}
},dispose:function(){
Telerik.Web.UI.RadTextBox.callBaseMethod(this,"dispose");
},_onTextBoxKeyPressHandler:function(e){
Telerik.Web.UI.RadTextBox.callBaseMethod(this,"_onTextBoxKeyPressHandler",[e]);
var _be=this._escapeNewLineChars(this._textBoxElement.value," ");
if((this.get_maxLength()>0)&&(_be.length>=this.get_maxLength())&&(this._isNormalChar(e))){
e.stopPropagation();
e.preventDefault();
return false;
}
if((e.charCode==13)&&!this.isMultiLine()){
if(this._initialValue!==_be){
this.set_value(_be);
}else{
this.updateDisplayValue();
this.updateCssClass();
}
return true;
}
},get_maxLength:function(){
return this._maxLength;
},set_maxLength:function(_bf){
if(this._maxLength!==_bf){
this._maxLength=_bf;
this.raisePropertyChanged("maxLength");
}
}};
Telerik.Web.UI.RadTextBox.registerClass("Telerik.Web.UI.RadTextBox",Telerik.Web.UI.RadInputControl);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();