(function(){var scriptName="ExtendedMaskedEdit";function execute(){var M="string",f="undefined",L="YDM",K="YMD",J="MYD",I="DYM",H="Y",G="D",F="DMY",E="9999",u="M",D=10,C=" ",B="g",A=")",z="(\\",q="px",p="DivMaskedEditTip_",t="0",s="+-",o="-",m="change",l="focus",k="keypress",j="keydown",i="mouseover",h="mousemove",g="mouseout",r=null,y=-1,n="MDY",x=false,w=true,v="";Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.MaskedEditBehavior=function(c){var a=this;Sys.Extended.UI.MaskedEditBehavior.initializeBase(a,[c]);a._Mask=v;a._MaskType=Sys.Extended.UI.MaskedEditType.None;a._Filtered=v;a._PromptChar="_";a._InputDirection=Sys.Extended.UI.MaskedEditInputDirections.LeftToRight;a._MessageValidatorTip=w;a._ShowMessageErrorFloat=x;a._CssMessageErrorFloat=v;a._AutoComplete=w;a._AutoCompleteValue=v;a._ClearTextOnInvalid=x;a._ClearMaskOnLostfocus=w;a._AcceptAmPm=Sys.Extended.UI.MaskedEditShowSymbol.None;a._AcceptNegative=Sys.Extended.UI.MaskedEditShowSymbol.None;a._DisplayMoney=Sys.Extended.UI.MaskedEditShowSymbol.None;a._OnFocusCssClass="MaskedEditFocus";a._OnInvalidCssClass="MaskedEditError";a._OnFocusCssNegative="MaskedEditFocusNegative";a._OnBlurCssNegative="MaskedEditBlurNegative";a._CultureName=Sys.CultureInfo.CurrentCulture.name;a._UserDateFormat=Sys.Extended.UI.MaskedEditUserDateFormat.None;a._UserTimeFormat=Sys.Extended.UI.MaskedEditUserTimeFormat.None;a._CultureDatePlaceholder=Sys.CultureInfo.CurrentCulture.dateTimeFormat.DateSeparator;a._CultureTimePlaceholder=Sys.CultureInfo.CurrentCulture.dateTimeFormat.TimeSeparator;a._CultureDecimalPlaceholder=Sys.CultureInfo.CurrentCulture.numberFormat.NumberDecimalSeparator;a._CultureThousandsPlaceholder=Sys.CultureInfo.CurrentCulture.numberFormat.NumberGroupSeparator;a._CultureDateFormat=n;var b=Sys.CultureInfo.CurrentCulture.dateTimeFormat.ShortDatePattern.split(a._CultureDatePlaceholder);if(b.length>=3)a._CultureDateFormat=b[0].substr(0,1).toUpperCase()+b[1].substr(0,1).toUpperCase()+b[2].substr(0,1).toUpperCase();a._CultureCurrencySymbolPlaceholder=Sys.CultureInfo.CurrentCulture.numberFormat.CurrencySymbol;a._CultureAMPMPlaceholder=Sys.CultureInfo.CurrentCulture.dateTimeFormat.PMDesignator+";"+Sys.CultureInfo.CurrentCulture.dateTimeFormat.PMDesignator;a._AMPMPlaceholderSeparator=";";a._Century=1900;a._AllowCopyPaste=w;a._ClipboardText=Sys.Extended.UI.Resources&&Sys.Extended.UI.Resources.Shared_BrowserSecurityPreventsPaste||"Your browser security settings don't permit the automatic execution of paste operations. Please use the keyboard shortcut Ctrl+V instead.";a._CharsEditMask="9L$CAN?";a._CharsSpecialMask="/:.,";a._MaskConv=v;a._EmptyMask=v;a._maskvalid=v;a._DirectSelText=v;a._initialvalue=v;a._LogicSymbol=v;a._LogicTextMask=v;a._LogicMask=v;a._LogicMaskConv=v;a._LogicPrompt=String.fromCharCode(1);a._LogicEscape=String.fromCharCode(2);a._LogicFirstPos=y;a._LogicLastPos=y;a._LogicLastInt=y;a._QtdValidInput=0;a._InLostfocus=x;a._ExternalMessageError=v;a._CurrentMessageError=v;a._FiringOnChange=x;a._ErroOnEnter=x;a._charLetters="ABCDEFGHIJKLMNOPQRSTUVWXYZ";a._charNumbers="0123456789";a._charEscape="\\";a._DelimitStartDup="{";a._DelimitEndDup="}";a._focusHandler=r;a._keypressdown=r;a._keypressHandler=r;a._blurHandler=r;a._mouseOutHandler=r;a._mouseOutHandler=r;a._mouseMoveHandler=r;a._mouseEnterHandler=r;a._changeHandler=r;a._timer=r;a._timerHandler=r;a._SaveSymb=v;a._SaveText=v;a._SavePosi=y;a._SaveMask=v;a._SaveKeyDown=0};Sys.Extended.UI.MaskedEditBehavior.prototype={initialize:function(){var a=this,b=a.get_element();a._InLostfocus=w;Sys.Extended.UI.MaskedEditBehavior.callBaseMethod(a,"initialize");a._createMask();var d=x,e=a.get_ClientState();if(e!=r&&e!=v){d=e=="Focused";a.set_ClientState(r)}if(document.activeElement)if(b.id==document.activeElement.id)d=w;if(a._ShowMessageErrorFloat){a._mouseOutHandler=Function.createDelegate(a,a._onMouseOut);$addHandler(b,g,a._mouseOutHandler);a._mouseMoveHandler=Function.createDelegate(a,a._onMouseMove);$addHandler(b,h,a._mouseMoveHandler);a._mouseEnterHandler=Function.createDelegate(a,a._onMouseover);$addHandler(b,i,a._mouseEnterHandler)}if(!b.readOnly){a._keypressdown=Function.createDelegate(a,a._onKeyPressdown);$addHandler(b,j,a._keypressdown);a._keypressHandler=Function.createDelegate(a,a._onKeyPress);$addHandler(b,k,a._keypressHandler)}a._focusHandler=Function.createDelegate(a,a._onFocus);$addHandler(b,l,a._focusHandler);a._blurHandler=Function.createDelegate(a,a._onBlur);$addHandler(b,"blur",a._blurHandler);a._changeHandler=Function.createDelegate(a,a._onChange);$addHandler(b,m,a._changeHandler);if(Sys.Browser.agent==Sys.Browser.Opera){a._timerHandler=Function.createDelegate(a,a._OnTimerTicket);a._timer=new Sys.Timer;a._timer.set_enabled(x);a._timer.set_interval(100);a._timer.add_tick(a._timerHandler);a._SaveText=v;a._SavePosi=y;a._timer.set_enabled(w)}var c=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(b);if(a._ClearMaskOnLostfocus)a._InitValue(c.get_Value(),w);else a._InitValue(c.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1),w);if(d)a._onFocus();else{a._ClearMaskOnLostfocus&&c.set_Value(a._getClearMask(c.get_Value()));var f=a._CaptureServerValidators();if(!f)a._OnInvalidCssClass!=v&&a.AddCssClassMaskedEdit(a._OnInvalidCssClass)}},dispose:function(){var a=this,b=a.get_element();if(a._mouseOutHandler){$removeHandler(b,g,a._mouseOutHandler);a._mouseOutHandler=r}if(a._mouseMoveHandler){$removeHandler(b,h,a._mouseMoveHandler);a._mouseMoveHandler=r}if(a._mouseEnterHandler){$removeHandler(b,i,a._mouseEnterHandler);a._mouseEnterHandler=r}if(a._focusHandler){$removeHandler(b,l,a._focusHandler);a._focusHandler=r}if(a._focusHandler){$removeHandler(b,l,a._focusHandler);a._focusHandler=r}if(a._blurHandler){$removeHandler(b,"blur",a._blurHandler);a._blurHandler=r}if(a._changeHandler){$removeHandler(b,m,a._changeHandler);a._changeHandler=r}if(a._keypressdown){$removeHandler(b,j,a._keypressdown);a._keypressdown=r}if(a._keypressHandler){$removeHandler(b,k,a._keypressHandler);a._keypressHandler=r}if(a._timerHandler){a._timer.set_enabled(x);a._timerHandler=r;a._timer.dispose();a._timer=r}Sys.Extended.UI.MaskedEditBehavior.callBaseMethod(a,"dispose")},_OnTimerTicket:function(){var a=this;a._SaveSymb=v;if(a._InLostfocus)return;a._timer.set_enabled(x);var b=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());if(a._SaveText!=v){b.set_Value(a._SaveText);a.setSelectionRange(a._SavePosi,a._SavePosi);a._SaveText=v;a._SavePosi=y;a._SaveMask=b.get_Value()}else{b.get_Value().length!=a._EmptyMask.length&&b.set_Value(a._SaveMask);a._timer.get_interval()!=100&&a._timer.set_interval(100)}a._timer.set_enabled(w)},_onChange:function(){!this._FiringOnChange&&this._onFocus()},_onFocus:function(){var a=this;a._InLostfocus=x;a._RemoveDivToolTip();a._OnFocusCssClass!=v&&a.AddCssClassMaskedEdit(a._OnFocusCssClass);var f=a.get_element(),c=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(f);a._initialvalue=c.get_Value();if(a._ClearMaskOnLostfocus)a._InitValue(c.get_Value(),x);else a._InitValue(c.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1),x);var b=a._getClearMask(),d=x;if(a._MessageValidatorTip&&b==v)d=w;if((a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&a.get_CultureAMPMPlaceholder()!=v&&b==v)a._AcceptAmPm&&a.InsertAMPM(a.get_CultureAMPMPlaceholder().substring(0,1));else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&b!=v)a._LogicSymbol==o&&a._OnFocusCssNegative!=v&&a.AddCssClassMaskedEdit(a._OnFocusCssNegative);if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)if(a._LogicLastInt!=y)a.setSelectionRange(a._LogicLastInt,a._LogicLastInt);else a.setSelectionRange(a._LogicLastPos+1,a._LogicLastPos+1);else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&b!=v){var e=a._getLastEmptyPosition()+1;a.setSelectionRange(e,e)}else a.setSelectionRange(a._LogicFirstPos,a._LogicFirstPos);a.ShowTooltipMessage(x);d&&a.ShowTooltipMessage(w)},_PeforformValidLostFocus:function(e){var a=this,c=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()),b=a._getClearMask(c.get_Value());b==v&&a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._LogicSymbol==o&&a.InsertSignal("+");if(b!=v&&a._AutoComplete&&a._MaskType==Sys.Extended.UI.MaskedEditType.Date)a.AutoFormatDate();else if(b!=v&&a._AutoComplete&&a._MaskType==Sys.Extended.UI.MaskedEditType.Time)a.AutoFormatTime();else if(b!=v&&a._AutoComplete&&a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)a.AutoFormatDateTime();else b!=v&&a._AutoComplete&&a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a.AutoFormatNumber();(a._ClearMaskOnLostfocus&&b!=v||e&&a._ClearMaskOnLostfocus)&&c.set_Value(a._getClearMask(c.get_Value()));a.AddCssClassMaskedEdit(v);a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._LogicSymbol==o&&a._OnBlurCssNegative!=v&&a.AddCssClassMaskedEdit(a._OnBlurCssNegative);a.ShowTooltipMessage(x);a._RemoveDivToolTip();var d=a._CaptureClientsValidators();if(!d){a._OnInvalidCssClass!=v&&a.AddCssClassMaskedEdit(a._OnInvalidCssClass);if(a._ClearTextOnInvalid){a._createMask();c.set_Value(a._EmptyMask)}}return d},_onBlur:function(d){var a=this;a._InLostfocus=w;var b=a._PeforformValidLostFocus(w);if(b){var c=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());!a.get_element().readOnly&&a._initialvalue!=c.get_Value()&&d&&a._fireChanged()}},_fireChanged:function(){this._FiringOnChange=w;var a=this.get_element();if(document.createEventObject)a.fireEvent("onchange");else if(document.createEvent){var b=document.createEvent("HTMLEvents");b.initEvent(m,w,w);a.dispatchEvent(b)}this._FiringOnChange=x},_onKeyPress:function(g){var a=this,e=a._KeyCode(g);if(e==9)return w;if(e==13){var h=a._PeforformValidLostFocus(x);a._ErroOnEnter=x;if(!h)a._ErroOnEnter=w;if(Sys.Browser.agent==Sys.Browser.Opera){var i=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());a._SaveText=i.get_Value();a._SavePosi=a._getCurrentPosition();a._timer.set_enabled(x);a._timer.set_interval(1);a._timer.set_enabled(w)}return h}a._OnFocusCssClass!=v&&a._ErroOnEnter&&a.AddCssClassMaskedEdit(a._OnFocusCssClass);a._ErroOnEnter=x;if(!a._isNormalChar(g,e)){a._ExecuteNav(g,e);return x}var b=a._deleteTextSelection();if(b==y)b=a._getCurrentPosition();var c=String.fromCharCode(e);if(a._MaskType==Sys.Extended.UI.MaskedEditType.Date&&c==a.get_CultureDatePlaceholder())a._AdjustElementDate();else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Time&&c==a.get_CultureTimePlaceholder())a._AdjustElementTime();else if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(c==a.get_CultureTimePlaceholder()||c==a.get_CultureDatePlaceholder()))a._AdjustElementDateTime(c);else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight&&c==a.get_CultureDecimalPlaceholder()&&b==a._LogicLastInt)a._AdjustElementDecimalLTR();else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&c==a.get_CultureDecimalPlaceholder()&&b==a._LogicLastInt)a._AdjustElementDecimalRTL();else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&c==a.get_CultureDecimalPlaceholder()&&b!=a._LogicLastInt)a._MoveDecimalPos();else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight&&c==a.get_CultureThousandsPlaceholder())a._MoveThousandLTR();else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&c==a.get_CultureThousandsPlaceholder())a._MoveThousandRTL();else if((a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&a.get_CultureFirstLettersAMPM().toUpperCase().indexOf(c.toUpperCase())!=y){if(a._AcceptAmPm){a.InsertAMPM(c);a.setSelectionRange(b,b)}}else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&s.indexOf(c)!=y)if(Sys.Browser.agent!=Sys.Browser.Opera){a.InsertSignal(c);a.setSelectionRange(b,b)}else if(a._SaveSymb==v){a.InsertSignal(c);a.setSelectionRange(b,b);a._SaveSymb=c;a._timer.set_enabled(x);a._timer.set_interval(1);a._timer.set_enabled(w)}else a._SaveSymb=v;else{var k=b;b=a._getNextPosition(b);var d=b;if(a._LogicLastInt!=y&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft){if(k==a._LogicLastInt)d=a._getLastEmptyPosition()}else if(b>=a._LogicLastPos+1&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)d=a._getLastEmptyPosition();if(a._processKey(d,c)){a._MessageValidatorTip&&a.ShowTooltipMessage(x);if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight){a._insertContent(c,d);b=a._getNextPosition(d+1)}else if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)if(a._LogicLastInt==y)if(b<a._LogicLastPos+1){a._insertContent(c,d);b=a._getNextPosition(d+1)}else{a._insertContentRight(c);b=a._LogicLastPos+1}else if(k!=a._LogicLastInt){a._insertContent(c,d);b=a._getNextPosition(d+1)}else{var i=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()),f=a._getClearMask(i.get_Value());if(f!=v){var l=f.indexOf(a.get_CultureDecimalPlaceholder());if(l!=y){var j=f.substring(0,l);if(j==t||j=="-0"){a.setSelectionRange(a._LogicLastInt-1,a._LogicLastInt);a._deleteTextSelection();b=a._LogicLastInt;a.setSelectionRange(b,b)}}}if(f==v&&c==t)b=a._LogicLastInt;else{a._insertContentRight(c);b=a._LogicLastInt}}a.setSelectionRange(b,b)}}a._SetCancelEvent(g);return x},_onKeyPressdown:function(b){var a=this;a._InLostfocus&&a._onFocus(b);var c=a._KeyCode(b);if(c==9)return w;if(c==13)return w;if(!a._isNormalChar(b,c))a._ExecuteNav(b,c);else if(Sys.Browser.agent==Sys.Browser.Opera)if(b.rawEvent.shiftKey&&!b.rawEvent.ctrlKey&&!b.rawEvent.altKey&&b.rawEvent.keyCode==45){var d=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());a._SaveText=d.get_Value();a._SavePosi=a._getCurrentPosition();a._timer.set_enabled(x);a._timer.set_interval(1);a._timer.set_enabled(w)}},_onMouseOut:function(){this._RemoveDivToolTip()},_onMouseMove:function(b){var a=this;(a._InLostfocus||a._ErroOnEnter)&&a._ExternalMessageError!=v&&a._ShowDivToolTip(b)},_onMouseover:function(b){var a=this;!$get(p+a.get_element().id)&&a._CaptureServerValidators();(a._InLostfocus||a._ErroOnEnter)&&a._ExternalMessageError!=v&&a._createDivToolTip(b,a._ExternalMessageError)},_ShowDivToolTip:function(d){var a=this,b=$get(p+a.get_element().id);if(!b){a._createDivToolTip(d,a._ExternalMessageError);b=$get(p+a.get_element().id)}var c=a._GetMousePos(d);b.style.left=c.x+1+q;b.style.top=c.y+1+q},_GetMousePos:function(b){var a="number",c=0,d=0;if(typeof window.pageYOffset==a){d=window.pageYOffset;c=window.pageXOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){d=document.body.scrollTop;c=document.body.scrollLeft}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){d=document.documentElement.scrollTop;c=document.documentElement.scrollLeft}var e=0,f=0;if(typeof b.pageX==a){e=b.pageX;f=b.pageY}else if(typeof b.clientX==a){e=b.clientX;f=b.clientY}return {x:e+c,y:f+d}},_RemoveDivToolTip:function(){var a=$get(p+this.get_element().id);a&&document.body.removeChild(a)},_createDivToolTip:function(d,e){var b=this,f=$get(p+b.get_element().id);if(!f){var a,c=b._GetMousePos(d);a=document.createElement("div");a.id=p+b.get_element().id;a.style.position="absolute";a.style.left=c.x+2+q;a.style.top=c.y+2+q;a.style.zIndex=99999;if(b._CssMessageErrorFloat==v){a.style.padding="3px 3px 3px 3px";a.style.border="Solid 1px #000000";a.style.backgroundColor="#FFFFEA";a.style.fontWeight="normal";a.style.fontSize="12px";a.style.fontFamily="Arial"}else a.className=b._CssMessageErrorFloat;a.innerHTML=e;a=document.body.insertBefore(a,document.body.firstChild)}},_ExecuteNav:function(c,d){var a=this;if(c.type==j)if(Sys.Browser.agent==Sys.Browser.InternetExplorer){if((d==86||d==118)&&!c.shiftKey&&c.ctrlKey&&!c.altKey){a._SetCancelEvent(c);a._PasteFromClipBoard();return}if(c.shiftKey&&!c.ctrlKey&&!c.altKey&&c.keyCode==45){a._SetCancelEvent(c);a._PasteFromClipBoard();return}}if(Sys.Browser.agent!=Sys.Browser.InternetExplorer||c.type==k){if(c.rawEvent.shiftKey&&!c.rawEvent.ctrlKey&&!c.rawEvent.altKey&&c.rawEvent.keyCode==45){a._SetCancelEvent(c);a._PasteFromClipBoard();return}if(c.type==k&&(d==86||d==118)&&!c.shiftKey&&c.ctrlKey&&!c.altKey){a._SetCancelEvent(c);a._PasteFromClipBoard();return}}var b;if(Sys.Browser.agent==Sys.Browser.InternetExplorer||c.type==k)if(d==8){a._SetCancelEvent(c);b=a._deleteTextSelection();if(b!=y)a.setSelectionRange(b,b);else{b=a._getCurrentPosition();a._backspace(b);b=a._getPreviousPosition(b-1);a.setSelectionRange(b,b)}var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());a._MessageValidatorTip&&g.get_Value()==a._EmptyMask&&a.ShowTooltipMessage(w);if(Sys.Browser.agent==Sys.Browser.Opera){a._SaveText=g.get_Value();a._SavePosi=b;a._timer.set_enabled(x);a._timer.set_interval(1);a._timer.set_enabled(w)}}else if(d==46||d==127){a._SetCancelEvent(c);var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());b=a._deleteTextSelection();if(b==y){b=a._getCurrentPosition();if(!a._isValidMaskedEditPosition(b))if(b!=a._LogicLastInt&&a._InputDirection!=Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)b=a._getNextPosition(b);a._deleteAtPosition(b,x)}else if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft){var e=a._getClearMask(g.get_Value());if(e!=v){e=e.replace(new RegExp(z+a.get_CultureThousandsPlaceholder()+A,B),v)+v;if(e.substring(e.length-1,e.length)==a.get_CultureDecimalPlaceholder()){e=e.substring(0,e.length-1);a.loadValue(e,a._LogicLastInt)}else a.loadValue(e,a._LogicLastPos)}}a.setSelectionRange(b,b);a._MessageValidatorTip&&g.get_Value()==a._EmptyMask&&a.ShowTooltipMessage(w);if(Sys.Browser.agent==Sys.Browser.Opera){a._SaveText=g.get_Value();a._SavePosi=b;a._timer.set_enabled(x);a._timer.set_interval(1);a._timer.set_enabled(w)}}else if(c.ctrlKey){if(d==39||d==35||d==34){a._DirectSelText="R";if(Sys.Browser.agent==Sys.Browser.Opera)return;a._SetCancelEvent(c);b=a._getCurrentPosition();a.setSelectionRange(b,a._LogicLastPos+1)}else if(d==37||d==36||d==33){a._DirectSelText="L";if(Sys.Browser.agent==Sys.Browser.Opera)return;a._SetCancelEvent(c);b=a._getCurrentPosition();a.setSelectionRange(a._LogicFirstPos,b)}}else if(d==35||d==34){a._DirectSelText="R";if(Sys.Browser.agent==Sys.Browser.Opera)return;a._SetCancelEvent(c);if(c.shiftKey){b=a._getCurrentPosition();a.setSelectionRange(b,a._LogicLastPos+1)}else a.setSelectionRange(a._LogicLastPos+1,a._LogicLastPos+1)}else if(d==36||d==33){a._DirectSelText="L";if(Sys.Browser.agent==Sys.Browser.Opera)return;a._SetCancelEvent(c);if(c.shiftKey){b=a._getCurrentPosition();a.setSelectionRange(a._LogicFirstPos,b)}else a.setSelectionRange(a._LogicFirstPos,a._LogicFirstPos)}else if(d==37){a._DirectSelText="L";if(Sys.Browser.agent==Sys.Browser.Opera)return;a._SetCancelEvent(c);if(c.shiftKey){var f=a._GetBoundSelection();if(f){if(f.left>a._LogicFirstPos)f.left--;a.setSelectionRange(f.left,f.right)}else{var h=a._getCurrentPosition();h>a._LogicFirstPos&&a.setSelectionRange(h-1,h)}}else{b=a._getCurrentPosition()-1;if(b<a._LogicFirstPos)b=a._LogicFirstPos;a.setSelectionRange(b,b)}if(Sys.Browser.agent==Sys.Browser.Opera){var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());a._SaveText=g.get_Value();a._SavePosi=b;a._timer.set_enabled(x);a._timer.set_interval(1);a._timer.set_enabled(w)}}else if(d==39){a._DirectSelText="R";if(Sys.Browser.agent==Sys.Browser.Opera)return;a._SetCancelEvent(c);if(c.shiftKey){var f=a._GetBoundSelection();if(f){if(f.right<a._LogicLastPos+1)f.right++;a.setSelectionRange(f.left,f.right)}else{h=a._getCurrentPosition();h<a._LogicLastPos+1&&a.setSelectionRange(h,h+1)}}else{b=a._getCurrentPosition()+1;if(b>a._LogicLastPos+1)b=a._LogicLastPos+1;a.setSelectionRange(b,b)}if(Sys.Browser.agent==Sys.Browser.Opera){var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());a._SaveText=g.get_Value();a._SavePosi=b;a._timer.set_enabled(x);a._timer.set_interval(1);a._timer.set_enabled(w)}}else if(d==27){a._SetCancelEvent(c);var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());if(a._EmptyMask==a._initialvalue)g.set_Value(v);else g.set_Value(a._initialvalue);a._onFocus()}a._SetCancelEvent(c)},_backspace:function(a){var b=this,c=x;if(a>b._LogicFirstPos){var d=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(b.get_element()),e=d.get_Value();a=b._getPreviousPosition(a-1);b._deleteAtPosition(a,w);c=w}return c},_deleteAtPosition:function(g,u){var a=this,p=x,o=a._LogicLastPos+1;if(a._LogicLastInt!=y&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)o=a._LogicLastInt;var k=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());if(u==x&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&g==o){var c=a._getClearMask(k.get_Value());if(c!=v){p=w;c=c.replace(new RegExp(z+a.get_CultureThousandsPlaceholder()+A,B),v)+v;if(c.substring(c.length-1,c.length)==a.get_CultureDecimalPlaceholder())c=c.substring(0,c.length-1);var i=c.split(a.get_CultureDecimalPlaceholder());if(a._LogicLastInt!=y&&i[0]!=v){i[0]=i[0].substring(0,i[0].length-1);c=i[0];if(i.length=2)c+=a.get_CultureDecimalPlaceholder()+i[1]}else c=c.substring(0,c.length-1);c+=a._LogicSymbol;a.loadValue(c,o)}}else{var b=k.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1),d=a._LogicTextMask.substring(a._LogicFirstPos,a._LogicLastPos+1),h=0,l=g-a._LogicFirstPos;if(a._isValidMaskedEditPosition(g)){p=w;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){var f=b.split(C),s=g-a._LogicFirstPos;if(s>f[0].length){b=f[1];h=f[0].length+1;d=d.substring(h);l-=h}else{b=f[0];d=d.substring(0,f[0].length)}}var m=b.substring(l+1),n=d.substring(l+1);b=b.substring(0,l)+a._PromptChar;d=d.substring(0,l)+a._LogicPrompt;for(var e=0;e<parseInt(m.length,D);e++)if(a._isValidMaskedEditPosition(g+1+e)){b+=a._PromptChar;d+=a._LogicPrompt}else{b+=m.substring(e,e+1);d+=n.substring(e,e+1)}var j=a._getNextPosition(g);for(e=0;e<parseInt(m.length,D);e++)if(a._isValidMaskedEditPosition(g+1+e)&&n.substring(e,e+1)!=a._LogicPrompt){b=b.substring(0,j-a._LogicFirstPos-h)+m.substring(e,e+1)+b.substring(j+1-a._LogicFirstPos-h);d=d.substring(0,j-a._LogicFirstPos-h)+n.substring(e,e+1)+d.substring(j+1-a._LogicFirstPos-h);j=a._getNextPosition(j+1)}if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){var t=k.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1),r=a._LogicTextMask.substring(a._LogicFirstPos,a._LogicLastPos+1),f=t.split(C),s=g-a._LogicFirstPos;if(s>f[0].length){b=f[0]+C+b;d=r.substring(0,h)+d}else{b=b+C+f[1];d=d+r.substring(f[0].length)}}var q=k.get_Value();b=q.substring(0,a._LogicFirstPos)+b+q.substring(a._LogicLastPos+1);a._LogicTextMask=a._LogicTextMask.substring(0,a._LogicFirstPos)+d+a._LogicTextMask.substring(a._LogicLastPos+1);k.set_Value(b)}}return p},_ShowModalClipBoardInput:function(){var a=prompt(this._ClipboardText,v);return a},_PasteFromClipBoard:function(){var a=this,e=r,b,p=y,o=y;if(Sys.Browser.agent==Sys.Browser.InternetExplorer)e=window.clipboardData.getData("Text");else{var i=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()),k=i.get_Value(),f=a._GetBoundSelection(),b=a._getCurrentPosition(),l=a._AutoComplete,n=a._ClearTextOnInvalid,m=a._ClearMaskOnLostfocus,q=a._DirectSelText;a._AutoComplete=x;a._ClearTextOnInvalid=x;a._ClearMaskOnLostfocus=x;e=a._ShowModalClipBoardInput();a._AutoComplete=l;a._ClearTextOnInvalid=n;a._ClearMaskOnLostfocus=m;i.set_Value(k);if(f)a.setSelectionRange(f.left,f.right);else a.setSelectionRange(b,b)}if(e==r||e==v)return;if(e.length>a._maskvalid.length)e=e.substring(0,a._maskvalid.length);b=a._deleteTextSelection();if(b==y){b=a._getCurrentPosition();if(f)b=f.left}a.setSelectionRange(b,b);var h=x;if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&a._LogicLastInt!=y)h=w;for(var g=0,g=0;g<e.length;g++){var d=e.substring(g,g+1),c=b;if(h)c=a._getLastEmptyPosition();if((a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&a.get_CultureFirstLettersAMPM().toUpperCase().indexOf(d.toUpperCase())!=y){if(a._AcceptAmPm){a.InsertAMPM(d);a.setSelectionRange(b,b)}}else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&s.indexOf(d)!=y){a.InsertSignal(d);a.setSelectionRange(b,b)}else{var j=b;b=a._getNextPosition(b);var c=b;if(a._LogicLastInt!=y&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft){if(j==a._LogicLastInt)c=a._getLastEmptyPosition()}else if(b>=a._LogicLastPos+1&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)c=a._getLastEmptyPosition();if(a._processKey(c,d)){a._MessageValidatorTip&&a.ShowTooltipMessage(x);if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight){a._insertContent(d,c);b=a._getNextPosition(c+1)}else if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)if(a._LogicLastInt==y)if(b<a._LogicLastPos+1){a._insertContent(d,c);b=a._getNextPosition(c+1)}else{a._insertContentRight(d);b=a._LogicLastPos+1}else if(j!=a._LogicLastInt){a._insertContent(d,c);b=a._getNextPosition(c+1)}else{a._insertContentRight(d);b=a._LogicLastInt}a.setSelectionRange(b,b)}}}h&&a.setSelectionRange(a._LogicLastInt,a._LogicLastInt)},_MoveDecimalPos:function(){var b=this,f=b.get_element(),d=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(f),a=b._LogicFirstPos,e=b._LogicLastPos,c=y;while(a<e){if(d.get_Value().substring(a,a+1)==b.get_CultureDecimalPlaceholder()){c=a;break}a++}if(c==y)return;b.setSelectionRange(c,c)},_MoveThousandLTR:function(){var b=this,g=b.get_element(),e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(g),f=b._getCurrentPosition(),d=b._LogicLastPos,a=f+1,c=y;while(a<d){if(e.get_Value().substring(a,a+1)==b.get_CultureThousandsPlaceholder()){c=a;break}a++}if(c==y){var a=0;d=f;while(a<d){if(e.get_Value().substring(a,a+1)==b.get_CultureThousandsPlaceholder()){c=a;break}a++}if(c==y)return}b.setSelectionRange(c,c)},_MoveThousandRTL:function(){var b=this,g=b.get_element(),e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(g),f=b._getCurrentPosition(),d=b._LogicFirstPos,a=f-1,c=y;while(a>d){if(e.get_Value().substring(a,a+1)==b.get_CultureThousandsPlaceholder()){c=a;break}a--}if(c==y){a=b._LogicLastPos;d=f;while(a>d){if(e.get_Value().substring(a,a+1)==b.get_CultureThousandsPlaceholder()){c=a;break}a--}if(c==y)return}b.setSelectionRange(c,c)},_AdjustElementDecimalLTR:function(){var a=this,j=a.get_element(),e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(j),g=a._getCurrentPosition();if(e.get_Value().substring(g).indexOf(a.get_CultureDecimalPlaceholder())==y)return;var f=e.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1),c=f.indexOf(a.get_CultureDecimalPlaceholder());if(c==y)return;var b,d=a._getClearMask(e.get_Value());if(d!=v){d=d.replace(new RegExp(z+a.get_CultureThousandsPlaceholder()+A,B),v)+v;b=d.split(a.get_CultureDecimalPlaceholder())}else b=a.get_CultureDecimalPlaceholder().split(a.get_CultureDecimalPlaceholder());if(b[0]==v)b[0]=t;var i=f.length-c-1;while(b[1].length<i)b[1]+=t;var h=a._InputDirection;a._InputDirection=Sys.Extended.UI.MaskedEditInputDirections.RightToLeft;a.loadValue(b[0]+a.get_CultureDecimalPlaceholder()+b[1],a._LogicLastPos);a._InputDirection=h;c+=a._LogicFirstPos+1;a.setSelectionRange(c,c)},_AdjustElementDecimalRTL:function(){var a=this,e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()),f=e.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1),c=f.indexOf(a.get_CultureDecimalPlaceholder());if(c==y)return;var g=a._getCurrentPosition();if(c+a._LogicFirstPos>=g){a._AdjustElementDecimalLTR();return}var b,d=a._getClearMask(e.get_Value());if(d!=v){d=d.replace(new RegExp(z+a.get_CultureThousandsPlaceholder()+A,B),v)+v;b=d.split(a.get_CultureDecimalPlaceholder())}else b=a.get_CultureDecimalPlaceholder().split(a.get_CultureDecimalPlaceholder());if(b[0]==v)b[0]=t;var i=f.length-c-1;while(b[1].length<i)b[1]+=t;var h=a._InputDirection;a._InputDirection=Sys.Extended.UI.MaskedEditInputDirections.RightToLeft;a.loadValue(b[0]+a.get_CultureDecimalPlaceholder()+b[1],a._LogicLastPos);a._InputDirection=h;c+=a._LogicFirstPos+1;a.setSelectionRange(c,c)},_AdjustTime:function(a,d){for(var c=w,b=0;b<parseInt(a.length,D);b++)if(a.substring(b,b+1)!=this._PromptChar)c=x;if(c)return d;var e=a.length;a=a.replace(new RegExp(z+this._PromptChar+A,B),v)+v;while(a.length<e)a=t+a;return a},_AdjustElementTime:function(){var a=this,l=a.get_element(),k=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(l),e=v,g=a._getCurrentPosition()-a._LogicFirstPos,h=a._maskvalid,b=g+a._LogicFirstPos,c=0;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){c=h.split(C)[0].length+1;if(g<c){b=c+a._LogicFirstPos;a.setSelectionRange(b,b);return}h=h.split(C)[1];g-=c}h=h.split(":");if(g<=1){e="H";b=3+a._LogicFirstPos+c}else if(g>=2&&g<=4&&h.length==2){e=u;b=c+a._LogicFirstPos}else if(g>=2&&g<=4&&h.length==3){e=u;b=6+a._LogicFirstPos+c}else if(h.length==3){e="S";b=c+a._LogicFirstPos}if(e==v)return;var i=k.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1);if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)i=i.split(C)[1];var f=i.split(a.get_CultureTimePlaceholder()),j=a._GetTimeElementText(e),d;if(e=="H"){d=j+a.get_CultureTimePlaceholder()+f[1];if(f.length==3)d+=a.get_CultureTimePlaceholder()+f[2]}else if(e==u){d=f[0]+a.get_CultureTimePlaceholder()+j;if(f.length==3)d+=a.get_CultureTimePlaceholder()+f[2]}else if(e=="S"){d=f[0]+a.get_CultureTimePlaceholder()+f[1];d+=a.get_CultureTimePlaceholder()+j}if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)d=k.get_Value().substring(a._LogicFirstPos,c)+d;a.loadMaskValue(d,a._LogicFirstPos,a._LogicSymbol);a.setSelectionRange(b,b)},_GetTimeElementText:function(e){var c=this,a,d=c._LogicTextMask.substring(c._LogicFirstPos,c._LogicLastPos+1);if(c._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)d=d.substring(c._maskvalid.split(C)[0].length+1);var b=d.split(c.get_CultureTimePlaceholder());b[0]=b[0].replace(new RegExp(z+c._LogicPrompt+A,B),c._PromptChar)+v;a=b[0].replace(new RegExp(z+c._PromptChar+A,B),v)+v;if(a!=v&&a.length<2){a=t+a;b[0]=a}b[1]=b[1].replace(new RegExp(z+c._LogicPrompt+A,B),c._PromptChar)+v;a=b[1].replace(new RegExp(z+c._PromptChar+A,B),v)+v;if(a!=v&&a.length<2){a=t+a;b[1]=a}if(b.length==3){b[2]=b[2].replace(new RegExp(z+c._LogicPrompt+A,B),c._PromptChar)+v;a=b[2].replace(new RegExp(z+c._PromptChar+A,B),v)+v;if(a!=v&&a.length<2){a=t+a;b[2]=a}}if(e=="H")return b[0];else if(e==u)return b[1];return b[2]},_AdjustElementDateTime:function(b){var a=this;b==a.get_CultureDatePlaceholder()&&a._AdjustElementDate();b==a.get_CultureTimePlaceholder()&&a._AdjustElementTime()},_AdjustElementDate:function(){var a=this,l=a.get_element(),j=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(l),h=j.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1);if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)h=h.split(C)[0];var f=h.split(a.get_CultureDatePlaceholder()),d=v,b=a._getCurrentPosition()-a._LogicFirstPos,c=b+a._LogicFirstPos,e=a._maskvalid.indexOf(E)!=y?2:0;if(a.get_CultureDateFormat()==F)if(b<=1){d=G;c=3+a._LogicFirstPos}else if(b>=2&&b<=4){d=u;c=6+a._LogicFirstPos}else{if(b>8+e&&a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){a.setSelectionRange(a._LogicFirstPos,a._LogicFirstPos);return}d=H;c=a._LogicFirstPos}else if(a.get_CultureDateFormat()==n)if(b<=1){d=u;c=3+a._LogicFirstPos}else if(b>=2&&b<=4){d=G;c=6+a._LogicFirstPos}else{if(b>8+e&&a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){a.setSelectionRange(a._LogicFirstPos,a._LogicFirstPos);return}d=H;c=a._LogicFirstPos}else if(a.get_CultureDateFormat()==I)if(b<=1){d=G;c=3+a._LogicFirstPos}else if(b>=2&&b<=4+e){d=H;c=6+e+a._LogicFirstPos}else{d=u;c=a._LogicFirstPos}else if(a.get_CultureDateFormat()==J)if(b<=1){d=u;c=3+a._LogicFirstPos}else if(b>=2&&b<=4+e){d=H;c=6+e+a._LogicFirstPos}else{d=G;c=a._LogicFirstPos}else if(a.get_CultureDateFormat()==K)if(b<=1+e){d=H;c=3+e+a._LogicFirstPos}else if(b>=2+e&&b<=4+e){d=u;c=6+e+a._LogicFirstPos}else{d=G;c=a._LogicFirstPos}else if(a.get_CultureDateFormat()==L)if(b<=1+e){d=H;c=3+e+a._LogicFirstPos}else if(b>=2+e&&b<=4+e){d=G;c=6+e+a._LogicFirstPos}else{d=u;c=a._LogicFirstPos}var k=a._GetDateElementText(d);f[a.get_CultureDateFormat().indexOf(d)]=k;var i=f[0]+a.get_CultureDatePlaceholder()+f[1]+a._CultureDatePlaceholder+f[2];if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){var g=j.get_Value().substring(a._LogicFirstPos,a._LogicLastPos+1);if(g.split(C).length==3)i+=C+g.split(C)[1]+C+g.split(C)[2];else i+=C+g.split(C)[1]}a.loadMaskValue(i,a._LogicFirstPos,a._LogicSymbol);a.setSelectionRange(c,c)},_GetDateElementText:function(e){var a=this,b,c;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){var d=a._LogicTextMask.substring(a._LogicFirstPos,a._LogicLastPos+1).split(C)[0];c=d.split(a.get_CultureDatePlaceholder())}else c=a._LogicTextMask.substring(a._LogicFirstPos,a._LogicLastPos+1).split(a.get_CultureDatePlaceholder());c[a.get_CultureDateFormat().indexOf(G)]=c[a.get_CultureDateFormat().indexOf(G)].replace(new RegExp(z+a._LogicPrompt+A,B),a._PromptChar)+v;b=c[a.get_CultureDateFormat().indexOf(G)].replace(new RegExp(z+a._PromptChar+A,B),v)+v;if(b!=v&&b.length<2){b=t+b;c[a.get_CultureDateFormat().indexOf(G)]=b}c[a.get_CultureDateFormat().indexOf(u)]=c[a.get_CultureDateFormat().indexOf(u)].replace(new RegExp(z+a._LogicPrompt+A,B),a._PromptChar)+v;b=c[a.get_CultureDateFormat().indexOf(u)].replace(new RegExp(z+a._PromptChar+A,B),v)+v;if(b!=v&&b.length<2){b=t+b;c[a.get_CultureDateFormat().indexOf(u)]=b}var f=a._maskvalid.indexOf(E)!=y?w:x;c[a.get_CultureDateFormat().indexOf(H)]=c[a.get_CultureDateFormat().indexOf(H)].replace(new RegExp(z+a._LogicPrompt+A,B),a._PromptChar)+v;b=c[a.get_CultureDateFormat().indexOf(H)].replace(new RegExp(z+a._PromptChar+A,B),v)+v;if(f){if(b!=v&&b.length<4){while(b.length<4)b=t+b;c[a.get_CultureDateFormat().indexOf(H)]=b}}else if(b!=v&&b.length<2){b=t+b;c[a.get_CultureDateFormat().indexOf(H)]=b}return c[a.get_CultureDateFormat().indexOf(e)]},_GetBoundSelection:function(){var c=r,a=this.get_element();if(a.setSelectionRange){if(a.selectionStart!=a.selectionEnd)c={left:parseInt(a.selectionStart,D),right:parseInt(a.selectionEnd,D)}}else if(document.selection){var b=document.selection.createRange();if(b.text!=v){var g=parseInt(b.text.length,D);b.text=String.fromCharCode(3)+b.text;var d=a.createTextRange();d.findText(String.fromCharCode(3));d.select();var f=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a),e=parseInt(f.get_Value().indexOf(String.fromCharCode(3)),D);document.selection.clear();c={left:e,right:e+g}}}return c},_deleteTextSelection:function(){var b=this,a=b.get_element(),h=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a),e=h.get_Value(),f=y,c=y,i=x;if(a.setSelectionRange){if(a.selectionStart!=a.selectionEnd){var m=parseInt(a.selectionStart,D),l=parseInt(a.selectionEnd,D);i=w;f=l-m;c=a.selectionStart;a.selectionEnd=a.selectionStart}}else if(document.selection){var j=document.selection.createRange();if(j.text!=v){i=w;var g=j.text+String.fromCharCode(3);j.text=g;var k=a.createTextRange();k.findText(g);k.select();c=h.get_Value().indexOf(g);document.selection.clear();f=parseInt(g.length,D)-1}}if(i){for(var d=0;d<f;d++)if(b._isValidMaskedEditPosition(c+d)){e=e.substring(0,c+d)+b._PromptChar+e.substring(c+d+1);b._LogicTextMask=b._LogicTextMask.substring(0,c+d)+b._LogicPrompt+b._LogicTextMask.substring(c+d+1)}h.set_Value(e);if(b._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)c+=f}b._DirectSelText=v;return c},_isNormalChar:function(a,d){var c=this,b=w;if(Sys.Browser.agent==Sys.Browser.Opera&&a.type==j)c._SaveKeyDown=d;if(d<32)b=x;else if(Sys.Browser.agent!=Sys.Browser.InternetExplorer||a.type==j)switch(d){case 33:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r)if(a.rawEvent.which==0)b=x;break;case 34:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r)if(a.rawEvent.which==0)b=x;break;case 35:if(Sys.Browser.agent==Sys.Browser.Opera&&a.type==k){if(c._SaveKeyDown==35)b=x}else b=x;break;case 36:if(Sys.Browser.agent==Sys.Browser.Opera&&a.type==k){if(c._SaveKeyDown==36)b=x}else b=x;break;case 37:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r)if(a.rawEvent.which==0)b=x;break;case 38:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r)if(a.rawEvent.which==0)b=x;break;case 39:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r)if(a.rawEvent.which==0)b=x;break;case 40:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r)if(a.rawEvent.which==0)b=x;break;case 45:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r&&Sys.Browser.agent!=Sys.Browser.Opera){if(a.rawEvent.which==0)b=x}else if(Sys.Browser.agent==Sys.Browser.Opera)b=w;else b=x;break;case 86:case 118:if(!a.rawEvent.shiftKey&&a.rawEvent.ctrlKey&&!a.rawEvent.altKey)b=x;break;case 46:if(typeof a.rawEvent.which!=f&&a.rawEvent.which!=r&&Sys.Browser.agent!=Sys.Browser.Opera){if(a.rawEvent.which==0)b=x}else if(Sys.Browser.agent==Sys.Browser.Opera&&a.type==k){if(c._SaveKeyDown==127)b=x}else b=x;break;case 127:b=x}return b},_KeyCode:function(b){var a=0;if(b.keyIdentifier)if(b.charCode==63272)a=46;else if(b.charCode==63302)a=45;else if(b.charCode==63233)a=40;else if(b.charCode==63235)a=39;else if(b.charCode==63232)a=38;else if(b.charCode==63234)a=37;else if(b.charCode==63273)a=36;else if(b.charCode==63275)a=35;else if(b.charCode==63277)a=34;else if(b.charCode==63276)a=33;else if(b.charCode==3)a=13;if(a==0)if(b.charCode)a=b.charCode;if(a==0)a=b.keyCode;return a},_InitValue:function(b,c){var a=this;a._LogicSymbol=v;var e=a.get_element(),d=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(e);d.set_Value(a._EmptyMask);if(b==a._EmptyMask||b==v)a.loadValue(v,a._LogicFirstPos);else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Date&&b!=v)b=a.ConvFmtDate(b,c);else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Time&&b!=v)b=a.ConvFmtTime(b,c);else if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&b!=v)b=a.ConvFmtDateTime(b,c);else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&b!=v)b=a.ConvFmtNumber(b,c);if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight&&b!=v)if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number){a._InputDirection=Sys.Extended.UI.MaskedEditInputDirections.RightToLeft;a.loadValue(b,a._LogicLastPos);a._InputDirection=Sys.Extended.UI.MaskedEditInputDirections.LeftToRight}else a.loadValue(b,a._LogicFirstPos);else a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&b!=v&&a.loadValue(b,a._LogicLastPos);if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number)a._InLostfocus&&a._LogicSymbol==o&&a._OnBlurCssNegative!=v&&a.AddCssClassMaskedEdit(a._OnBlurCssNegative)},loadMaskValue:function(e,c,d){var a=this;a._createMask();var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());g.set_Value(a._EmptyMask);if((a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&a.get_CultureFirstLettersAMPM().toUpperCase().indexOf(d.toUpperCase().substring(0,1))!=y)a._AcceptAmPm&&a.InsertAMPM(d.toUpperCase().substring(0,1));else a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&s.indexOf(d)!=y&&a.InsertSignal(d);for(var b=0,b=0;b<parseInt(e.length,D);b++){var f=e.substring(b+c,b+c+1);a._processKey(c+b,f)&&a._insertContent(f,c+b)}},loadValue:function(f,b){var a=this,c;a._createMask();var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());g.set_Value(a._EmptyMask);if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight)for(c=0;c<parseInt(f.length,D);c++){var d=f.substring(c,c+1);if((a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&a.get_CultureFirstLettersAMPM().toUpperCase().indexOf(d.toUpperCase())!=y)a._AcceptAmPm&&a.InsertAMPM(d);else a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&s.indexOf(d)!=y&&a.InsertSignal(d);if(a._processKey(b,d)){a._insertContent(d,b);b=a._getNextPosition(b+1)}}else if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)if(b==a._LogicLastInt){b=a._getPreviousPosition(b);var e=f.split(a.get_CultureDecimalPlaceholder());for(c=parseInt(e[0].length,D);c>0;c--){var d=e[0].substring(c-1,c);a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&s.indexOf(d)!=y&&a.InsertSignal(d);if(a._processKey(b,d)){a._insertContent(d,b);b=a._getPreviousPosition(b-1)}}if(e.length>1){b=a._getNextPosition(a._LogicLastInt);for(c=0;c<parseInt(e[1].length,D);c++){var d=e[1].substring(c,c+1);a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&s.indexOf(d)!=y&&a.InsertSignal(d);if(a._processKey(b,d)){a._insertContent(d,b);b=a._getNextPosition(b+1)}}}}else for(c=parseInt(f.length,D);c>0;c--){var d=f.substring(c-1,c);a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&s.indexOf(d)!=y&&a.InsertSignal(d);if(a._processKey(b,d)){a._insertContent(d,b);b=a._getPreviousPosition(b-1)}}},AutoFormatNumber:function(){var b=this,a,e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(b.get_element());ValueText=e.get_Value();var d=b._AutoCompleteValue,f=x;for(a=b._LogicFirstPos;a<=b._LogicLastPos;a++)if(b._LogicTextMask.substring(a,a+1)==b._LogicPrompt){var c=t;if(d!=v)c=d.substring(a-b._LogicFirstPos,a+1-b._LogicFirstPos);if(f){b._LogicTextMask=b._LogicTextMask.substring(0,a)+c+b._LogicTextMask.substring(a+1);ValueText=ValueText.substring(0,a)+c+ValueText.substring(a+1)}}else if(b._LogicMask.substring(a,a+1)==b._LogicPrompt&&"123456789".indexOf(b._LogicTextMask.substring(a,a+1))!=y)f=w;e.set_Value(ValueText);return ValueText},AutoFormatTime:function(){var a=this,r=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element());ValueText=r.get_Value();var b=a._AutoCompleteValue;if(b.indexOf(a.get_CultureTimePlaceholder())==y)b=v;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){if(ValueText.split(C).length==3)ValueText=ValueText.split(C)[1]+C+ValueText.split(C)[2];else ValueText=ValueText.split(C)[1];if(b!=v){if(b.indexOf(a.get_CultureDatePlaceholder())==y)b=C+b;if(b.split(C).length==3)b=b.split(C)[1]+C+b.split(C)[2];else b=b.split(C)[1]}}var o=new Date,c=o.getHours().toString();if(c.length<2)c=t+c;if(b!=v)c=b.substring(0,2);var k=x,j=x,l=v,d=v,i=v;if(a.get_CultureAMPMPlaceholder()!=v){var p=a.get_CultureAMPMPlaceholder().split(a._AMPMPlaceholderSeparator);l=p[0];d=p[1];if(b==v){var i=l;if(c>12){c=(parseInt(c,D)-12).toString();if(c.length<2)c=t+c;i=d}}else{i=l;if(b.indexOf(d)!=y)i=d}k=w;if(ValueText.indexOf(d)!=y&&d!=v)j=w;if(!a._AcceptAmPm){i=v;j=x;k=x}else{var q=w;if(ValueText.substring(0,1)!=a._PromptChar||ValueText.substring(1,2)!=a._PromptChar)q=x;if(q&&i!=v){k=w;j=x;if(d==i)j=w}}}var h=o.getMinutes().toString();if(h.length<2)h=t+h;if(b!=v)h=b.substring(3,5);var n="00",e,f;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){e=ValueText.substring(0,2);e=a._AdjustTime(e,c);f=ValueText.substring(3,5);f=a._AdjustTime(f,h)}else{e=ValueText.substring(a._LogicFirstPos,a._LogicFirstPos+2);e=a._AdjustTime(e,c);f=ValueText.substring(a._LogicFirstPos+3,a._LogicFirstPos+5);f=a._AdjustTime(f,h)}var m=a._maskvalid;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)m=m.split(C)[1];if(m=="99:99:99"){if(b!=v)n=b.substring(6);var g;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){g=ValueText.substring(6,8);g=a._AdjustTime(g,n)}else{g=ValueText.substring(a._LogicFirstPos+6,a._LogicFirstPos+8);g=a._AdjustTime(g,n)}ValueText=e+a.get_CultureTimePlaceholder()+f+a.get_CultureTimePlaceholder()+g}else ValueText=e+a.get_CultureTimePlaceholder()+f;if(j)ValueText+=C+d;else if(k)ValueText+=C+l;a._MaskType!=Sys.Extended.UI.MaskedEditType.DateTime&&a.loadValue(ValueText,a._LogicFirstPos);return ValueText},AutoFormatDateTime:function(){var a=this,b=a.AutoFormatDate(),c=a.AutoFormatTime();a.loadValue(b+C+c,a._LogicFirstPos);return b+C+c},AutoFormatDate:function(){var a=this,h=a._GetDateElementText(G).replace(new RegExp(z+a._PromptChar+A,B),v)+v,i=a._GetDateElementText(u).replace(new RegExp(z+a._PromptChar+A,B),v)+v,j=a._GetDateElementText(H).replace(new RegExp(z+a._PromptChar+A,B),v)+v,l=a._maskvalid.indexOf(E)!=y?w:x,f=a._AutoCompleteValue;if(f.indexOf(a.get_CultureDatePlaceholder())==y)f=v;var d,e,c;if(f==v){var k=new Date;d=k.getUTCDate().toString();if(d.length<2)d=t+d;e=(k.getUTCMonth()+1).toString();if(e.length<2)e=t+e;if(l)c=k.getUTCFullYear().toString();else c=c.substring(2)}else{var b;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){if(f.indexOf(a.get_CultureTimePlaceholder())==y)f=f+C;var m=f.split(C)[0];b=m.split(a.get_CultureDatePlaceholder())}else b=f.split(a.get_CultureDatePlaceholder());if(a.get_CultureDateFormat()==F){d=b[0];e=b[1];c=b[2]}else if(a.get_CultureDateFormat()==n){d=b[1];e=b[0];c=b[2]}else if(a.get_CultureDateFormat()==I){d=b[0];e=b[2];c=b[1]}else if(a.get_CultureDateFormat()==J){d=b[2];e=b[0];c=b[1]}else if(a.get_CultureDateFormat()==K){d=b[2];e=b[1];c=b[0]}else if(a.get_CultureDateFormat()==L){d=b[1];e=b[2];c=b[0]}if(d.length<2)d=t+d;if(e.length<2)e=t+e;if(l)while(c.length<4)c=t+c;else while(c.length<2)c=t+c}if(h==v)h=d;if(i==v)i=e;if(j==v)j=c;var g;if(a.get_CultureDateFormat()==F)g=h+a.get_CultureDatePlaceholder()+i+a._CultureDatePlaceholder+j;else if(a.get_CultureDateFormat()==n)g=i+a.get_CultureDatePlaceholder()+h+a._CultureDatePlaceholder+j;else if(a.get_CultureDateFormat()==I)g=h+a.get_CultureDatePlaceholder()+j+a._CultureDatePlaceholder+i;else if(a.get_CultureDateFormat()==J)g=i+a.get_CultureDatePlaceholder()+j+a._CultureDatePlaceholder+h;else if(a.get_CultureDateFormat()==K)g=j+a.get_CultureDatePlaceholder()+i+a._CultureDatePlaceholder+h;else if(a.get_CultureDateFormat()==L)g=j+a.get_CultureDatePlaceholder()+h+a._CultureDatePlaceholder+i;a._MaskType!=Sys.Extended.UI.MaskedEditType.DateTime&&a.loadValue(g,a._LogicFirstPos);return g},ConvFmtNumber:function(a){var b=this;if(b._maskvalid.split(b.get_CultureDecimalPlaceholder()).length==2){if(a.substring(a.length-1,a.length)==b.get_CultureDecimalPlaceholder())a=a.substring(0,a.length-1);if(a.indexOf(b.get_CultureDecimalPlaceholder())==y){a+=b.get_CultureDecimalPlaceholder();for(var d=b._maskvalid,c=0;c<d.length;c++)a+=t;return a}}return a},ConvFmtTime:function(c,p){var a=this,o=0,m=x,n=x,f=v,g=v;if(a.get_CultureAMPMPlaceholder()!=v){f=a.get_CultureAMPMPlaceholder().split(a._AMPMPlaceholderSeparator)[0];g=a.get_CultureAMPMPlaceholder().split(a._AMPMPlaceholderSeparator)[1]}if(p){var l=v,k=v;if(a._CultureAMPMPlaceholder!=v){l=a._CultureAMPMPlaceholder.split(a._AMPMPlaceholderSeparator)[0];k=a._CultureAMPMPlaceholder.split(a._AMPMPlaceholderSeparator)[1]}if(a.get_UserTimeFormat()==Sys.Extended.UI.MaskedEditUserTimeFormat.TwentyFourHour){c=c.replace(new RegExp(z+l+A,B),v);if(c.indexOf(k)!=y)o=12;c=c.replace(new RegExp(z+k+A,B),v)}}if(c.indexOf(f)!=y&&f!=v)m=w;else if(c.indexOf(g)!=y&&g!=v)n=w;if(f!=v)c=c.replace(new RegExp(z+f+A,B),v);if(g!=v)c=c.replace(new RegExp(z+g+A,B),v);c=c.replace(new RegExp(z+C+A,B),v);var b=c.split(a.get_CultureTimePlaceholder()),d=a._maskvalid;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)d=d.split(C)[1];d=d.split(":");if(parseInt(b.length,D)<2||parseInt(b.length,D)>3)return v;var e=parseInt(b[0],D)+o;e=e.toString();if(e.length<d[0].length)while(e.length<d[0].length)e=t+e;b[0]=e;var i=parseInt(b[1],D)+v;if(i.length<d[1].length)while(i.length<d[1].length)i=t+i;b[1]=i;var h=v;if(parseInt(b.length,D)==3){var j=parseInt(b[2],D)+v;if(j.length<d[2].length)while(j.length<d[2].length)j=t+j;b[2]=j;h=b[0]+a.get_CultureTimePlaceholder()+b[1]+a.get_CultureTimePlaceholder()+b[2]}else h=b[0]+a.get_CultureTimePlaceholder()+b[1];if(m)h+=C+f;else if(n)h+=C+g;return h},ConvFmtDateTime:function(b,d){var c=b.split(C)[0],a=b.split(C)[1];if(b.split(C).length==3)a+=C+b.split(C)[2];c=this.ConvFmtDate(c,d);a=this.ConvFmtTime(a,d);return c+C+a},ConvFmtDate:function(h,i){var a=this,f,b;if(i){f=h.split(a.get_CultureDatePlaceholder());b=h.split(a.get_CultureDatePlaceholder());if(a.get_UserDateFormat()!=Sys.Extended.UI.MaskedEditUserDateFormat.None){b[a.get_CultureDateFormat().indexOf(G)]=f[a._CultureDateFormat.indexOf(G)];b[a.get_CultureDateFormat().indexOf(u)]=f[a._CultureDateFormat.indexOf(u)];b[a.get_CultureDateFormat().indexOf(H)]=f[a._CultureDateFormat.indexOf(H)]}}else b=h.split(a.get_CultureDatePlaceholder());var c=a._maskvalid;if(a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)c=c.split(C)[0];c=c.split("/");if(parseInt(b.length,D)!=3)return v;var d=parseInt(b[a.get_CultureDateFormat().indexOf(G)],D)+v;if(d.length<c[a.get_CultureDateFormat().indexOf(G)].length)while(d.length<c[a.get_CultureDateFormat().indexOf(G)].length)d=t+d;b[a.get_CultureDateFormat().indexOf(G)]=d;var e=parseInt(b[a.get_CultureDateFormat().indexOf(u)],D)+v;if(e.length<c[a.get_CultureDateFormat().indexOf(u)].length)while(e.length<c[a.get_CultureDateFormat().indexOf(u)].length)e=t+e;b[a.get_CultureDateFormat().indexOf(u)]=e;var g=parseInt(b[a.get_CultureDateFormat().indexOf(H)],D)+v;while(g.length<c[a.get_CultureDateFormat().indexOf(H)].length)g=t+g;b[a.get_CultureDateFormat().indexOf(H)]=g;return b[0]+a.get_CultureDatePlaceholder()+b[1]+a._CultureDatePlaceholder+b[2]},AddCssClassMaskedEdit:function(c){var a=this,b=a.get_element();Sys.UI.DomElement.removeCssClass(b,a._OnBlurCssNegative);Sys.UI.DomElement.removeCssClass(b,a._OnFocusCssClass);Sys.UI.DomElement.removeCssClass(b,a._OnFocusCssNegative);Sys.UI.DomElement.removeCssClass(b,a._OnInvalidCssClass);c!=v&&Sys.UI.DomElement.addCssClass(b,c)},_SetCancelEvent:function(a){if(typeof a.returnValue!==f)a.returnValue=x;if(typeof a.cancelBubble!==f)a.cancelBubble=w;typeof a.preventDefault!==f&&a.preventDefault();typeof a.stopPropagation!==f&&a.stopPropagation()},_CaptureServerValidators:function(){var e=w,b=this._ExternalMessageError;if(typeof Page_Validators!=f)for(var a=r,d=w,c=0;c<Page_Validators.length;c++){a=Page_Validators[c];if(typeof a.enabled==f||a.enabled!=x)if(a.TargetValidator==this.get_element().id)if(!a.isvalid){if(d){d=x;b=v}if(typeof a.errormessage==M){if(b!=v)b+=", ";b+=a.errormessage}e=x}}this._ExternalMessageError=b;return e},_CaptureClientsValidators:function(){var ret=w,msg=v;this._ExternalMessageError=msg;if(typeof Page_Validators!=f)for(var ctrval=r,i=0;i<Page_Validators.length;i++){ctrval=Page_Validators[i];if(typeof ctrval.enabled==f||ctrval.enabled!=x)if(ctrval.TargetValidator==this.get_element().id)if(typeof ctrval.evaluationfunction=="function"){var crtret=ctrval.evaluationfunction(ctrval);if(!crtret){ret=x;if(typeof ctrval.errormessage==M){if(msg!=v)msg+=", ";msg+=ctrval.errormessage}}}else if(typeof ctrval.evaluationfunction==M){var crtret;eval("crtret = "+ctrval.evaluationfunction+"("+ctrval.id+A);if(!crtret){ret=x;if(typeof ctrval.errormessage==M){if(msg!=v)msg+=", ";msg+=ctrval.errormessage}}}}this._ExternalMessageError=msg;return ret},ShowTooltipMessage:function(d){var b=this;if(typeof Page_Validators==f)return;var e=v;if(!d){e=b._CurrentMessageError;b._CurrentMessageError=v}for(var c=0,a=r,c=0;c<Page_Validators.length;c++){a=Page_Validators[c];if(a.TargetValidator==b.get_element().id&&a.IsMaskedEdit=="true"){if(!d){a.innerHTML=e;if(typeof a.display==M){if(a.display=="None")return;if(a.display=="Dynamic"){a.style.display=a.isvalid?"none":"inline";return}}return}b._CurrentMessageError=a.innerHTML;a.innerHTML=a.TooltipMessage;if(typeof a.display==M){if(a.display=="None")return;if(a.display=="Dynamic"){a.style.display="inline";return}}a.style.visibility="visible";return}}},_insertContent:function(e,b){var c=this,d=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(c.get_element()),a=d.get_Value();a=a.substring(0,b)+e+a.substring(b+1);c._LogicTextMask=c._LogicTextMask.substring(0,b)+e+c._LogicTextMask.substring(b+1);d.set_Value(a)},_insertContentRight:function(l){var a=this,k=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()),c=k.get_Value(),e=a._getLastEmptyPosition();if(e<0)return;var b,g=c.substring(e+1),i=a._LogicTextMask.substring(e+1);c=c.substring(0,e)+a._PromptChar;a._LogicTextMask=a._LogicTextMask.substring(0,e)+a._LogicPrompt;var d;if(a._LogicLastInt!=y&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft){var f=g.split(a.get_CultureDecimalPlaceholder()),j=i.split(a.get_CultureDecimalPlaceholder());for(b=0;b<parseInt(f[0].length,D);b++)if(a._isValidMaskedEditPosition(e+1+b)){c+=a._PromptChar;a._LogicTextMask+=a._LogicPrompt}else{c+=f[0].substring(b,b+1);a._LogicTextMask+=j[0].substring(b,b+1)}if(f.length=2){c+=a.get_CultureDecimalPlaceholder()+f[1];a._LogicTextMask+=a.get_CultureDecimalPlaceholder()+j[1]}d=a._getNextPosition(e);for(b=0;b<parseInt(f[0].length,D);b++)if(a._isValidMaskedEditPosition(e+1+b)&&j[0].substring(b,b+1)!=a._LogicPrompt){c=c.substring(0,d)+f[0].substring(b,b+1)+c.substring(d+1);a._LogicTextMask=a._LogicTextMask.substring(0,d)+j[0].substring(b,b+1)+a._LogicTextMask.substring(d+1);d=a._getNextPosition(d+1)}}else{for(b=0;b<parseInt(g.length,D);b++)if(a._isValidMaskedEditPosition(e+1+b)){c+=a._PromptChar;a._LogicTextMask+=a._LogicPrompt}else{c+=g.substring(b,b+1);a._LogicTextMask+=i.substring(b,b+1)}d=a._getNextPosition(e);for(b=0;b<parseInt(g.length,D);b++)if(a._isValidMaskedEditPosition(e+1+b)&&i.substring(b,b+1)!=a._LogicPrompt){c=c.substring(0,d)+g.substring(b,b+1)+c.substring(d+1);a._LogicTextMask=a._LogicTextMask.substring(0,d)+i.substring(b,b+1)+a._LogicTextMask.substring(d+1);d=a._getNextPosition(d+1)}}var h=0;if(a._LogicLastInt!=y&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)h=a._LogicLastPos-a._LogicLastInt+1;c=c.substring(0,a._LogicLastPos-h)+l+c.substring(a._LogicLastPos-h+1);a._LogicTextMask=a._LogicTextMask.substring(0,a._LogicLastPos-h)+l+a._LogicTextMask.substring(a._LogicLastPos-h+1);k.set_Value(c)},InsertAMPM:function(f){var a=this,e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()),c=e.get_Value(),d=a.get_CultureAMPMPlaceholder().split(a._AMPMPlaceholderSeparator),b=v;if(d.length==2){if(f.toUpperCase()==a.get_CultureFirstLetterAM().toUpperCase())b=d[0];else if(f.toUpperCase()==a.get_CultureFirstLetterPM().toUpperCase())b=d[1];a._LogicSymbol=b}c=c.substring(0,a._LogicLastPos+2)+b+c.substring(a._LogicLastPos+2+b.length);e.set_Value(c)},InsertSignal:function(c){var a=this,d=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(a.get_element()),b=d.get_Value();if(c==o&&a._LogicSymbol==o)c="+";if(c=="+"){c=C;a._LogicSymbol=v;if(!a._InLostfocus&&a._OnFocusCssClass!=v)a.AddCssClassMaskedEdit(a._OnFocusCssClass);else!a._InLostfocus&&a.AddCssClassMaskedEdit(v)}else{a._LogicSymbol=o;!a._InLostfocus&&a._OnFocusCssNegative!=v&&a.AddCssClassMaskedEdit(a._OnFocusCssNegative)}if(a._AcceptNegative==Sys.Extended.UI.MaskedEditShowSymbol.Left)b=b.substring(0,a._LogicFirstPos-1)+c+b.substring(a._LogicFirstPos);else if(a._AcceptNegative==Sys.Extended.UI.MaskedEditShowSymbol.Right)b=b.substring(0,a._LogicLastPos+1)+c+b.substring(a._LogicLastPos+2);d.set_Value(b)},setSelectionRange:function(d,e){var a="character",b=this.get_element();if(b.setSelectionRange)b.setSelectionRange(d,e);else if(b.createTextRange){var c=b.createTextRange();c.collapse(w);c.moveEnd(a,e);c.moveStart(a,d);c.select()}},_getLastEmptyPosition:function(){var a=this,b=a._LogicLastPos;if(a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&a._LogicLastInt!=y){var c=a._getCurrentPosition();if(c<=a._LogicLastInt)b=a._LogicLastInt}while(b>=0&&a._LogicTextMask.substring(b,b+1)!=a._LogicPrompt)b--;return b},_isValidMaskedEditPosition:function(a){return this._LogicMask.substring(a,a+1)==this._LogicPrompt},_getNextPosition:function(a){var b=this;while(!b._isValidMaskedEditPosition(a)&&a<b._LogicLastPos+1)a++;if(a>b._LogicLastPos+1)a=b._LogicLastPos+1;return a},_getPreviousPosition:function(a){var b=this;while(!b._isValidMaskedEditPosition(a)&&a>b._LogicFirstPos)a--;if(a<b._LogicFirstPos)a=b._LogicFirstPos;return a},_getCurrentPosition:function(){var a=this,b=0,d=a.get_element();if(d.setSelectionRange)b=parseInt(d.selectionStart,D);else if(document.selection){var c=document.selection.createRange();if(c.text!=v){var e=v;if(a._DirectSelText=="R")e=c.text+String.fromCharCode(3);else if(a._DirectSelText=="L")e=String.fromCharCode(3)+c.text;c.text=e;a._DirectSelText==v}else{c.text=String.fromCharCode(3);a._DirectSelText==v}var f=d.createTextRange();f.findText(String.fromCharCode(3));f.select();var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(d);b=g.get_Value().indexOf(String.fromCharCode(3));document.selection.clear()}if(b>a._LogicLastPos+1)b=a._LogicLastPos+1;if(b<a._LogicFirstPos)b=a._LogicFirstPos;return b},_processKey:function(a,e){var b=this,d=b._LogicMaskConv,c;if(d.substring(a,a+1)=="9")c=b._charNumbers;else if(d.substring(a,a+1).toUpperCase()=="L")c=b._charLetters+b._charLetters.toLowerCase();else if(d.substring(a,a+1)=="$")c=b._charLetters+b._charLetters.toLowerCase()+C;else if(d.substring(a,a+1).toUpperCase()=="C")c=b._Filtered;else if(d.substring(a,a+1).toUpperCase()=="A")c=b._charLetters+b._charLetters.toLowerCase()+b._Filtered;else if(d.substring(a,a+1).toUpperCase()=="N")c=b._charNumbers+b._Filtered;else if(d.substring(a,a+1)=="?")c=v;else return x;if(c==v)return w;return !c||c.length==0||c.indexOf(e)!=y},_createMask:function(){var a=this;a._MaskConv==v&&a._Mask!=v&&a._convertMask();var c=a._MaskConv,b=0,d=v,e=v,f=x;a._LogicTextMask=v;a._QtdValidInput=0;while(b<parseInt(c.length,D)){if(c.substring(b,b+1)==a._charEscape&&f==x)f=w;else if(a._CharsEditMask.indexOf(c.substring(b,b+1))==y)if(f==w){f=x;d+=c.substring(b,b+1);e+=c.substring(b,b+1);a._LogicTextMask+=a._LogicEscape}else if(a._CharsSpecialMask.indexOf(c.substring(b,b+1))!=y){a._QtdValidInput++;if(c.substring(b,b+1)=="/"){d+=a.get_CultureDatePlaceholder();e+="/";a._LogicTextMask+=a.get_CultureDatePlaceholder()}else if(c.substring(b,b+1)==":"){d+=a.get_CultureTimePlaceholder();e+=":";a._LogicTextMask+=a.get_CultureTimePlaceholder()}else if(c.substring(b,b+1)==","){d+=a.get_CultureThousandsPlaceholder();e+=".";a._LogicTextMask+=a.get_CultureThousandsPlaceholder()}else if(c.substring(b,b+1)=="."){d+=a.get_CultureDecimalPlaceholder();e+=",";a._LogicTextMask+=a.get_CultureDecimalPlaceholder()}}else{d+=c.substring(b,b+1);e+=c.substring(b,b+1);a._LogicTextMask+=c.substring(b,b+1)}else if(f==w){f=x;d+=c.substring(b,b+1);e+=c.substring(b,b+1);a._LogicTextMask+=a._LogicEscape}else{a._QtdValidInput++;d+=a._PromptChar;e+=c.substring(b,b+1);a._LogicTextMask+=a._LogicPrompt}b++}a._LogicFirstPos=y;a._LogicLastPos=y;a._LogicLastInt=y;a._LogicMask=a._LogicTextMask;for(b=0;b<parseInt(a._LogicMask.length,D);b++){if(a._LogicFirstPos==y&&a._LogicMask.substring(b,b+1)==a._LogicPrompt)a._LogicFirstPos=b;if(a._LogicMask.substring(b,b+1)==a._LogicPrompt)a._LogicLastPos=b;if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft)if(a._LogicMask.substring(b,b+1)==a.get_CultureDecimalPlaceholder())a._LogicLastInt=b}a._maskvalid=e.substring(a._LogicFirstPos,a._LogicLastPos+1);a._EmptyMask=d},_getClearMask:function(){var a=this,b=0,c=v,e=0,d=x;while(b<parseInt(a._LogicTextMask.length,D)){if(e<a._QtdValidInput)if(a._isValidMaskedEditPosition(b)&&a._LogicTextMask.substring(b,b+1)!=a._LogicPrompt){if(c==v&&d){c+=t+a.get_CultureDecimalPlaceholder();d=x}c+=a._LogicTextMask.substring(b,b+1);e++}else if(a._LogicTextMask.substring(b,b+1)!=a._LogicPrompt&&a._LogicTextMask.substring(b,b+1)!=a._LogicEscape)if(a._LogicTextMask.substring(b,b+1)==a.get_CultureDatePlaceholder()&&(a._MaskType==Sys.Extended.UI.MaskedEditType.Date||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime))c+=c==v?v:a.get_CultureDatePlaceholder();else if(a._LogicTextMask.substring(b,b+1)==a.get_CultureTimePlaceholder()&&(a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime))c+=c==v?v:a.get_CultureTimePlaceholder();else if(a._LogicTextMask.substring(b,b+1)==C&&a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)c+=c==v?v:C;else if(a._LogicTextMask.substring(b,b+1)==a.get_CultureThousandsPlaceholder()&&a._MaskType==Sys.Extended.UI.MaskedEditType.Number)c+=c==v?v:a.get_CultureThousandsPlaceholder();else if(a._LogicTextMask.substring(b,b+1)==a.get_CultureDecimalPlaceholder()&&a._MaskType==Sys.Extended.UI.MaskedEditType.Number){c+=c==v?v:a.get_CultureDecimalPlaceholder();if(c==v)d=w}b++}if(a._LogicSymbol!=v&&c!=v)if(a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)c+=C+a._LogicSymbol;else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number)c=a._LogicSymbol+c;return c},_convertMask:function(){var a=this;a._MaskConv=v;for(var c=v,h=v,b=0;b<parseInt(a._Mask.length,D);b++)if(a._CharsEditMask.indexOf(a._Mask.substring(b,b+1))!=y){if(c.length==0){a._MaskConv+=a._Mask.substring(b,b+1);c=v;h=a._Mask.substring(b,b+1)}else if(a._Mask.substring(b,b+1)=="9")c+="9";else if(a._Mask.substring(b,b+1)==t)c+=t}else if(a._CharsEditMask.indexOf(a._Mask.substring(b,b+1))==y&&a._Mask.substring(b,b+1)!=a._DelimitStartDup&&a._Mask.substring(b,b+1)!=a._DelimitEndDup){if(c.length==0){a._MaskConv+=a._Mask.substring(b,b+1);c=v;h=v}else if(a._charNumbers.indexOf(a._Mask.substring(b,b+1))!=y)c+=a._Mask.substring(b,b+1)}else if(a._Mask.substring(b,b+1)==a._DelimitStartDup&&c==v)c=t;else if(a._Mask.substring(b,b+1)==a._DelimitEndDup&&c!=v){var j=parseInt(c,D)-1;if(j>0)for(var k=0;k<j;k++)a._MaskConv+=h;c=v;h=v}var f=y,e=y,g=x;for(b=0;b<parseInt(a._MaskConv.length,D);b++)if(a._MaskConv.substring(b,b+1)==a._charEscape&&!g)g=w;else if(a._CharsEditMask.indexOf(a._MaskConv.substring(b,b+1))!=y&&!g){if(f==y)f=b;e=b}else if(g)g=x;if((a._MaskType==Sys.Extended.UI.MaskedEditType.Time||a._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&a._AcceptAmPm){var i=a.get_CultureAMPMPlaceholder().split(a._AMPMPlaceholderSeparator),d=v;if(i.length==2){d=a._charEscape+C;for(b=0;b<parseInt(i[0].length,D);b++)d+=a._charEscape+C}a._MaskConv=a._MaskConv.substring(0,e+1)+d+a._MaskConv.substring(e+1)}else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._DisplayMoney==Sys.Extended.UI.MaskedEditShowSymbol.Left){var d=v;for(b=0;b<parseInt(a.get_CultureCurrencySymbolPlaceholder().length,D);b++)if(a._CharsEditMask.indexOf(a.get_CultureCurrencySymbolPlaceholder().substring(b,b+1))==y)d+=a.get_CultureCurrencySymbolPlaceholder().substring(b,b+1);else d+=a._charEscape+a.get_CultureCurrencySymbolPlaceholder().substring(b,b+1);d+=a._charEscape+C;a._MaskConv=a._MaskConv.substring(0,f)+d+a._MaskConv.substring(f);f+=d.length;e+=d.length}else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._DisplayMoney==Sys.Extended.UI.MaskedEditShowSymbol.Right){var d=a._charEscape+C;for(b=0;b<parseInt(a.get_CultureCurrencySymbolPlaceholder().length,D);b++)if(a._CharsEditMask.indexOf(a.get_CultureCurrencySymbolPlaceholder().substring(b,b+1))==y)d+=a.get_CultureCurrencySymbolPlaceholder().substring(b,b+1);else d+=a._charEscape+a.get_CultureCurrencySymbolPlaceholder().substring(b,b+1);a._MaskConv=a._MaskConv.substring(0,e+1)+d+a._MaskConv.substring(e+1)}if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative==Sys.Extended.UI.MaskedEditShowSymbol.Right)a._MaskConv=a._MaskConv.substring(0,e+1)+a._charEscape+C+a._MaskConv.substring(e+1);else if(a._MaskType==Sys.Extended.UI.MaskedEditType.Number&&a._AcceptNegative==Sys.Extended.UI.MaskedEditShowSymbol.Left)a._MaskConv=a._MaskConv.substring(0,f)+a._charEscape+C+a._MaskConv.substring(f);a._convertMaskNotEscape()},_convertMaskNotEscape:function(){var a=this;a._LogicMaskConv=v;for(var d=a._MaskConv,c=x,b=0;b<parseInt(d.length,D);b++)if(d.substring(b,b+1)==a._charEscape)c=w;else if(!c)a._LogicMaskConv+=d.substring(b,b+1);else{a._LogicMaskConv+=a._LogicEscape;c=x}},get_Mask:function(){var a=this;a._MaskConv==v&&a._Mask!=v&&a._convertMask();return a._MaskConv},set_Mask:function(a){this._Mask=a;this.raisePropertyChanged("Mask")},get_Filtered:function(){return this._Filtered},set_Filtered:function(a){this._Filtered=a;this.raisePropertyChanged("Filtered")},get_InputDirection:function(){return this._InputDirection},set_InputDirection:function(a){this._InputDirection=a;this.raisePropertyChanged("InputDirection")},get_PromptCharacter:function(){return this._PromptChar},set_PromptCharacter:function(a){this._PromptChar=a;this.raisePropertyChanged("PromptChar")},get_OnFocusCssClass:function(){return this._OnFocusCssClass},set_OnFocusCssClass:function(a){this._OnFocusCssClass=a;this.raisePropertyChanged("OnFocusCssClass")},get_OnInvalidCssClass:function(){return this._OnInvalidCssClass},set_OnInvalidCssClass:function(a){this._OnInvalidCssClass=a;this.raisePropertyChanged("OnInvalidCssClass")},get_CultureName:function(){return this._CultureName},set_CultureName:function(a){this._CultureName=a;this.raisePropertyChanged("Culture")},get_CultureDatePlaceholder:function(){return this._CultureDatePlaceholder},set_CultureDatePlaceholder:function(a){this._CultureDatePlaceholder=a;this.raisePropertyChanged("CultureDatePlaceholder")},get_CultureTimePlaceholder:function(){return this._CultureTimePlaceholder},set_CultureTimePlaceholder:function(a){this._CultureTimePlaceholder=a;this.raisePropertyChanged("CultureTimePlaceholder")},get_CultureDecimalPlaceholder:function(){return this._CultureDecimalPlaceholder},set_CultureDecimalPlaceholder:function(a){this._CultureDecimalPlaceholder=a;this.raisePropertyChanged("CultureDecimalPlaceholder")},get_CultureThousandsPlaceholder:function(){return this._CultureThousandsPlaceholder},set_CultureThousandsPlaceholder:function(a){this._CultureThousandsPlaceholder=a;this.raisePropertyChanged("CultureThousandsPlaceholder")},get_CultureDateFormat:function(){var a=this._CultureDateFormat;switch(this.get_UserDateFormat()){case Sys.Extended.UI.MaskedEditUserDateFormat.DayMonthYear:a=F;break;case Sys.Extended.UI.MaskedEditUserDateFormat.DayYearMonth:a=I;break;case Sys.Extended.UI.MaskedEditUserDateFormat.MonthDayYear:a=n;break;case Sys.Extended.UI.MaskedEditUserDateFormat.MonthYearDay:a=J;break;case Sys.Extended.UI.MaskedEditUserDateFormat.YearDayMonth:a=L;break;case Sys.Extended.UI.MaskedEditUserDateFormat.YearMonthDay:a=K}return a},set_CultureDateFormat:function(a){this._CultureDateFormat=a;this.raisePropertyChanged("CultureDateFormat")},get_CultureCurrencySymbolPlaceholder:function(){return this._CultureCurrencySymbolPlaceholder},set_CultureCurrencySymbolPlaceholder:function(a){this._CultureCurrencySymbolPlaceholder=a;this.raisePropertyChanged("CultureCurrencySymbolPlaceholder")},get_CultureAMPMPlaceholder:function(){var b=this,a=b._CultureAMPMPlaceholder;if(a.split(b._AMPMPlaceholderSeparator).length!=2||a==b._AMPMPlaceholderSeparator)a=v;if(b.get_UserTimeFormat()==Sys.Extended.UI.MaskedEditUserTimeFormat.TwentyFourHour)a=v;return a},set_CultureAMPMPlaceholder:function(a){this._CultureAMPMPlaceholder=a;this.raisePropertyChanged("CultureAMPMPlaceholder")},get_CultureFirstLettersAMPM:function(){if(this.get_CultureAMPMPlaceholder()!=v){var a=this.get_CultureAMPMPlaceholder().split(this._AMPMPlaceholderSeparator);return a[0].substring(0,1)+a[1].substring(0,1)}return v},get_CultureFirstLetterAM:function(){if(this.get_CultureAMPMPlaceholder()!=v){var a=this.get_CultureAMPMPlaceholder().split(this._AMPMPlaceholderSeparator);return a[0].substring(0,1)}return v},get_CultureFirstLetterPM:function(){if(this.get_CultureAMPMPlaceholder()!=v){var a=this.get_CultureAMPMPlaceholder().split(this._AMPMPlaceholderSeparator);return a[1].substring(0,1)}return v},get_ClearMaskOnLostFocus:function(){return this._ClearMaskOnLostfocus},set_ClearMaskOnLostFocus:function(a){this._ClearMaskOnLostfocus=a;this.raisePropertyChanged("ClearMaskOnLostfocus")},get_MessageValidatorTip:function(){return this._MessageValidatorTip},set_MessageValidatorTip:function(a){this._MessageValidatorTip=a;this.raisePropertyChanged("MessageValidatorTip")},get_AcceptAMPM:function(){return this._AcceptAmPm},set_AcceptAMPM:function(a){this._AcceptAmPm=a;this.raisePropertyChanged("AcceptAmPm")},get_AcceptNegative:function(){return this._AcceptNegative},set_AcceptNegative:function(a){this._AcceptNegative=a;this.raisePropertyChanged("AcceptNegative")},get_DisplayMoney:function(){return this._DisplayMoney},set_DisplayMoney:function(a){this._DisplayMoney=a;this.raisePropertyChanged("DisplayMoney")},get_OnFocusCssNegative:function(){return this._OnFocusCssNegative},set_OnFocusCssNegative:function(a){this._OnFocusCssNegative=a;this.raisePropertyChanged("OnFocusCssNegative")},get_OnBlurCssNegative:function(){return this._OnBlurCssNegative},set_OnBlurCssNegative:function(a){this._OnBlurCssNegative=a;this.raisePropertyChanged("OnBlurCssNegative")},get_Century:function(){return this._Century},set_Century:function(a){this._Century=a;this.raisePropertyChanged("Century")},get_AutoComplete:function(){return this._AutoComplete},set_AutoComplete:function(a){this._AutoComplete=a;this.raisePropertyChanged("AutoComplete")},get_AutoCompleteValue:function(){return this._AutoCompleteValue},set_AutoCompleteValue:function(a){this._AutoCompleteValue=a;this.raisePropertyChanged("AutoCompleteValue")},get_MaskType:function(){return this._MaskType},set_MaskType:function(a){this._MaskType=a;this.raisePropertyChanged("MaskType")},get_ClearTextOnInvalid:function(){return this._ClearTextOnInvalid},set_ClearTextOnInvalid:function(a){if(this._ClearTextOnInvalid!==a){this._ClearTextOnInvalid=a;this.raisePropertyChanged("ClearTextOnInvalid")}},get_ClipboardText:function(){return this._ClipboardText},set_ClipboardText:function(a){this._ClipboardText=a;this.raisePropertyChanged("ClipboardText")},get_ClipboardEnabled:function(){return this._AllowCopyPaste},set_ClipboardEnabled:function(a){this._AllowCopyPaste=a;this.raisePropertyChanged("ClipboardEnabled")},get_ErrorTooltipEnabled:function(){return this._ShowMessageErrorFloat},set_ErrorTooltipEnabled:function(a){this._ShowMessageErrorFloat=a;this.raisePropertyChanged("ErrorTooltipEnabled")},get_ErrorTooltipCssClass:function(){return this._CssMessageErrorFloat},set_ErrorTooltipCssClass:function(a){this._CssMessageErrorFloat=a;this.raisePropertyChanged("ErrorTooltipCssClass")},get_UserDateFormat:function(){return this._UserDateFormat},set_UserDateFormat:function(a){this._UserDateFormat=a;this.raisePropertyChanged("UserDateFormat")},get_UserTimeFormat:function(){return this._UserTimeFormat},set_UserTimeFormat:function(a){this._UserTimeFormat=a;this.raisePropertyChanged("UserTimeFormat")}};Sys.Extended.UI.MaskedEditBehavior.registerClass("Sys.Extended.UI.MaskedEditBehavior",Sys.Extended.UI.DynamicPopulateBehaviorBase);Sys.registerComponent(Sys.Extended.UI.MaskedEditBehavior,{name:"maskedEdit"});Sys.Extended.UI.MaskedEditType=function(){throw Error.invalidOperation();};Sys.Extended.UI.MaskedEditInputDirections=function(){throw Error.invalidOperation();};Sys.Extended.UI.MaskedEditShowSymbol=function(){throw Error.invalidOperation();};Sys.Extended.UI.MaskedEditUserDateFormat=function(){throw Error.invalidOperation();};Sys.Extended.UI.MaskedEditUserTimeFormat=function(){throw Error.invalidOperation();};Sys.Extended.UI.MaskedEditType.prototype={None:0,Date:1,Number:2,Time:3,DateTime:4};Sys.Extended.UI.MaskedEditInputDirections.prototype={LeftToRight:0,RightToLeft:1};Sys.Extended.UI.MaskedEditShowSymbol.prototype={None:0,Left:1,Right:2};Sys.Extended.UI.MaskedEditUserDateFormat.prototype={None:0,DayMonthYear:1,DayYearMonth:2,MonthDayYear:3,MonthYearDay:4,YearDayMonth:5,YearMonthDay:6};Sys.Extended.UI.MaskedEditUserTimeFormat.prototype={None:0,TwentyFourHour:1};Sys.Extended.UI.MaskedEditType.registerEnum("Sys.Extended.UI.MaskedEditType");Sys.Extended.UI.MaskedEditInputDirections.registerEnum("Sys.Extended.UI.MaskedEditInputDirections");Sys.Extended.UI.MaskedEditShowSymbol.registerEnum("Sys.Extended.UI.MaskedEditShowSymbol");Sys.Extended.UI.MaskedEditUserDateFormat.registerEnum("Sys.Extended.UI.MaskedEditUserDateFormat");Sys.Extended.UI.MaskedEditUserTimeFormat.registerEnum("Sys.Extended.UI.MaskedEditUserTimeFormat")}if(window.Sys&&Sys.loader)Sys.loader.registerScript(scriptName,["Globalization","ExtendedBase","ExtendedTimer","ExtendedCommon"],execute);else execute()})();
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();