﻿Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadInputControl=function(a){Telerik.Web.UI.RadInputControl.initializeBase(this,[a]);
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._onTextBoxDragEnterDelegate=null;
this._onTextBoxDragLeaveDelegate=null;
this._onTextBoxDropDelegate=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");
this._originalTextBoxCssText=this._textBoxElement.style.cssText;
if(this._originalTextBoxCssText.lastIndexOf(";")!=this._originalTextBoxCssText.length-1){this._originalTextBoxCssText+=";";
}if($telerik.isIE7){var b=$get(this._wrapperElementID);
if(b.style.display=="inline-block"){b.style.display="inline";
b.style.zoom=1;
}else{if(document.documentMode&&document.documentMode>7&&b.style.display=="inline"){b.style.display="inline-block";
}}}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||$telerik.isSafari)&&this.isEmpty()&&this.get_emptyMessage().length>this._originalMaxLength){this.updateDisplayValue();
}this.raise_load(Sys.EventArgs.Empty);
if(this._focused){var a=this;
setTimeout(function(){a._updateStateOnFocus();
},0);
}},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._onTextBoxDragEnterDelegate){$removeHandler(this._textBoxElement,"dragenter",this._onTextBoxDragEnterDelegate);
this._onTextBoxDragEnterDelegate=null;
}if(this._onTextBoxDragLeaveDelegate){if($telerik.isFirefox){$removeHandler(this._textBoxElement,"dragexit",this._onTextBoxDragLeaveDelegate);
}else{$removeHandler(this._textBoxElement,"dragleave",this._onTextBoxDragLeaveDelegate);
}this._onTextBoxDragLeaveDelegate=null;
}if(this._onTextBoxDropDelegate){if($telerik.isFirefox){$removeHandler(this._textBoxElement,"dragdrop",this._onTextBoxDropDelegate);
}this._onTextBoxDropDelegate=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(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.isSafari2&&$telerik.isSafari)||$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._textBoxElement.maxLength=this._originalMaxLength;
if(this.get_editValue()!=this.get_textBoxValue()){if($telerik.isIE){var a=this.get_caretPosition();
this.set_textBoxValue(this.get_editValue());
if(a>0){this.set_caretPosition(a);
}else{this._textBoxElement.select();
}}else{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());
}else{this._textBoxElement.maxLength=this._originalMaxLength;
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(){var a="";
if(this._enabled&&(!this.__isEmptyMessage())&&(!this.isNegative())){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EnabledStyle"][0]);
a=this.get_styles()["EnabledStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}if(this._enabled&&(!this.__isEmptyMessage())&&this.isNegative()){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["NegativeStyle"][0]);
a=this.get_styles()["NegativeStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}if(this._enabled&&this.__isEmptyMessage()){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]);
a=this.get_styles()["EmptyMessageStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}if(this._hovered){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["HoveredStyle"][0]);
a=this.get_styles()["HoveredStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}if(this._focused){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["FocusedStyle"][0]);
a=this.get_styles()["FocusedStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}if(this._invalid){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["InvalidStyle"][0]);
a=this.get_styles()["InvalidStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}if(this._textBoxElement.readOnly&&this.__isEmptyMessage()){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]);
a=this.get_styles()["EmptyMessageStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}else{if(this._textBoxElement.readOnly){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["ReadOnlyStyle"][0]);
a=this.get_styles()["ReadOnlyStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}}if(!this._enabled){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["DisabledStyle"][0]);
a=this.get_styles()["DisabledStyle"][1];
if(a!=""){this._textBoxElement.className=a;
}}if(a==""&&this._textBoxElement.className&&this._textBoxElement.className==""){this._textBoxElement.removeAttribute("class");
}},updateCssText:function(f){var a=f.split(";");
var c;
var e="";
for(c=0;
c<a.length;
c++){var b=a[c].split(":");
if(b.length==2){var d=""+b[0].toLowerCase();
if(d!="width"&&d!="height"){e+=a[c]+";";
}}}return e;
},selectText:function(b,a){this._selectionStart=b;
this._selectionEnd=a;
this._applySelection();
},selectAllText:function(){if(this._textBoxElement.value.length>0){this.selectText(0,this._textBoxElement.value.length);
return true;
}return false;
},get_value:function(){return this._hiddenElement.value;
},set_value:function(a){var c=new Telerik.Web.UI.InputValueChangingEventArgs(a,this._initialValue);
this.raise_valueChanging(c);
if(c.get_cancel()==true){this._SetValue(this._initialValue);
return false;
}if(c.get_newValue()){a=c.get_newValue();
}var b=this._setHiddenValue(a);
if(b==false){a="";
}if(typeof(b)=="undefined"||b==true){this._triggerDomEvent("change",this._getValidationField());
this.raise_valueChanged(a,this._initialValue);
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(a){if(this._textBoxElement.tagName.toLowerCase()=="textarea"&&this._textBoxElement.value.length<a){return;
}this._selectionStart=a;
this._selectionEnd=a;
this._applySelection();
},get_caretPosition:function(){this._calculateSelection();
if(this._selectionStart!=this._selectionEnd){return new Array(this._selectionStart,this._selectionEnd);
}else{if(this._textBoxElement.selectionStart){return this._textBoxElement.selectionStart;
}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(a){this._textBoxElement.value=a;
},get_autoPostBack:function(){return this._autoPostBack;
},set_autoPostBack:function(a){if(this._autoPostBack!==a){this._autoPostBack=a;
this.raisePropertyChanged("autoPostBack");
}},get_emptyMessage:function(){return this._emptyMessage;
},set_emptyMessage:function(a){if(this._emptyMessage!==a){this._emptyMessage=a;
this._isEmptyMessage=(a!="");
this.updateClientState();
this.raisePropertyChanged("emptyMessage");
}},get_selectionOnFocus:function(){return this._selectionOnFocus;
},set_selectionOnFocus:function(a){if(this._selectionOnFocus!==a){this._selectionOnFocus=a;
this.raisePropertyChanged("selectionOnFocus");
}},get_showButton:function(){return this._showButton;
},set_showButton:function(a){if(this._showButton!==a){this._showButton=a;
this.raisePropertyChanged("showButton");
}},get_invalidStyleDuration:function(){return this._invalidStyleDuration;
},set_invalidStyleDuration:function(a){if(this._invalidStyleDuration!==a){this._invalidStyleDuration=a;
this.raisePropertyChanged("invalidStyleDuration");
}},get_enabled:function(){return this._enabled;
},set_enabled:function(a){if(this._enabled!==a){this._enabled=a;
this.raisePropertyChanged("enabled");
}},get_styles:function(){return this._styles;
},set_styles:function(a){if(this._styles!==a){this._styles=a;
this.raisePropertyChanged("styles");
}},saveClientState:function(a){var e=["enabled","emptyMessage"];
if(a){for(var b=0,c=a.length;
b<c;
b++){e[e.length]=a[b];
}}var d={};
for(var b=0;
b<e.length;
b++){d[e[b]]=this["get_"+e[b]]();
}return Sys.Serialization.JavaScriptSerializer.serialize(d);
},get_visible:function(){if(this.get_wrapperElement().style.display=="none"){return false;
}else{return true;
}},set_visible:function(a){if(a==true&&this._originalDisplay!=null){this.get_wrapperElement().style.display=this._originalDisplay;
this.repaint();
}else{if(a==false&&this.get_visible()){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 g=0;
if(document.defaultView&&document.defaultView.getComputedStyle){g=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")){g=parseInt(this._textBoxElement.currentStyle.borderLeftWidth)+parseInt(this._textBoxElement.currentStyle.paddingLeft)+parseInt(this._textBoxElement.currentStyle.paddingRight)+parseInt(this._textBoxElement.currentStyle.borderRightWidth);
}}}var d=parseInt(this._textBoxElement.style.width)-g;
if(g==0||d<=0){return;
}this._textBoxElement.style.width=d+"px";
var c="";
var a=this._originalTextBoxCssText.split(";");
for(var b=0;
b<a.length;
b++){var e=a[b].split(":");
if(e.length==2){var f=""+e[0].toLowerCase();
if(f!="width"){c+=a[b]+";";
}else{c+="width:"+d+"px;";
if(!this._originalTextBoxWidth){this._originalTextBoxWidth=a[b].split(":")[1].trim();
}}}}this._originalTextBoxCssText=c;
this._reducedPixelWidthFlag=true;
}},_updatePercentageHeight:function(){var a=$get(this._wrapperElementID);
if(a.style.height.indexOf("%")!=-1&&a.offsetHeight>0){var b=0;
if(this._textBoxElement.currentStyle){b=parseInt(this._textBoxElement.currentStyle.borderTopWidth)+parseInt(this._textBoxElement.currentStyle.borderBottomWidth)+parseInt(this._textBoxElement.currentStyle.paddingTop)+parseInt(this._textBoxElement.currentStyle.paddingBottom);
}else{if(window.getComputedStyle){b=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=a.offsetHeight-b+"px";
if(this._originalTextBoxCssText.search(/(^|[^-])height/)!=-1){this._originalTextBoxCssText=this._originalTextBoxCssText.replace(/(^|[^-])height(\s*):(\s*)([^;]+);/i,"$1height:"+(a.offsetHeight-b)+"px;");
}else{this._originalTextBoxCssText+="height:"+(a.offsetHeight-b)+"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 g=this._textBoxElement.value;
var f;
var h;
var c="";
if(g!=""){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(g!=""){this._textBoxElement.style.cssText=this._textBoxElement.style.cssText;
}}f=parseInt(this._textBoxElement.currentStyle.paddingLeft)+parseInt(this._textBoxElement.currentStyle.paddingRight);
h=this._textBoxElement.clientWidth-f;
if(h>0){this._textBoxElement.style.width=h+"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 a=this._originalTextBoxCssText.split(";");
for(var b=0;
b<a.length;
b++){var e=a[b].split(":");
if(e.length==2){var d=""+e[0].toLowerCase();
if(d!="width"){c+=a[b]+";";
}else{c+="width:"+h+"px;";
if(!this._originalTextBoxWidth){this._originalTextBoxWidth=a[b].split(":")[1].trim();
}}}}this._originalTextBoxCssText=c;
}if(g!=""){this._textBoxElement.value=g;
}}},_initializeHiddenElement:function(a){this._hiddenElement=$get(a);
},_initializeValidationField:function(a){},_initializeButtons:function(){this._onButtonClickDelegate=Function.createDelegate(this,this._onButtonClickHandler);
this.Button=null;
var b=$get(this._wrapperElementID);
var a=b.getElementsByTagName("a");
for(i=0;
i<a.length;
i++){if(a[i].parentNode.className.indexOf("riBtn")!=(-1)){this.Button=a[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);
this._onTextBoxDragEnterDelegate=Function.createDelegate(this,this._onTextBoxDragEnterHandler);
this._onTextBoxDragLeaveDelegate=Function.createDelegate(this,this._onTextBoxDragLeaveHandler);
this._onTextBoxDropDelegate=Function.createDelegate(this,this._onTextBoxDropHandler);
$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);
$addHandler(this._textBoxElement,"dragenter",this._onTextBoxDragEnterDelegate);
if($telerik.isFirefox){$addHandler(this._textBoxElement,"dragexit",this._onTextBoxDragLeaveDelegate);
}else{$addHandler(this._textBoxElement,"dragleave",this._onTextBoxDragLeaveDelegate);
}if($telerik.isFirefox){$addHandler(this._textBoxElement,"dragdrop",this._onTextBoxDropDelegate);
}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(f){if(this.isMultiLine()&&this._maxLength>0){if($telerik.isSafari){var c=this;
window.setTimeout(function(){c._textBoxElement.value=c._textBoxElement.value.substr(0,c._maxLength);
},1);
}else{if(!f){var f=window.event;
}if(f.preventDefault){f.preventDefault();
}var b=this._textBoxElement.document.selection.createRange();
var d=this._maxLength-this._textBoxElement.value.length+b.text.length;
var a=this._escapeNewLineChars(window.clipboardData.getData("Text"),"%0A").substr(0,d);
b.text=a;
}}},_onTextBoxInputHandler:function(a){if(this.isMultiLine()&&this._maxLength>0&&this._textBoxElement.value.length>this._maxLength){this._textBoxElement.value=this._textBoxElement.value.substr(0,this._maxLength);
}},_attachMouseEventHandlers:function(){if($telerik.isSafari||$telerik.isFirefox){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.isSafari2&&$telerik.isSafari)||$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(a){if(($telerik.isSafari||$telerik.isFirefox)&&this._allowApplySelection){this._allowApplySelection=false;
this._updateSelectionOnFocus();
a.preventDefault();
a.stopPropagation();
}},_onTextBoxKeyPressHandler:function(d){var c=new Telerik.Web.UI.InputKeyPressEventArgs(d,d.charCode,String.fromCharCode(d.charCode));
this.raise_keyPress(c);
if(c.get_cancel()){d.stopPropagation();
d.preventDefault();
return false;
}if((d.charCode==13)&&!this.isMultiLine()){var a=this._initialValue;
var b=this.get_textBoxValue();
if(b.toString()!=a.toString()){this.set_value(b);
}else{if(this.get_autoPostBack()){this._isEnterPressed=true;
this.raisePostBackEvent();
d.stopPropagation();
d.preventDefault();
}}return true;
}},_onTextBoxKeyUpHandler:function(a){this._updateHiddenValueOnKeyPress(a);
},_onTextBoxBlurHandler:function(b){if(!this._isInFocus||this.isReadOnly()){b.preventDefault();
b.stopPropagation();
return false;
}this._isInFocus=false;
this._focused=false;
var a=this.get_textBoxValue();
if(this._initialValue+""!==a){this.set_value(a);
}else{this._setHiddenValue(this._initialValue);
this.updateDisplayValue();
this.updateCssClass();
}this.raise_blur(Sys.EventArgs.Empty);
this._triggerDomEvent("blur",this._getValidationField());
},_onTextBoxFocusHandler:function(b){if(!this.isReadOnly()){this._allowApplySelection=true;
this._updateStateOnFocus();
this._triggerDomEvent("focus",this._getValidationField());
}if(($telerik.isSafari||$telerik.isFirefox)&&this.get_selectionOnFocus()!=Telerik.Web.UI.SelectionOnFocus.None&&this.get_selectionOnFocus()!=Telerik.Web.UI.SelectionOnFocus.SelectAll){var a=this;
window.setTimeout(function(){a._triggerDomEvent("mouseup",a._textBoxElement);
},1);
}},_onTextBoxDragEnterHandler:function(a){if(this.isEmpty()&&this.get_emptyMessage()!=""){this.set_textBoxValue("");
}},_onTextBoxDragLeaveHandler:function(a){if(this.isEmpty()&&this.get_emptyMessage()!=""&&!$telerik.isMouseOverElement(this._textBoxElement,a)){this.set_textBoxValue(this.get_emptyMessage());
}},_onTextBoxDropHandler:function(a){var b=this;
window.setTimeout(function(){b._textBoxElement.focus();
},1);
},_updateStateOnFocus:function(){if(this._isDroped){this._updateHiddenValue();
this._isDroped=false;
}this._isInFocus=true;
this._focused=true;
this.updateDisplayValue();
this.updateCssClass();
this._updateSelectionOnFocus();
this.raise_focus(Sys.EventArgs.Empty);
},_onTextBoxMouseOutHandler:function(a){this._hovered=false;
this.updateCssClass();
this.raise_mouseOut(Sys.EventArgs.Empty);
},_onTextBoxMouseOverHandler:function(a){this._hovered=true;
this.updateCssClass();
this.raise_mouseOver(Sys.EventArgs.Empty);
},_onTextBoxKeyDownHandler:function(b){if(b.keyCode==27&&!$telerik.isIE){var a=this;
window.setTimeout(function(){a.set_textBoxValue(a.get_editValue());
},0);
}},_onTextBoxMouseWheelHandler:function(b){var a;
if(this._focused){if(b.rawEvent.wheelDelta){a=b.rawEvent.wheelDelta/120;
if(window.opera){a=-a;
}}else{if(b.detail){a=-b.rawEvent.detail/3;
}else{if(b.rawEvent&&b.rawEvent.detail){a=-b.rawEvent.detail/3;
}}}if(a>0){this._handleWheel(false);
}else{this._handleWheel(true);
}b.stopPropagation();
b.preventDefault();
}},_onButtonClickHandler:function(a){var b=new Telerik.Web.UI.InputButtonClickEventArgs(Telerik.Web.UI.InputButtonType.Button);
this.raise_buttonClick(b);
},_onTextBoxDragDropHandler:function(a){this._isDroped=true;
},_onFormResetHandler:function(a){this._resetInputValue();
},_resetInputValue:function(){if(this._initialValue==null){this._initialValue="";
}this._setHiddenValue(this._initialValue);
var a=this;
window.setTimeout(function(){a.updateDisplayValue();
if($telerik.isIE){a._textBoxElement.defaultValue=a.get_displayValue();
}},1);
},_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 b=end=0;
try{b=Math.abs(document.selection.createRange().moveStart("character",-10000000));
if(b>0){b=this._calculateSelectionInternal(b);
}end=Math.abs(document.selection.createRange().moveEnd("character",-10000000));
if(end>0){end=this._calculateSelectionInternal(end);
}}catch(a){}this._selectionEnd=end;
this._selectionStart=b;
},_calculateSelectionInternal:function(a){if(!this.isMultiLine()){return a;
}var d=Math.abs(this._textBoxElement.createTextRange().moveEnd("character",-10000000));
var c=document.body.createTextRange();
c.moveToElementText(this._textBoxElement);
var e=Math.abs(c.moveStart("character",-10000000));
var b=Math.abs(c.moveEnd("character",-10000000));
if(b-d==e){a-=e;
}return a;
},_SetValue:function(a){var b=this._setHiddenValue(a);
if(typeof(b)=="undefined"||b==true){this.set_textBoxValue(this.get_editValue());
}},_triggerDomEvent:function(c,a){if(!c||c==""||!a){return;
}if(a.fireEvent&&document.createEventObject){var d=document.createEventObject();
a.fireEvent(String.format("on{0}",c),d);
}else{if(a.dispatchEvent){var b=true;
var d=document.createEvent("HTMLEvents");
d.initEvent(c,b,true);
a.dispatchEvent(d);
}}},_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(a){var b=a;
while((typeof(b)!="undefined")&&(b!=null)){if(b.disabled||(typeof(b.style)!="undefined"&&((typeof(b.style.display)!="undefined"&&b.style.display=="none")||(typeof(b.style.visibility)!="undefined"&&b.style.visibility=="hidden")))){return false;
}if(typeof(b.parentNode)!="undefined"&&b.parentNode!=null&&b.parentNode!=b&&b.parentNode.tagName.toLowerCase()!="body"){b=b.parentNode;
}else{return true;
}}return true;
},_applySelection:function(){if(!this._isInVisibleContainer(this._textBoxElement)){return;
}var a=this;
if((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){this._textBoxElement.selectionStart=a._selectionStart;
this._textBoxElement.selectionEnd=a._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(a){},_setHiddenValue:function(a){if(a==null){a="";
}if(this._hiddenElement.value!=a.toString()){this._hiddenElement.value=a;
}this._setValidationField(a);
return true;
},_setValidationField:function(a){},_updateHiddenValueOnKeyPress:function(){this._updateHiddenValue();
},_updateHiddenValue:function(){if(!this._textBoxElement.readOnly){return this._setHiddenValue(this._textBoxElement.value);
}},_escapeNewLineChars:function(b,a){b=escape(b);
while(b.indexOf("%0D%0A")!=-1){b=b.replace("%0D%0A",a);
}if(a!="%0A"){while(b.indexOf("%0A")!=-1){b=b.replace("%0A",a);
}}if(a!="%0D"){while(b.indexOf("%0D")!=-1){b=b.replace("%0D",a);
}}return unescape(b);
},_isNormalChar:function(a){if(($telerik.isFirefox&&a.rawEvent.keyCode!=0&&a.rawEvent.keyCode!=13)||($telerik.isOpera&&a.rawEvent.which==0)||($telerik.isSafari&&(a.charCode<Sys.UI.Key.space||a.charCode>60000))){return false;
}return true;
},add_blur:function(a){this.get_events().addHandler("blur",a);
},remove_blur:function(a){this.get_events().removeHandler("blur",a);
},raise_blur:function(a){this.raiseEvent("blur",a);
},add_mouseOut:function(a){this.get_events().addHandler("mouseOut",a);
},remove_mouseOut:function(a){this.get_events().removeHandler("mouseOut",a);
},raise_mouseOut:function(a){this.raiseEvent("mouseOut",a);
},add_valueChanged:function(a){this.get_events().addHandler("valueChanged",a);
},remove_valueChanged:function(a){this.get_events().removeHandler("valueChanged",a);
},raise_valueChanged:function(b,a){if(typeof(b)!="undefined"&&b!=null&&typeof(a)!="undefined"&&a!=null&&b.toString()==a.toString()){return false;
}var d=true;
if(typeof(b)!="undefined"&&b!=null&&typeof(a)!="undefined"&&a!=null&&b.toString()!=a.toString()){this._initialValue=this.get_value();
var c=new Telerik.Web.UI.InputValueChangedEventArgs(b,a);
this.raiseEvent("valueChanged",c);
d=!c.get_cancel();
}if(this.get_autoPostBack()&&d){this.raisePostBackEvent();
}},add_error:function(a){this.get_events().addHandler("error",a);
},remove_error:function(a){this.get_events().removeHandler("error",a);
},raise_error:function(c){if(this.InEventRaise){return;
}this.InEventRaise=true;
this.raiseEvent("error",c);
if(!c.get_cancel()){this._invalid=true;
this._errorHandlingCanceled=false;
this.updateCssClass();
var d=this._isIncrementing?true:false;
var b=this;
var a=function(e){b._invalid=false;
b.updateCssClass(e);
};
setTimeout(function(){a(d);
},this.get_invalidStyleDuration());
}else{this._errorHandlingCanceled=true;
this._invalid=false;
this.updateCssClass();
}this.InEventRaise=false;
},add_load:function(a){this.get_events().addHandler("load",a);
},remove_load:function(a){this.get_events().removeHandler("load",a);
},raise_load:function(a){this.raiseEvent("load",a);
},add_mouseOver:function(a){this.get_events().addHandler("mouseOver",a);
},remove_mouseOver:function(a){this.get_events().removeHandler("mouseOver",a);
},raise_mouseOver:function(a){this.raiseEvent("mouseOver",a);
},add_focus:function(a){this.get_events().addHandler("focus",a);
},remove_focus:function(a){this.get_events().removeHandler("focus",a);
},raise_focus:function(a){this.raiseEvent("focus",a);
},add_disable:function(a){this.get_events().addHandler("disable",a);
},remove_disable:function(a){this.get_events().removeHandler("disable",a);
},raise_disable:function(a){this.raiseEvent("disable",a);
},add_enable:function(a){this.get_events().addHandler("enable",a);
},remove_enable:function(a){this.get_events().removeHandler("enable",a);
},raise_enable:function(a){this.raiseEvent("enable",a);
},add_keyPress:function(a){this.get_events().addHandler("keyPress",a);
},remove_keyPress:function(a){this.get_events().removeHandler("keyPress",a);
},raise_keyPress:function(a){this.raiseEvent("keyPress",a);
},add_enumerationChanged:function(a){this.get_events().addHandler("enumerationChanged",a);
},remove_enumerationChanged:function(a){this.get_events().removeHandler("enumerationChanged",a);
},raise_enumerationChanged:function(a){this.raiseEvent("enumerationChanged",a);
},add_moveUp:function(a){this.get_events().addHandler("moveUp",a);
},remove_moveUp:function(a){this.get_events().removeHandler("moveUp",a);
},raise_moveUp:function(a){this.raiseEvent("moveUp",a);
},add_moveDown:function(a){this.get_events().addHandler("moveDown",a);
},remove_moveDown:function(a){this.get_events().removeHandler("moveDown",a);
},raise_moveDown:function(a){this.raiseEvent("moveDown",a);
},add_buttonClick:function(a){this.get_events().addHandler("buttonClick",a);
},remove_buttonClick:function(a){this.get_events().removeHandler("buttonClick",a);
},raise_buttonClick:function(a){this.raiseEvent("buttonClick",a);
},add_valueChanging:function(a){this.get_events().addHandler("valueChanging",a);
},remove_valueChanging:function(a){this.get_events().removeHandler("valueChanging",a);
},raise_valueChanging:function(a){this.raiseEvent("valueChanging",a);
}};
Telerik.Web.UI.RadInputControl.registerClass("Telerik.Web.UI.RadInputControl",Telerik.Web.UI.RadWebControl);
if(typeof(ValidatorSetFocus)=="function"){ValidatorSetFocus=function(d,a){var g;
if(typeof(d.controlhookup)=="string"){var f;
if((typeof(a)!="undefined")&&(a!=null)){if((typeof(a.srcElement)!="undefined")&&(a.srcElement!=null)){f=a.srcElement;
}else{f=a.target;
}}if((typeof(f)!="undefined")&&(f!=null)&&(typeof(f.id)=="string")&&(f.id==d.controlhookup)){g=f;
}}if((typeof(g)=="undefined")||(g==null)){g=document.getElementById(d.controltovalidate);
}var c=false;
if((g.style)&&(typeof(g.style.visibility)!="undefined")&&(g.style.visibility=="hidden")&&(typeof(g.style.width)!="undefined")&&(document.getElementById(g.id+"_text")||document.getElementById(g.id+"_dateInput_text"))&&(g.tagName.toLowerCase()=="input"||g.tagName.toLowerCase()=="textarea")){c=true;
}if((typeof(g)!="undefined")&&(g!=null)&&(g.tagName.toLowerCase()!="table"||(typeof(a)=="undefined")||(a==null))&&((g.tagName.toLowerCase()!="input")||(g.type.toLowerCase()!="hidden"))&&(typeof(g.disabled)=="undefined"||g.disabled==null||g.disabled==false)&&(typeof(g.visible)=="undefined"||g.visible==null||g.visible!=false)&&(IsInVisibleContainer(g)||c)){if(g.tagName.toLowerCase()=="table"&&(typeof(__nonMSDOMBrowser)=="undefined"||__nonMSDOMBrowser)){var e=g.getElementsByTagName("input");
var b=e[e.length-1];
if(b!=null){g=b;
}}if(typeof(g.focus)!="undefined"&&g.focus!=null){if(c&&document.getElementById(g.id+"_text")){document.getElementById(g.id+"_text").focus();
}else{if(c&&document.getElementById(g.id+"_dateInput_text")){document.getElementById(g.id+"_dateInput_text").focus();
}else{g.focus();
}}Page_InvalidControlToBeFocused=g;
}}};
}if(typeof(ValidatedControlOnBlur)=="function"){ValidatedControlOnBlur=function(c){var b;
if((typeof(c.srcElement)!="undefined")&&(c.srcElement!=null)){b=c.srcElement;
}else{b=c.target;
}var a=false;
if((b.style)&&(typeof(b.style.visibility)!="undefined")&&(b.style.visibility=="hidden")&&(typeof(b.style.width)!="undefined")&&(document.getElementById(b.id+"_text")||document.getElementById(b.id+"_dateInput_text"))&&(b.tagName.toLowerCase()=="input"||b.tagName.toLowerCase()=="textarea")){a=true;
}if((typeof(b)!="undefined")&&(b!=null)&&(Page_InvalidControlToBeFocused==b)){if(a&&document.getElementById(b.id+"_text")){document.getElementById(b.id+"_text").focus();
}else{if(a&&document.getElementById(b.id+"_dateInput_text")){document.getElementById(b.id+"_dateInput_text").focus();
}else{b.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(b,a){Telerik.Web.UI.InputValueChangedEventArgs.initializeBase(this);
this._newValue=b;
this._oldValue=a;
};
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(b,a){Telerik.Web.UI.InputValueChangingEventArgs.initializeBase(this,[b,a]);
};
Telerik.Web.UI.InputValueChangingEventArgs.prototype={set_newValue:function(a){if(this._newValue!==a){this._newValue=a;
}}};
Telerik.Web.UI.InputValueChangingEventArgs.registerClass("Telerik.Web.UI.InputValueChangingEventArgs",Telerik.Web.UI.InputValueChangedEventArgs);
Telerik.Web.UI.MaskedTextBoxEventArgs=function(b,a,c){Telerik.Web.UI.MaskedTextBoxEventArgs.initializeBase(this);
this._newValue=b;
this._oldValue=a;
this._chunk=c;
};
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(c,b,a){Telerik.Web.UI.InputKeyPressEventArgs.initializeBase(this);
this._domEvent=c;
this._keyCode=b;
this._keyCharacter=a;
};
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(a){Telerik.Web.UI.InputButtonClickEventArgs.initializeBase(this);
this._buttonType=a;
};
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(a,b){Telerik.Web.UI.InputErrorEventArgs.initializeBase(this);
this._reason=a;
this._inputText=b;
};
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(c,a,d,b){Telerik.Web.UI.NumericInputErrorEventArgs.initializeBase(this,[c,a]);
this._keyCode=d;
this._keyCharacter=b;
};
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(d,b,a,c){Telerik.Web.UI.InputManagerKeyPressEventArgs.initializeBase(this,[d,b,a]);
this._targetInput=c;
};
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(b,a){Telerik.Web.UI.InputManagerEventArgs.initializeBase(this);
this._targetInput=b;
this._domEvent=a;
};
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(c,a,b){Telerik.Web.UI.InputManagerErrorEventArgs.initializeBase(this,[c,a]);
this._targetInput=b;
};
Telerik.Web.UI.InputManagerErrorEventArgs.prototype={get_targetInput:function(){return this._targetInput;
},set_inputText:function(a){this._inputText=a;
}};
Telerik.Web.UI.InputManagerErrorEventArgs.registerClass("Telerik.Web.UI.InputManagerErrorEventArgs",Telerik.Web.UI.InputErrorEventArgs);
Telerik.Web.UI.NumericInputManagerErrorEventArgs=function(c,a,e,b,d){Telerik.Web.UI.NumericInputManagerErrorEventArgs.initializeBase(this,[c,a,e,b]);
this._targetInput=d;
};
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(a){Telerik.Web.UI.InputManagerValidatingEventArgs.initializeBase(this);
this._input=a;
this._isValid=true;
this._context=null;
};
Telerik.Web.UI.InputManagerValidatingEventArgs.prototype={get_input:function(){return this._input;
},get_isValid:function(){return this._isValid;
},set_isValid:function(a){this._isValid=a;
},get_context:function(){return this._context;
},set_context:function(a){this._context=a;
}};
Telerik.Web.UI.InputManagerValidatingEventArgs.registerClass("Telerik.Web.UI.InputManagerValidatingEventArgs",Sys.CancelEventArgs);
$telerik.findTextBox=$find;
$telerik.toTextBox=function(a){return a;
};
Telerik.Web.UI.RadTextBox=function(a){Telerik.Web.UI.RadTextBox.initializeBase(this,[a]);
this._maxLength=0;
};
Telerik.Web.UI.RadTextBox.prototype={initialize:function(){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"initialize");
if(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(a){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"_onTextBoxKeyPressHandler",[a]);
var b=this._escapeNewLineChars(this._textBoxElement.value," ");
if((this.get_maxLength()>0)&&(b.length>=this.get_maxLength())&&(this._isNormalChar(a))){a.stopPropagation();
a.preventDefault();
return false;
}if((a.charCode==13)&&!this.isMultiLine()){if(this._initialValue!==b){this.set_value(b);
}else{this.updateDisplayValue();
this.updateCssClass();
}return true;
}},_onTextBoxMouseWheelHandler:function(a){return true;
},get_maxLength:function(){return this._maxLength;
},set_maxLength:function(a){if(this._maxLength!==a){this._maxLength=a;
this.raisePropertyChanged("maxLength");
}}};
Telerik.Web.UI.RadTextBox.registerClass("Telerik.Web.UI.RadTextBox",Telerik.Web.UI.RadInputControl);
