Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.PasswordStrengthChecker=function(a){Telerik.Web.UI.PasswordStrengthChecker.initializeBase(this,[a]); }; Telerik.Web.UI.PasswordStrengthChecker.prototype={initialize:function(){Telerik.Web.UI.PasswordStrengthChecker.callBaseMethod(this,"initialize"); },dispose:function(){},_getPasswordStrength:function(d,i){var c=d; var f=""; var r=0; var m=i.CalculationWeightings.split(";"); var l=parseInt(m[0]); var p=parseInt(m[1]); var q=parseInt(m[2]); var j=parseInt(m[3]); var n=c.length/i.PreferredPasswordLength; if(n>1){n=1; }var o=(n*l); r+=o; if(n<1){f=String.format("Remaining characters",i.PreferredPasswordLength-c.length); }if(i.MinimumNumericCharacters>0){var s=new RegExp("[0-9]","g"); var k=this._getRegexCount(s,c); if(k>=i.MinimumNumericCharacters){r+=p; }if(k0||e>0){if(g>=i.MinLowerCaseChars&&e>=i.MinUpperCaseChars){r+=q; }else{if(i.MinLowerCaseChars>0&&(i.MinLowerCaseChars-g)>0){if(f!=""){f+=", "; }f+=String.format("Remaining lower case",i.MinLowerCaseChars-g); }if(i.MinUpperCaseChars>0&&(i.MinUpperCaseChars-e)>0){if(f!=""){f+=", "; }f+=String.format("Remaining upper case",i.MinUpperCaseChars-e); }}}else{if(f!=""){f+=", "; }f+="Mixed case characters"; }}else{r+=(n*q); }if(i.MinimumSymbolCharacters>0){var a=new RegExp("[^a-z,A-Z,0-9,\x20]","g"); var k=this._getRegexCount(a,c); if(k>=i.MinimumSymbolCharacters){r+=j; }if(k0&&f._strengthScore<=100){c=Math.floor(f._strengthScore/25); }var d=""; if(f._indicatorText){d=f._indicatorText; }else{if(a._IndicatorWords==undefined){a._IndicatorWords=a.TextStrengthDescriptions.split(";"); while(a._IndicatorWords.length<5){a._IndicatorWords[a._IndicatorWords.length]=""; }}if(c!=null){d=a._IndicatorWords[c]; }}if(a._IndicatorStyles==undefined){a._IndicatorStyles=a.TextStrengthDescriptionStyles.split(";"); }var h=null; if(a.IndicatorElementID==""){if(g.get_element){h=$get(g.get_element().id+"_passwordStrengthIndicator"); }else{h=$get(b.id+"_passwordStrengthIndicator"); }}else{h=$get(a.IndicatorElementID); }if(h){h.innerHTML=d; if(c!=null){h.className=a.IndicatorElementBaseStyle+" "+a._IndicatorStyles[c+1]; }else{h.className=a.IndicatorElementBaseStyle+" "+a._IndicatorStyles[0]; }}},_getRegexCount:function(c,b){var d=0; if(b!=null&&b!=""){var a=b.match(c); if(a!=null){d=a.length; }}return d; }}; Telerik.Web.UI.PasswordStrengthChecker.registerClass("Telerik.Web.UI.PasswordStrengthChecker",Telerik.Web.UI.RadWebControl); 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._selectionOnFocus=Telerik.Web.UI.SelectionOnFocus.None; this._postBackEventReferenceScript=""; this._styles=null; this._skin=null; this._enableAriaSupport=false; this._causesValidation=false; this._validationGroup=""; this._isEnterPressed=false; this._isDropped=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._onTextBoxDragDropDelegate=null; this._onTextBoxMouseOutDelegate=null; this._onTextBoxMouseOverDelegate=null; this._onTextBoxKeyDownDelegate=null; this._onTextBoxMouseWheelDelegate=null; this._onFormResetDelegate=null; this._emptyMessage=""; this._initialValueAsText=null; this._originalInitialValueAsText=""; this._validationText=""; this._displayText=""; this._value=""; this._text=""; this._holdsValidValue=true; 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"; var a=(!$telerik.quirksMode&&($telerik.isIE6||($telerik.isIE7&&!document.documentMode)||(document.documentMode&&document.documentMode<8))); var h=this.get_wrapperElement().className.indexOf("riSingle")>-1; this._textBoxElement=$get(this._clientID); this._textBoxElement.RadInputValidationValue=this._validationText; if(this._initialValueAsText!==null){this._value=this._constructValueFromInitialText(this._initialValueAsText); this._text=this._constructEditText(this._value); this._originalInitialValueAsText=this._initialValueAsText; }this._initialValueAsText=this._text; if(h&&a){this._textBoxElement.style.textIndent="-100px"; this._textBoxElement.style.width="100%"; var g=parseInt($telerik.getComputedStyle(this._textBoxElement,"borderLeftWidth","")); g=g?2:g; var e=parseInt($telerik.getComputedStyle(this._textBoxElement,"borderRightWidth","")); e=e?2:e; var d=this._textBoxElement.offsetWidth-2*(parseInt($telerik.getComputedStyle(this._textBoxElement,"paddingLeft",""))+parseInt($telerik.getComputedStyle(this._textBoxElement,"paddingRight",""))+g+e); var b=$telerik.getComputedStyle(this._textBoxElement,"height","")=="auto"?0:this._textBoxElement.offsetHeight-2*(parseInt($telerik.getComputedStyle(this._textBoxElement,"paddingTop",""))+parseInt($telerik.getComputedStyle(this._textBoxElement,"paddingBottom",""))+parseInt($telerik.getComputedStyle(this._textBoxElement,"borderTopWidth",""))+parseInt($telerik.getComputedStyle(this._textBoxElement,"borderBottomWidth",""))); this._textBoxElement.style.textIndent=""; if(d>0){this._textBoxElement.style.width=d+"px"; if(b>0){this._textBoxElement.style.height=b+"px"; }}}this._originalTextBoxCssText=this._textBoxElement.style.cssText; if(this._originalTextBoxCssText.lastIndexOf(";")!=this._originalTextBoxCssText.length-1){this._originalTextBoxCssText+=";"; }var f=this.get_wrapperElement(); if(f.style.display=="none"){this._originalDisplay=""; }else{this._originalDisplay=f.style.display; }if($telerik.isIE7||$telerik.quirksMode){if(this._originalDisplay=="inline-block"){this._originalDisplay="inline"; f.style.zoom=1; }else{if(document.documentMode&&document.documentMode>7&&this._originalDisplay=="inline"){this._originalDisplay="inline-block"; }}}if(f.style.display!="none"){f.style.display=this._originalDisplay; }if($telerik.getCurrentStyle(f,"direction")=="rtl"){var c=this._skin!=""?String.format(" RadInputRTL_{0}",this._skin):""; f.className+=String.format(" RadInputRTL{0}",c); }this.repaint(); this._originalMaxLength=this._textBoxElement.maxLength; if(this._originalMaxLength==-1){this._originalMaxLength=2147483647; }this._selectionEnd=0; this._selectionStart=0; this._hovered=false; this._invalid=false; this._attachEventHandlers(); this.updateCssClass(); this._initializeButtons(); if(($telerik.isFirefox2||$telerik.isSafari)&&this.isEmpty()&&this.get_emptyMessage().length>this._originalMaxLength){this.updateDisplayValue(); }if(this.get_enableAriaSupport()){this._initializeAriaSupport(); }this.updateClientState(); this.raise_load(Sys.EventArgs.Empty); },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._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(!$telerik.isIE){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; }}else{if(this._onTextBoxMouseWheelDelegate){$removeHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); this._onTextBoxMouseWheelDelegate=null; }}if(this._onTextBoxDragDropDelegate){if($telerik.isFirefox&&Sys.Browser.version<3.5){$removeHandler(this._textBoxElement,"dragdrop",this._onTextBoxDragDropDelegate); }else{$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(); if($telerik.isIE9){this._textBoxElement.style.lineHeight="10000px"; }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(){if(!this._textBoxElement.disabled){this._textBoxElement.focus(); }},blur:function(){this._textBoxElement.blur(); },isEmpty:function(){return this._validationText==""; },isNegative:function(){return false; },isReadOnly:function(){return this._textBoxElement.readOnly||!this._enabled; },isMultiLine:function(){return this._textBoxElement&&this._textBoxElement.tagName.toUpperCase()=="TEXTAREA"; },updateDisplayValue:function(){if(this._focused){this.set_textBoxValue(this.get_editValue()); }else{if(this._isEmptyMessage()){this.set_textBoxValue(this.get_emptyMessage()); }else{this.set_textBoxValue(this.get_displayValue()); }}},_isEmptyMessage:function(){return this.isEmpty()&&this.get_emptyMessage(); },repaint:function(){if(!this.canRepaint()){this.add_parentShown(this.get_element()); return; }else{this._clearParentShowHandlers(); }this._updatePercentageHeight(); if(this._shouldResetWidthInPixels){this._resetWidthInPixels(); }if(!this._reducedPixelWidthFlag&&this._enableOldBoxModel){this._reducePixelWidthByPaddings(); }},updateCssClass:function(c){if(!this._holdsValidValue&&!c){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["InvalidStyle"][0]); this._textBoxElement.className=this.get_styles()["InvalidStyle"][1]; return; }var a=""; var b=""; if(this._enabled&&(!this._isEmptyMessage())&&(!this.isNegative())){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EnabledStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["EnabledStyle"][1]; }if(this._enabled&&(!this._isEmptyMessage())&&this.isNegative()){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["NegativeStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["NegativeStyle"][1]; }if(this._enabled&&this._isEmptyMessage()){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["EmptyMessageStyle"][1]; }if(this._hovered){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["HoveredStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["HoveredStyle"][1]; }if(this._focused){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["FocusedStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["FocusedStyle"][1]; }if(this._invalid){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["InvalidStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["InvalidStyle"][1]; }if(this._textBoxElement.readOnly&&this._isEmptyMessage()){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["EmptyMessageStyle"][1]; }else{if(this._textBoxElement.readOnly){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["ReadOnlyStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["ReadOnlyStyle"][1]; }}if(!this._enabled){b=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["DisabledStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,b)){this._textBoxElement.style.cssText=b; }a=this.get_styles()["DisabledStyle"][1]; }if(a!=""&&!this._compareStyles(this._textBoxElement.className,a)){this._textBoxElement.className=a; }if(a==""&&this._textBoxElement.className&&this._textBoxElement.className==""){this._textBoxElement.removeAttribute("class"); }},_compareStyles:function(){if(arguments.length>=2){var a=arguments[0].replace(/ /g,"").replace(/;/g,""); var b=arguments[1].replace(/ /g,"").replace(/;/g,""); return a===b; }return false; },updateCssText:function(c){var a=c.split(";"); var d; var f=""; for(d=0; d0){this.selectText(0,this._textBoxElement.value.length); return true; }return false; },get_value:function(){return this._value; },get_valueAsString:function(){if(this._value){return this._value.toString(); }else{return""; }},_setNewValue:function(a){this._holdsValidValue=this._setHiddenValue(a)||this._holdsValidValue; this._triggerDomEvent("change",this._textBoxElement); if(this._holdsValidValue){this.set_displayValue(this._constructDisplayText(this._value)); this.raise_valueChanged(this.get_editValue(),this._initialValueAsText); this.updateCssClass(); }this._initialValueAsText=this.get_editValue(); },set_value:function(a){var b=new Telerik.Web.UI.InputValueChangingEventArgs(a,this._initialValueAsText); this.raise_valueChanging(b); if(b.get_cancel()==true){this._SetValue(this._initialValueAsText); return false; }if(b.get_newValue()){a=b.get_newValue(); }this._setNewValue(a); },get_displayValue:function(){return this._displayText; },set_displayValue:function(a){this._displayText=a; this.updateDisplayValue(); },get_editValue:function(){return this._text; },set_caretPosition:function(a){if(this._textBoxElement.tagName.toLowerCase()=="textarea"&&this._textBoxElement.value.length0&&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 f=0; if(document.defaultView&&document.defaultView.getComputedStyle){f=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")){f=parseInt(this._textBoxElement.currentStyle.borderLeftWidth)+parseInt(this._textBoxElement.currentStyle.paddingLeft)+parseInt(this._textBoxElement.currentStyle.paddingRight)+parseInt(this._textBoxElement.currentStyle.borderRightWidth); }}}var g=parseInt(this._textBoxElement.style.width)-f; if(f==0||g<=0){return; }this._textBoxElement.style.width=g+"px"; var c=""; var a=this._originalTextBoxCssText.split(";"); for(var b=0; b0){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||$telerik.isIE8)&&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; b0){if($telerik.isSafari){var h=this; window.setTimeout(function(){h._textBoxElement.value=h._textBoxElement.value.substr(0,h._maxLength); },1); }else{if(!f){var f=window.event; }var d=true; var g=""; try{g=window.clipboardData.getData("Text"); }catch(f){d=false; }if(d&&g!=""){if(f.preventDefault){f.preventDefault(); }var c=this._textBoxElement.document.selection.createRange(); var b=this._maxLength-this._textBoxElement.value.length+c.text.length; var a=this._escapeNewLineChars(window.clipboardData.getData("Text"),"%0A").substr(0,b); c.text=a; }else{var h=this; window.setTimeout(function(){h._textBoxElement.value=h._textBoxElement.value.substr(0,h._maxLength); },1); }}}},_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._onTextBoxDragEnterDelegate=Function.createDelegate(this,this._onTextBoxDragEnterHandler); this._onTextBoxDragLeaveDelegate=Function.createDelegate(this,this._onTextBoxDragLeaveHandler); this._onTextBoxDragDropDelegate=Function.createDelegate(this,this._onTextBoxDragDropHandler); $addHandler(this._textBoxElement,"mouseout",this._onTextBoxMouseOutDelegate); $addHandler(this._textBoxElement,"mouseover",this._onTextBoxMouseOverDelegate); $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&&Sys.Browser.version<3.5){$addHandler(this._textBoxElement,"dragdrop",this._onTextBoxDragDropDelegate); }else{$addHandler(this._textBoxElement,"drop",this._onTextBoxDragDropDelegate); }if(!$telerik.isIE){if((!$telerik.isSafari2&&$telerik.isSafari)||$telerik.isOpera){$addHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); }else{$addHandler(this._textBoxElement,"DOMMouseScroll",this._onTextBoxMouseWheelDelegate); }}else{$addHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); }},_onTextBoxMouseUpHandler:function(a){if(($telerik.isSafari||$telerik.isFirefox)&&this._allowApplySelection){this._allowApplySelection=false; this._updateSelectionOnFocus(); if(this.get_inputType&&this.get_inputType()!=Telerik.Web.UI.InputType.Text){return; }a.preventDefault(); a.stopPropagation(); }},_cancelKeyPressEventIfMaxLengthReached:function(f){var a=this._escapeNewLineChars(this._textBoxElement.value," "); var c=this._maxLength; if(c>0&&a.length>=c&&this._isNormalChar(f)){var b=false; if(document.selection){if(document.selection.createRange().text){b=true; }}else{var d=this.get_caretPosition(); if(d[0]||d[1]){b=true; }}if(!b){f.stopPropagation(); f.preventDefault(); return false; }}},_onTextBoxKeyPressHandler:function(c){this._isEnterPressed=false; var b=new Telerik.Web.UI.InputKeyPressEventArgs(c,c.charCode,String.fromCharCode(c.charCode)); this.raise_keyPress(b); if(b.get_cancel()){c.stopPropagation(); c.preventDefault(); return false; }if((c.charCode==13)&&!this.isMultiLine()){var a=this._textBoxElement.value; this._isEnterPressed=true; this.set_value(a); this._isEnterPressed=false; if(this.get_autoPostBack()){c.stopPropagation(); c.preventDefault(); return false; }return true; }if(this.isMultiLine()){return(this._cancelKeyPressEventIfMaxLengthReached(c)); }},_onTextBoxKeyUpHandler:function(a){},_onTextBoxBlurHandler:function(b){this._focused=false; var a=this._textBoxElement.value; if(this._initialValueAsText+""!==a){this.set_value(a); }else{this.updateDisplayValue(); this.updateCssClass(); }this.raise_blur(Sys.EventArgs.Empty); },_onTextBoxFocusHandler:function(b){if(!this.isReadOnly()){this._allowApplySelection=true; this._updateStateOnFocus(); }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()); }},_updateStateOnFocus:function(){if(this._isDropped){this._updateHiddenValue(); this._isDropped=false; }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(a){if(a.keyCode==27&&!$telerik.isIE){var b=this; window.setTimeout(function(){b.set_textBoxValue(b.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._isDropped=true; if($telerik.isFirefox){var b=this; window.setTimeout(function(){b._textBoxElement.focus(); },1); }},_onFormResetHandler:function(b){var a=this._constructValueFromInitialText(this._originalInitialValueAsText); this._setHiddenValue(a); this._initialValueAsText=this._text; this.set_displayValue(this._constructDisplayText(this._value)); this.updateCssClass(); },_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 e=Math.abs(this._textBoxElement.createTextRange().moveEnd("character",-10000000)); var d=document.body.createTextRange(); d.moveToElementText(this._textBoxElement); var b=Math.abs(d.moveStart("character",-10000000)); var c=Math.abs(d.moveEnd("character",-10000000)); if(c-e==b){a-=b; }return a; },_SetValue:function(a){var b=this._setHiddenValue(a); if(typeof(b)=="undefined"||b==true){this.set_textBoxValue(this.get_editValue()); }},_triggerDomEvent:function(b,a){if(!b||b==""||!a){return; }if(b=="change"){this._textBoxElement.RadInputChangeFired=true; }if(a.fireEvent&&document.createEventObject){var c=document.createEventObject(); a.fireEvent(String.format("on{0}",b),c); }else{if(a.dispatchEvent){var d=true; var c=document.createEvent("HTMLEvents"); c.initEvent(b,d,true); a.dispatchEvent(c); }}if(b=="change"){this._textBoxElement.RadInputChangeFired=false; }},_updateSelectionOnFocus:function(){if(!this._textBoxElement.value){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){var a=this._textBoxElement.value.replace(/\r/g,"").length; if(a!=this.get_caretPosition()){this.set_caretPosition(a); }}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==true)||(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 b=this; if((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){this._textBoxElement.selectionStart=b._selectionStart; this._textBoxElement.selectionEnd=b._selectionEnd; return; }try{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(); }catch(c){var a=this; window.setTimeout(function(){document.body.focus(); a._textBoxElement.select(); sel=document.selection.createRange(); sel.collapse(); sel.moveStart("character",a._selectionStart); sel.collapse(); sel.moveEnd("character",a._selectionEnd-a._selectionStart); sel.select(); },1); }},_invalidate:function(){if(this._holdsValidValue){this._holdsValidValue=false; this._initialValueAsText=""; this._displayText=""; this._clearHiddenValue(); return false; }},_clearHiddenValue:function(){var a=this._errorHandlingCanceled; this._errorHandlingCanceled=true; this._setHiddenValue(""); this._errorHandlingCanceled=a; },_handleWheel:function(a){},_setHiddenValue:function(a){if(a){a=a.toString(); }else{a=""; }if(a==this._value){return false; }else{this._value=a; this._text=this._constructEditText(a); this.set_validationText(this._constructValidationText(a)); this.updateClientState(); return true; }},get_validationText:function(a){return this._validationText; },set_validationText:function(a){this._validationText=a; this._textBoxElement.RadInputValidationValue=a; },_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)||a.ctrlKey)||($telerik.isOpera&&a.rawEvent.which==0)||($telerik.isSafari&&(a.charCode60000))){return false; }return true; },_constructEditText:function(a){return a; },_constructDisplayText:function(a){return a; },_constructValidationText:function(a){return a; },_constructValueFromInitialText:function(a){return a; },_canAutoPostBackAfterValidation:function(){if(!this.get_causesValidation()||!Page_ValidationActive){return true; }return Page_ClientValidate(this.get_validationGroup()); },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()){if(!this._isEnterPressed){return false; }}var d=false; if(typeof(b)!="undefined"&&b!=null&&typeof(a)!="undefined"&&a!=null){if(b.toString()!=a.toString()){var c=new Telerik.Web.UI.InputValueChangedEventArgs(b,a); this.raiseEvent("valueChanged",c); d=!c.get_cancel(); }else{d=this._isEnterPressed; }}if(this.get_autoPostBack()&&d&&this._canAutoPostBackAfterValidation()){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(); if(this.get_enableAriaSupport()){this._applyAriaStateChange("invalid",true); }var d=this._isIncrementing?true:false; var b=this; var a=function(){b._invalid=false; b.updateCssClass(d); if(b.get_enableAriaSupport()){b._applyAriaStateChange("invalid",false); }}; setTimeout(function(){a(); },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(ValidatorGetValue)=="function"&&typeof(ValidatorGetValue_Original)=="undefined"){ValidatorGetValue_Original=ValidatorGetValue; ValidatorGetValue=function(a){var b=document.getElementById(a); if(typeof(b.RadInputValidationValue)=="string"){return b.RadInputValidationValue; }else{return ValidatorGetValue_Original(a); }}; }if(typeof(ValidatorOnChange)=="function"&&typeof(ValidatorOnChange_Original)=="undefined"){ValidatorOnChange_Original=ValidatorOnChange; ValidatorOnChange=function(b){b=b||window.event; var a; if((typeof(b.srcElement)!="undefined")&&(b.srcElement!=null)){a=b.srcElement; }else{a=b.target; }if(typeof(a.RadInputValidationValue)!="string"||(typeof(a.RadInputChangeFired)=="boolean"&&a.RadInputChangeFired)){return ValidatorOnChange_Original(b); }}; }function ValidatedTextBoxOnKeyPress(b){if(b.keyCode==13){ValidatorOnChange(b); var a; if((typeof(b.srcElement)!="undefined")&&(b.srcElement!=null)){a=b.srcElement; }else{a=b.target; }if(typeof(a.RadInputValidationValue)!="string"){return AllValidatorsValid(a.Validators); }}return true; }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); Telerik.Web.UI.InputType=function(){}; Telerik.Web.UI.InputType.prototype={Text:0,Date:1,DateTime:2,Number:3,Time:4}; Telerik.Web.UI.InputType.registerEnum("Telerik.Web.UI.InputType",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(d,a,c,b){Telerik.Web.UI.NumericInputErrorEventArgs.initializeBase(this,[d,a]); this._keyCode=c; 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(c,b,a,d){Telerik.Web.UI.InputManagerKeyPressEventArgs.initializeBase(this,[c,b,a]); this._targetInput=d; }; 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(e,a,c,b,d){Telerik.Web.UI.NumericInputManagerErrorEventArgs.initializeBase(this,[e,a,c,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.Web.UI.PasswordStrengthCalculatingEventArgs=function(c,b,a){Telerik.Web.UI.PasswordStrengthCalculatingEventArgs.initializeBase(this); this._passwordText=c; this._strengthScore=b; this._indicatorText=a; }; Telerik.Web.UI.PasswordStrengthCalculatingEventArgs.prototype={get_passwordText:function(){return this._passwordText; },get_strengthScore:function(){return this._strengthScore; },set_strengthScore:function(a){if(typeof a=="number"){a=Math.ceil(a); if(a>100){a=100; }if(a<0){a=0; }this._strengthScore=a; }},set_indicatorText:function(a){this._indicatorText=a; }}; Telerik.Web.UI.PasswordStrengthCalculatingEventArgs.registerClass("Telerik.Web.UI.PasswordStrengthCalculatingEventArgs",Sys.EventArgs); $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; this._inputType=Telerik.Web.UI.InputType.Text; this._passwordSettings=null; }; Telerik.Web.UI.RadTextBox.prototype={initialize:function(){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"initialize"); if(this._passwordSettings!=null){if(this._passwordSettings.ShowIndicator){Telerik.Web.UI.PasswordStrengthChecker.prototype.showStrength(this,this._textBoxElement,this._passwordSettings); }}},dispose:function(){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"dispose"); },_onTextBoxMouseWheelHandler:function(a){return true; },_onTextBoxKeyUpHandler:function(a){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"_onTextBoxKeyUpHandler",[a]); if(this._passwordSettings!=null){if(this._passwordSettings.ShowIndicator){Telerik.Web.UI.PasswordStrengthChecker.prototype.showStrength(this,this._textBoxElement,this._passwordSettings); }}},get_inputType:function(){return this._inputType; },set_inputType:function(a){if(this._inputType!==a){this._inputType=a; this.raisePropertyChanged("inputType"); }},get_maxLength:function(){return this._maxLength; },set_maxLength:function(a){if(this._maxLength!==a){this._maxLength=a; this.raisePropertyChanged("maxLength"); }},get_passwordSettings:function(){return this._passwordSettings; },set_passwordSettings:function(a){if(this._passwordSettings!==a){this._passwordSettings=a; }},raise_passwordStrengthCalculating:function(a){this.raiseEvent("passwordStrengthCalculating",a); },add_passwordStrengthCalculating:function(a){this.get_events().addHandler("passwordStrengthCalculating",a); },remove_passwordStrengthCalculating:function(a){this.get_events().removeHandler("passwordStrengthCalculating",a); }}; Telerik.Web.UI.RadTextBox.registerClass("Telerik.Web.UI.RadTextBox",Telerik.Web.UI.RadInputControl);