
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 1/29/2010 6:03:51 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
function MaskValidatorEvaluateIsValid(v94384,v5e194,vcd084){ var va7a90 =window.event; var ve0c95 =ISGetObject(GetControlToValidateMV(v94384)); if (va7a90 &&v5e194 !=true) { if (va7a90.type =="change" ||va7a90.type =="blur") { if (ve0c95) { if (ve0c95.EditFormat.MaskInfo) { if (!ve0c95.EditFormat.IsValidateOnChange) { return true; } } else return false; } else return false; } } var vd2365 =ISGetObject(GetControlToValidateMV(v94384)); if (vd2365 ==null) return true; var v59795; if (vcd084 ==true) v59795 =ValidatorTrim(vd2365.HtmlObj.value); else { if (IS.ie ==false &&va7a90 !=null) v59795 =va7a90.srcElement ==vd2365.HtmlObj ? ValidatorTrim(vd2365.HtmlObj.value): ve0c95.EditText; else v59795 =ValidatorTrim(vd2365.HtmlObj.value); } var ve9199; if (v5e194 ==true) ve9199 =wib9b79.m1a985(v94384,v59795); else { var vafa87 =ve0c95.DisplayFormat; if (vafa87 !=null &&vafa87.Enabled) { ve9199 =true; wib9b79._c =vd2365; } else ve9199 =wib9b79.m1a985(v94384,v59795); } if (!ve9199 &&v5e194 !=true) { if (va7a90) { va7a90.returnValue =false; va7a90.cancelBubble =true; } } if (wib9b79._c !=null) { var ve0c95 =wib9b79._c; var vf0278 =ve0c95.EditFormat.WindowInfo; if (!ve9199) { WindowEngine.Show(vf0278); if (ve0c95.EditFormat.Events) ISEvent.Raise(ve0c95.EditFormat.Events.OnValidateError,ve0c95.Id); if ((IS.safari ||IS.opera)&&va7a90 !=null &&va7a90.srcElement ==ve0c95.HtmlObj) setTimeout("ISGetObject('" +ve0c95.Id +"').SetFocus();",10); } else { WindowEngine.Hide(vf0278); } } return ve9199;};function GetControlToValidateMV(v3e640){ var v3534 =v3e640.controltovalidate; if (v3534 ==null) v3534 =v3e640.id.replace("_mv",""); return v3534;};function EditFormat(){ this._cId =this.Events =this.MaskInfo =this.WindowInfo =this.XmlDt =null; this.IsValidateOnChange =true; this.Enabled =false; this.Format =this.HighLightedFormat =this.xmlInputHiddenUniqueID =""; this.IsValueSpinnable =true; this.SkipNavigateHoliday =false; this.MinDropDownYear =1900; this.MaxDropDownYear =2020; this.IsNonCharEditing =false; this.MaskType ="DateTime"; this._LastValueBeforeEditFormat =null; this._IsRuntimeValid =true; this._TempEditText =null; this._TempText =null; this._TempValue =null; try { this.ClientData =new ISClientData(); } catch (e) { this.ClientData =new Object(); } this.ClientData.IsValid =true;};var pEditF =EditFormat.prototype;pEditF.ParseRawText =function(s){ return wib9b79.m99276(this,s);};pEditF.Validate =function(){ return MaskValidatorEvaluateIsValid(document.getElementById(this._cId +IS.MaskValidatorSuffix),true);};pEditF.GetValueData =function(wi){ return wib9b79.m4a965(wi);};pEditF.GetData =function(){ return wib9b79.mb6d79(ISGetObject(this._cId));};function MaskInfo(){ this.CopyWithLiterals =this.ShowLiterals =this.SkipOptional =true; this.MaskExpression =this.REExpression =""; this.CustomOptionalPlaceHolderCharList =this.CustomRequiredPlaceHolderCharList =""; this.PromptChar ="_"; this.HighLightedArrREExpression =new Array(); this.ValueParts =new Array(); this.ArrLiterals =new Array(); this.ArrLiteralsChar =new Array(); this.ArrREExpression =new Array();}function MaskValidatorEvents(){ this.OnBeforeValidate =this.OnAfterValidate =this.OnBeforeCharValidate =this.OnAfterCharValidate =null;}var wib9b79 = { _c: null, mdf996:function(vfcf16){ if (!vfcf16.IsInitMV){ var v54b96 =new EditFormat(); var vf9560 =document.getElementById(vfcf16.Id +IS.MaskValidatorSuffix); if (vf9560 ==null) return; var v8665 =ISXml.GetElementById(vf9560.id +IS.XmlSuffix); if (v8665 ==null) return; else { if (ISXml.GetAttribute(v8665.documentElement,"MaskType")=="DynamicNumber") return; } v54b96.XmlDt =v8665; wib9b79.ma0d65(v54b96,vfcf16); v54b96._cId =vfcf16.Id; vfcf16.EditFormat =v54b96; if (vfcf16.HighLight !=null){ with (vfcf16.HighLight){ PromptString =v54b96.MaskInfo.PromptChar; OnHighLighted ="wib9b79.m46067"; invalidTextArray =v54b96.MaskInfo.ArrLiterals; _InternalAutoTabWhenFilled =false; } } wib9b79.mb5292(vfcf16); vfcf16.IsInitMV =true; } }, mb5292:function(v1fc71){ var v38a16 =v1fc71.HtmlObj; Listener.Add(v38a16,"onkeyup",wib9b79.m94386,v1fc71); Listener.Add(v38a16,"onkeydown",wib9b79.m4a898,v1fc71); Listener.Add(v38a16,"onfocus",wib9b79.mbf236,v1fc71); Listener.Add(v38a16,(IS.ie ? "onbeforedeactivate" : "onblur"),wib9b79.m7de95,v1fc71); Listener.Add(v38a16,"oncut",wib9b79.m3a164,v1fc71); Listener.Add(v38a16,"oncopy",wib9b79.m3a164,v1fc71); Listener.Add(v38a16,"onpaste",wib9b79.md522,v1fc71); }, m13d88:function(v29f71){ var v09971 =v29f71.HtmlObj; Listener.Remove(v09971,"onkeyup",wib9b79.m94386,v29f71); Listener.Remove(v09971,"onkeydown",wib9b79.m4a898,v29f71); Listener.Remove(v09971,"onfocus",wib9b79.mbf236,v29f71); Listener.Remove(v09971,(IS.ie ? "onbeforedeactivate" : "onblur"),wib9b79.m7de95,v29f71); Listener.Remove(v09971,"oncut",wib9b79.m3a164,v29f71); Listener.Remove(v09971,"oncopy",wib9b79.m3a164,v29f71); Listener.Remove(v09971,"onpaste",wib9b79.md522,v29f71); }, ma0d65:function(v0e67,v51419){ if (v0e67 ==null ||v0e67.XmlDt ==null) return; var vd6f71 =v0e67.XmlDt.selectSingleNode("//MaskValidator"); if (vd6f71 !=null){ IS.SetProperties(v0e67,vd6f71); with (vd6f71){ v0e67.WindowInfo =WindowEngine.Register(selectSingleNode("WindowInfo")); v0e67.WindowInfo.IsRelFromOffsetControl =true; v0e67.Events =ISEvent.Register(v51419.HtmlObj,selectSingleNode("ClientSideEvents")); } wib9b79.m8e484(v0e67,v51419.EditText,v51419.HighLight.Type,v51419.CultureInfo); } if (v0e67.MaskType =="Number"){ var v0ba49 =v51419.CultureInfo.NumberFormatInfo; v0e67._DecSprt =GetDecimalSeparator(v0ba49,v0e67.Format); v0e67._GrpSprt =GetGroupSeparator(v0ba49,v0e67.Format); v0e67._Sym =GetSymbol(v0ba49,v0e67.Format); } }, m25235:function(v22510){ if (v22510 ==null ||v22510.XmlDt ==null) return; var vb1727 =v22510.XmlDt.selectSingleNode("//MaskValidator"); if (vb1727 !=null){ IS.SetPropertiesToXml(v22510,vb1727); WindowEngine.AssignPropertiesToXml(v22510.WindowInfo,vb1727.selectSingleNode("WindowInfo")); wib9b79.me9c14(v22510); } }, mdb625:function(v5cf46,vc4a38){ if (vc4a38.MaskType =="DateTime" &&vc4a38.ClientData !=null){ if (vc4a38.ClientData.IsValid){ var vc2946 =v5cf46.IsDateInRange(vc4a38.ClientData.DateData,vc4a38.Format.indexOf("H")>-1 ||vc4a38.Format.indexOf("h")>-1); vc4a38.ClientData.IsValid =vc2946; return vc2946; } else return false; } else return true; }, m1a985:function(v19776,va045){ var v7d766 =ISGetObject(GetControlToValidateMV(v19776)); if (v7d766 ==null){ v7d766 =new ISControl(GetControlToValidateMV(v19776)); v7d766.ClassName ="Common"; } wib9b79._c =v7d766; if (v7d766 ==null) return; wib9b79.mdf996(v7d766); if (v7d766.EditFormat.MaskInfo ==null){ wib9b79._c =null; return; } var v2a147 =v7d766.EditFormat; if (!v2a147.Enabled) return false; var v1b977 =v2a147.MaskInfo; if (v7d766.DisplayFormat &&IS.ie){ if (v7d766.DisplayFormat.Enabled){ if (v7d766.HtmlObj.value ==va045 ||v7d766.Text ==va045) va045 =v7d766.EditText; } } if (v2a147.Events !=null) if (!ISEvent.Raise(v2a147.Events.OnBeforeValidate,v7d766.Id,va045)) return false; var vb4d81 =false; if (v7d766.Nullable) vb4d81 =wib9b79.m99a97(v1b977.ValueParts,v1b977.PromptChar); if (!vb4d81){ vb4d81 =wib9b79.m43c31(v1b977.ArrREExpression,va045); if (v2a147.MaskType !="Other"){ var v1e761 =IS.GetValidationEngine(); var v9606 =v2a147.ClientData; with (v9606){ Type =v2a147.MaskType.toLowerCase(); Format =v2a147.Format; var v36761 =new RegExp(v2a147.MaskInfo.PromptChar,"g"); OldValue =NewValue =va045.replace(v36761,""); IsValid =true; } v1e761.Validate(v9606,v7d766.CultureInfo); wib9b79.mdb625(v7d766,v2a147); vb4d81 =v9606.IsValid; if (vb4d81) v7d766.DateDataSource ="EditFormat"; } }  v19776.isvalid =v2a147._IsRuntimeValid =vb4d81;  if (v2a147.Events !=null) if (!ISEvent.Raise(v2a147.Events.OnAfterValidate,v7d766.Id,va045,vb4d81)) return false; return vb4d81; }, m43c31:function(v6a832,va2385){ var v96896 =false; for (var v26a15 =0; v26a15 <v6a832.length; v26a15++){ v96896 =(new RegExp(v6a832[v26a15])).exec(va2385.charAt(v26a15))!=null; if (v96896 ==false) break; } return v96896; }, meb747:function(v32d98){ if (v32d98.EditFormat !=null){ var v1fc68 =v32d98.EditFormat; var v54154 =v1fc68.MaskInfo; var v72a51 =v54154.ValueParts; if (v1fc68.MaskType !="Other"){ var v62c32 =v1fc68.ClientData; with (v62c32){ Type =v1fc68.MaskType.toLowerCase(); Format =v1fc68.Format; OldValue =NewValue =v1fc68.MaskType !="Number" ? (v32d98.Value.replace(new RegExp(v1fc68.MaskInfo.PromptChar,"g"),"")): v32d98.Value; PromptChar =v1fc68.MaskInfo.PromptChar; IsValid =true; } var vc6b49 =IS.GetValidationEngine(); vc6b49.Validate(v62c32,v32d98.CultureInfo); wib9b79.mdb625(v32d98,v1fc68); if (v62c32.IsValid){ if (v1fc68.MaskType =="Number"){ wib9b79.me5535(v72a51,v62c32.FormattedValue,v54154.ArrLiterals,v54154.PromptChar); v32d98.EditText =v62c32.FormattedValue; } else { if (v32d98.HighLight.Type =="phrase") wib9b79.m51142(v72a51,v62c32.FormattedValue,v54154.PromptChar); else { wib9b79.m51142(v72a51,v62c32.FormattedValue,v54154.PromptChar); var v9af26 =wib9b79.m78822(v32d98.CultureInfo,v72a51,v1fc68.Format,v54154.ArrLiterals,v54154.ArrLiteralsChar,v54154.PromptChar,v54154.ArrREExpression,true,true); wib9b79.me5535(v72a51,v9af26,v54154.ArrLiterals,v54154.PromptChar); } if ((v72a51[v72a51.length -1][2] +v72a51[v72a51.length -1][3])!=v62c32.FormattedValue.length){ try { wib9b79.m62336(v72a51,v62c32,v54154.PromptChar); } catch (e){ } } v32d98.EditText =wib9b79.m78822(v32d98.CultureInfo,v72a51,v1fc68.Format,v54154.ArrLiterals,v54154.ArrLiteralsChar,v54154.PromptChar,v54154.ArrREExpression); } v32d98.DateDataSource ="EditFormat"; } else { wib9b79.m2b267(v72a51,v54154.PromptChar); v32d98.EditText =wib9b79.m78822(v32d98.CultureInfo,v72a51,v1fc68.Format,v54154.ArrLiterals,v54154.ArrLiteralsChar,v54154.PromptChar,v54154.ArrREExpression); } } else { if (v32d98.Value !=null){ var ve3696 =v32d98.Value; var idx,length,ps; for (var vfe84 =0; vfe84 <v72a51.length; vfe84++){ idx =v72a51[vfe84][2]; length =v72a51[vfe84][3]; if (idx <ve3696.length) v72a51[vfe84][1] =ve3696.substr(idx,length); else { ps =""; for (var v85b36 =0; v85b36 <length; v85b36++){ ps +=v54154.PromptChar; } v72a51[vfe84][1] =ps; } } } v32d98.EditText =wib9b79.m78822(v32d98.CultureInfo,v72a51,v1fc68.Format,v54154.ArrLiterals,v54154.ArrLiteralsChar,v54154.PromptChar,v54154.ArrREExpression); } return v32d98.EditText; } else return ""; }, m62336:function(v10c37,vac341,v63b22){ var v2d982 =vac341.FormattedData; if (v10c37.length ==v2d982.length){ var v22d62 =""; for (var v84337 =0; v84337 <v2d982.length; v84337++){ if (v10c37[v84337][0] ==v2d982[v84337][0]){ v10c37[v84337][1] =v2d982[v84337][1].toString(); if (v10c37[v84337][1].length <v10c37[v84337][3]){ var v98321 =v10c37[v84337][1].length; for (v98321; v98321 <v10c37[v84337][3]; v98321++) v10c37[v84337][1] +=v63b22; } } } } else return null; }, m94386:function(){ var vbfd57 =window.event; var v2b851 =this; if (v2b851 ==null ||v2b851.HtmlObj.readOnly ==true) return false; if (!v2b851.Enabled ||v2b851.ReadOnly){ if (vbfd57 !=null){ vbfd57.cancelBubble =true; vbfd57.returnValue =false; } return false; } if (vbfd57.keyCode ==ISKeyboardKey.DELETE ||vbfd57.keyCode ==ISKeyboardKey.ESC){ var v10889 =document.selection.createRange(); if (IS.safari ||IS.opera){ v10889.tempObj =v2b851.HtmlObj; v10889.tempObj.IsSelected =v2b851.HighLight.IsSelected; } if (v10889.text.length ==v2b851.HtmlObj.value.length){ vbfd57.returnValue =false; vbfd57.cancelBubble =true; return false; } } }, m4a898:function(){ var vc2612 =window.event; if (vc2612.ctrlKey &&vc2612.altKey ==false) return true;  if (!IS.ie) window.event =vc2612;  if (vc2612.keyCode ==ISKeyboardKey.TAB) return true; if (vc2612.cancelBubble &&!vc2612.returnValue) return false; var vb5530 =this; if (vb5530 ==null ||vb5530.HtmlObj.readOnly ==true) return false; if (!vb5530.Enabled ||vb5530.ReadOnly){ if (vc2612 !=null){ vc2612.cancelBubble =true; vc2612.returnValue =false; } return false; } var v4fa74; var v33489 =vb5530.EditFormat; var vfed14 =v33489.MaskInfo; var ve8e85 =vb5530.HighLight; v4fa74 =document.selection.createRange(); if (IS.safari ||IS.opera){ v4fa74.tempObj =v6777; if (vb5530.HighLight !=null &&v4fa74.tempObj !=null) v4fa74.tempObj.IsSelected =vb5530.HighLight.IsSelected; } var vd5769 =v4fa74.text.length; var vc8599 =false; if (vd5769 >0){ if (ve8e85._o !=null){ if (ve8e85.Type =="character" &&ve8e85.Idx ==null) vc8599 =ve8e85._o.text.length ==1; else { if (ve8e85.HIdx !=null) vc8599 =vd5769 ==wib9b79.me9d72(vfed14.ValueParts,vb5530.HighLight)[3]; else vc8599 =false; } } } if (v33489.MaskType =="DateTime" &&vd5769 ==vb5530.HtmlObj.value.length){ ve8e85._o =null; ve8e85.HIdx =0; ve8e85.Idx =vfed14.ValueParts[0][2]; }  var vd8414 =ve8e85.IsSelected; if (IS.moz){ if (ve8e85.IsSelected ==false) ve8e85.IsSelected =true; }  if (!vc8599) wib0047.mf1f36(vb5530.Id); if (ISKeyboardKey.IsDirection()){  if (IS.moz){ if (vd8414 ==false) ve8e85.IsSelected =false; }  wib9b79.mb5e95(); return true; } var v4b912 =ISKeyboardKey.GetChar(); if (v4b912 !=null) v4b912 =v4b912.toString(); if (v4b912 ==""){ if (vb5530.IsSelectedAll &&(vc2612.keyCode ==ISKeyboardKey.DELETE ||vc2612.keyCode ==ISKeyboardKey.ESC)){ var vf1339; if (vc2612.keyCode ==ISKeyboardKey.DELETE){ var vbcf83 =vfed14.ValueParts; for (var v37544 =0; v37544 <vbcf83.length; v37544++){ vbcf83[v37544][1] =""; for (var v3bf96 =0; v3bf96 <vbcf83[v37544][3]; v3bf96++){ vbcf83[v37544][1] +=vfed14.PromptChar; } } vf1339 =wib9b79.m78822(vb5530.CultureInfo,vbcf83,v33489.Format,vfed14.ArrLiterals,vfed14.ArrLiteralsChar,vfed14.PromptChar,vfed14.ArrREExpression); } else vf1339 =vb5530.EditText; vb5530.HtmlObj.value =vf1339; vb5530.EditText =vf1339; vb5530._BeforeUpdatedValue =vb5530._AfterUpdatedValue =vb5530.Text =vb5530.Value =""; vb5530.IsDirty =true; vb5530.HtmlObj.focus();  var v6777 =document.getElementById(vb5530.Id +IS.MaskValidatorSuffix); v6777.isvalid =true;  } ISEvent.LastKeyboardType =ISEvent.LastKeyCode =null; vb5530.LastAction =""; if (ve8e85.Type !="character") v33489.IsNonCharEditing =true;  vb5530._IsRuntimeCancelEvent =true; if (IS.moz ||IS.safari ||IS.opera){ if (vd8414 ==false) ve8e85.IsSelected =false; }  return false; } else { var vbcf83 =wib9b79.me9d72(vfed14.ValueParts,ve8e85); var v64e61; if (ve8e85.Type =="character") v64e61 =ve8e85.Idx; else { v64e61 =vbcf83[2] +vbcf83[3]; if (v64e61 >0) v64e61 =v64e61 -1; } if (vfed14.ArrREExpression[v64e61].indexOf("a-z")<0 ||vfed14.ArrREExpression[v64e61].indexOf("^a-z")>-1) v4b912 =v4b912.toUpperCase(); if (v33489.Events !=null) if (!ISEvent.Raise(v33489.Events.OnBeforeCharValidate,vb5530.Id,v4b912,v64e61)) return false; var v2b261 =false; var v5b156 =false; if (vbcf83[0].indexOf("MMM")>-1 &&ISKeyboardKey.IsNumber()&&v33489.MaskType =="DateTime"){ var va8965 =parseFloat(v4b912); var dt,mmit; if (va8965 ==1 &&v33489._mmit ==null){ dt =new Date(); mmit =dt.getMilliseconds().toString(); while (mmit.length <3){ mmit ="0" +mmit; } v33489._mmit =parseFloat(dt.getSeconds().toString()+mmit); } else { if (v33489._mmit !=null &&va8965 <3){ dt =new Date(); mmit =dt.getMilliseconds().toString(); while (mmit.length <3){ mmit ="0" +mmit; } mmit =parseFloat(dt.getSeconds().toString()+mmit); if ((mmit -v33489._mmit)<500) va8965 =parseFloat("1" +v4b912); } v33489._mmit =null; } if (va8965 >0 &&va8965 <=12){ var vf480 =vb5530.CultureInfo.DateTimeFormatInfo; var vc7261 =vbcf83[0].length ==3 ? vf480.AbbreviatedMonthNames : vf480.MonthNames; ve8e85.Text =vc7261[va8965 -1]; for (var v0909 =ve8e85.Text.length; v0909 <vbcf83[3]; v0909++){ ve8e85.Text +=vfed14.PromptChar; } ve8e85._o.text =vbcf83[1] =ve8e85.Text; if (wib9b79.m2fa85(vb5530,vbcf83[0],va8965)) v5b156 =v2b261 =true; } } else { re =new RegExp("^" +v33489.MaskInfo.ArrREExpression[v64e61] +"$"); v2b261 =(re.exec(v4b912)!=null); } if (v33489.Events !=null) if (!ISEvent.Raise(v33489.Events.OnAfterCharValidate,vb5530.Id,v4b912,v2b261,v64e61)) return false; if (!v2b261){ vc2612.returnValue =false; vc2612.cancelBubble =true;  vb5530._IsRuntimeCancelEvent =true; if (IS.moz ||IS.safari ||IS.opera){ if (vd8414 ==false)ve8e85.IsSelected =false; }  } if (v2b261){ if (ve8e85.Type !="character"){ var v68494 =ve8e85.Text.replace(new RegExp(vfed14.PromptChar,"g"),""); ; var vc8d16 =vbcf83[0]; if (wib9b79.mfc449(vb5530,v68494,v4b912)){ if (vbcf83[3] >v68494.length) v68494 =v68494 +v4b912; else v68494 =v4b912.toString(); var vd163; if ("Md".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length >2){ var vc7261,v05152; var vf480 =vb5530.CultureInfo.DateTimeFormatInfo; if (vc8d16.indexOf("M")>-1) vc7261 =vc8d16.length ==3 ? vf480.AbbreviatedMonthNames : vf480.MonthNames; else vc7261 =vc8d16.length ==3 ? vf480.AbbreviatedDayNames : vf480.DayNames; v05152 =v68494.toLowerCase(); for (vd163 =0; vd163 <vc7261.length; vd163++){ if (vc7261[vd163].toLowerCase().indexOf(v05152)==0){ v68494 =vc7261[vd163]; break; } } } var v9df78 =vbcf83[3] -v68494.length; for (var v37544 =0; v37544 <v9df78; v37544++){ if (vbcf83[0].length <3) v68494 =vfed14.PromptChar +v68494; else v68494 =v68494 +vfed14.PromptChar; } ve8e85._o.text =ve8e85.Text =vbcf83[1] =v68494; if (v33489.MaskType =="DateTime" &&"Md".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length >2 &&vd163 <vc7261.length){ if (wib9b79.m2fa85(vb5530,vc8d16,vd163)) v33489.IsNonCharEditing =false; } else { if (v33489.MaskType =="DateTime" &&"dMhHms".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length <3){ if (v68494.charAt(0)=="0" &&v68494.length >1) v33489.IsNonCharEditing =false; else { var v77967 =parseFloat(v68494.replace(new RegExp(vfed14.PromptChar),"")); switch (vc8d16.charAt(0)){ case "d": v33489.IsNonCharEditing =v77967 <4; if (v77967 >0) wib9b79.m2fa85(vb5530,vc8d16); break; case "M": case "h": v33489.IsNonCharEditing =v77967 <2; break; case "H": v33489.IsNonCharEditing =v77967 <3; break; case "m": case "s": v33489.IsNonCharEditing =v77967 <6; break; } } } else { if (vc8d16.charAt(0)=="y" &&v68494.toString().indexOf(vfed14.PromptChar)<0){ if (wib9b79.m2fa85(vb5530,vc8d16,v68494)) v33489.IsNonCharEditing =false; } else v33489.IsNonCharEditing =v68494.toString().indexOf(vfed14.PromptChar)>-1; } } } else { if (v33489.MaskType =="DateTime" &&vc8d16.length >2 &&v68494.length <=1 &&vb5530.ResetOnInvalidEntry ==false) v5b156 =true; if (v33489.MaskType =="DateTime" &&v5b156 ==false &&wib9b79.mfc449(vb5530,v68494,"")&&vb5530.ResetOnInvalidEntry ==false){ v68494 =v4b912.toString(); var vd163; if ("Md".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length >2){ var vc7261,v05152; var vf480 =vb5530.CultureInfo.DateTimeFormatInfo; if (vc8d16.indexOf("M")>-1) vc7261 =vc8d16.length ==3 ? vf480.AbbreviatedMonthNames : vf480.MonthNames; else vc7261 =vc8d16.length ==3 ? vf480.AbbreviatedDayNames : vf480.DayNames; v05152 =v68494.toLowerCase(); for (vd163 =0; vd163 <vc7261.length; vd163++){ if (vc7261[vd163].toLowerCase().indexOf(v05152)==0){ v68494 =vc7261[vd163]; break; } } } var v9df78 =vbcf83[3] -v68494.length; for (var v37544 =0; v37544 <v9df78; v37544++){ if (vbcf83[0].length <3) v68494 =vfed14.PromptChar +v68494; else v68494 =v68494 +vfed14.PromptChar; } ve8e85._o.text =ve8e85.Text =vbcf83[1] =v68494; if ("Md".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length >2 &&vd163 <vc7261.length){ if (wib9b79.m2fa85(vb5530,vc8d16,vd163)) v33489.IsNonCharEditing =false; } else { if ("dMhHms".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length <3){ if (v68494.charAt(0)=="0" &&v68494.length >1) v33489.IsNonCharEditing =false; else { var v77967 =parseFloat(v68494.replace(new RegExp(vfed14.PromptChar),"")); switch (vc8d16.charAt(0)){ case "d": if (vc8d16.length ==2 &&ISKeyboardKey.GetChar()=="0"){ v33489.IsNonCharEditing =true; break; } v33489.IsNonCharEditing =v77967 <4; wib9b79.m2fa85(vb5530,vc8d16); break; case "M": case "h": v33489.IsNonCharEditing =v77967 <2; break; case "H": v33489.IsNonCharEditing =v77967 <3; break; case "m": case "s": v33489.IsNonCharEditing =v77967 <6; break; } } } else v33489.IsNonCharEditing =v68494.toString().indexOf(vfed14.PromptChar)>-1; } } else { if (!v5b156){ if (vbcf83[3] >v68494.length) v68494 =v68494 +v4b912; else v68494 =v4b912.toString(); var vd163,vc7261; vc7261 =new Array(); if (wib9b79.mfc449(vb5530,v68494,"")){ if ("Md".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length >2){ var v05152; var vf480 =vb5530.CultureInfo.DateTimeFormatInfo; if (vc8d16.indexOf("M")>-1) vc7261 =vc8d16.length ==3 ? vf480.AbbreviatedMonthNames : vf480.MonthNames; else vc7261 =vc8d16.length ==3 ? vf480.AbbreviatedDayNames : vf480.DayNames; v05152 =v68494.toLowerCase(); for (vd163 =0; vd163 <vc7261.length; vd163++){ if (vc7261[vd163].toLowerCase().indexOf(v05152)==0){ v68494 =vc7261[vd163]; break; } } } } else { if (vb5530.ResetOnInvalidEntry ==true){ v68494 =""; for (var v7b565 =0; v7b565 <vbcf83[3]; v7b565++){ v68494 +=vfed14.PromptChar; } } } var v9df78 =vbcf83[3] -v68494.length; for (var v37544 =0; v37544 <v9df78; v37544++){ if (vbcf83[0].length <3) v68494 =vfed14.PromptChar +v68494; else v68494 =v68494 +vfed14.PromptChar; } ve8e85._o.text =ve8e85.Text =vbcf83[1] =v68494; if (v33489.MaskType =="DateTime" &&"Md".indexOf(vc8d16.charAt(0))>-1 &&vc8d16.length >2 &&vd163 <vc7261.length){ if (wib9b79.m2fa85(vb5530,vc8d16,vd163)) v33489.IsNonCharEditing =false; } else v33489.IsNonCharEditing =v68494.indexOf(vfed14.PromptChar)>-1; } } } } else { ve8e85._o.text =ve8e85.Text =vbcf83[1] =v4b912; } vb5530.LastAction ="Mask" +(v2b261 ? "Valid" : "Invalid");  if (IS.moz ||IS.safari ||IS.opera){ if (vd8414 ==false) ve8e85.IsSelected =false; }  wib0047.ma3a32(1,vb5530.Id); vc2612.returnValue =false; vc2612.cancelBubble =true; vb5530.IsDirty =true;  vb5530._IsRuntimeCancelEvent =true;  } } return v2b261; }, mb5e95:function(v9ce94){ if (v9ce94 ==null) v9ce94 =window.event; if (v9ce94.keyCode ==ISKeyboardKey.UP ||v9ce94.keyCode ==ISKeyboardKey.DOWN){ var v83083 =ISGetObject(v9ce94.srcElement.id); if (v83083 ==null) return false; var v1e378 =v83083.EditFormat; v1e378._OnChangedBySpin =false; var v4db27 =v83083.HighLight; var v36e91 =v1e378.HighLightedFormat; var ve3731 =v4db27.Text; var vdfc12 =v1e378.MaskInfo; var v80f62 =vdfc12.PromptChar; if (v1e378.MaskType =="DateTime" &&v4db27.Type =="phrase"){ v83083.SetValue(wib9b79.m9af2(v83083,v1e378.ClientData,v83083.CultureInfo.DateTimeFormatInfo,v83083.HtmlObj.value,v4db27.Text,v4db27.Type,v36e91,v1e378.Format,v9ce94.keyCode,v80f62,vdfc12.ValueParts,v83083.CultureInfo,vdfc12.ArrLiterals,vdfc12.ArrLiteralsChar,vdfc12.ArrREExpression,v1e378.SkipNavigateHoliday,v1e378.MinDropDownYear,v1e378.MaxDropDownYear)); v83083.HtmlObj.setActive(); } else { if (v1e378.MaskType =="Number") ve3731 =wib9b79.m09457(ve3731,v4db27.Type,v36e91,v9ce94.keyCode,v80f62); else ve3731 =wib9b79.m52a16(ve3731,v4db27.Type,vdfc12.ArrREExpression[v4db27.Idx],v9ce94.keyCode,v80f62); var vcad9 =vp =wib9b79.me9d72(vdfc12.ValueParts,v4db27); vcad9[1] =ve3731; v83083.SetHighLightValue(ve3731); } v1e378._OnChangedBySpin =true; v83083.IsDirty =true; if (v83083.Events) ISEvent.Raise(v83083.Events.OnDirty,v83083.Id,WebInputOnChangedSource.Spin); } }, m99276:function(v67d85,v31039){ var v2a630 =""; var v5ed5 =v67d85.MaskInfo; var v24a16 =v5ed5.ArrREExpression; var v7ae38 =new RegExp("\\?","g"); var vf2198 =new RegExp(">","g"); var vfdc25 =new RegExp("<","g"); var v28b90 =new RegExp("\\\\","g"); var va7828 =new RegExp("!","g"); var v11691 =new RegExp("0","g"); var vdf158 =new RegExp("9","g"); var v88773 =new RegExp("#","g"); var v0bb86 =new RegExp("L","g"); var v1b12 =new RegExp("A","g"); var v3b648 =new RegExp("a","g"); var v25124 =new RegExp("&","g"); var v4ba98 =new RegExp("C","g"); var v35960 =v5ed5.MaskExpression.replace(vf2198,"").replace(vfdc25,"").replace(v28b90,"").replace(va7828,""); if (v31039.length <v35960.length){ var v52053 =v31039; var me1,tme; me1 =tme =v5ed5.MaskExpression; me1 =me1.replace(v7ae38,"").replace(v11691,"").replace(vdf158,"").replace(v88773,"").replace(v0bb86,"").replace(v1b12,"").replace(v3b648,"").replace(v25124,"").replace(v4ba98,"").replace(vf2198,"").replace(vfdc25,"").replace(v28b90,"").replace(va7828,""); var v76030; for (var vd2925 =0; vd2925 <me1.length; vd2925++){ v76030 =new RegExp(EscapeRegExpSpecialChar(me1.charAt(vd2925)),"g"); v52053 =v52053.replace(v76030,""); tme =tme.replace(v76030,""); } v52053 =v52053.replace(new RegExp("\\s*","g"),""); tme =tme.replace(vdf158,"").replace(v88773,"").replace(v7ae38,"").replace(v3b648,"").replace(v4ba98,"").replace(vf2198,"").replace(vfdc25,"").replace(v28b90,"").replace(va7828,""); var v27478 =0; var v1e454 =""; var v6f155 =""; var v89354 =v5ed5.CustomRequiredPlaceHolderCharList +v5ed5.CustomOptionalPlaceHolderCharList; for (var vd2925 =0; vd2925 <v35960.length; vd2925++){ v1e454 =v35960.charAt(vd2925); if ("09#L?Aa&C".indexOf(v1e454)>-1 ||v89354.indexOf(v1e454)>-1){ v76030 =new RegExp(v24a16[vd2925]); if ("0LA&".indexOf(v1e454)>-1){ v6f155 =v52053.charAt(v27478); if (v76030.exec(v6f155)){ v2a630 +=v6f155; v27478++; } else { v2a630 =""; break; } } else { if (v89354.indexOf(v1e454)>-1){ if (v5ed5.CustomRequiredPlaceHolderCharList.indexOf(v1e454)>-1){ v6f155 =v52053.charAt(v27478); if (v76030.exec(v6f155)){ v2a630 +=v6f155; v27478++; } else { v2a630 =""; break; } } else v2a630 +=v5ed5.PromptChar; } else v2a630 +=v5ed5.PromptChar; } } else v2a630 +=v1e454; } if (v27478 !=v52053.length) v2a630 =""; if (v2a630 ==""){ v27478 =0; var vb3271 ="9#?aC" +v5ed5.CustomOptionalPlaceHolderCharList; var ve2b54 =false; var vf8040 =wib9b79.m75123(v35960,vb3271); var vd6727 =wib9b79.mf5f26(v35960,vb3271); while (vf8040 <=vd6727){ for (var vd2925 =0; vd2925 <v35960.length; vd2925++){ v1e454 =v35960.charAt(vd2925); if ("09#L?Aa&C".indexOf(v1e454)>-1 ||v89354.indexOf(v1e454)>-1){ if (v27478 <v52053.length){ v76030 =new RegExp(v24a16[vd2925]); ve2b54 =v76030.exec(v52053.charAt(v27478))!=null; if (ve2b54 &&"0LA&".indexOf(v1e454)>-1){ v2a630 +=v52053.charAt(v27478); v27478++; } else { if ("9#?aC".indexOf(v1e454)>-1){ if (vf8040 >=vd2925 &&ve2b54){ v2a630 +=v52053.charAt(v27478); v27478++; } else v2a630 +=v5ed5.PromptChar; } else { if (v89354.indexOf(v1e454)>-1){ if (v5ed5.CustomRequiredPlaceHolderCharList.indexOf(v1e454)>-1){ if (ve2b54){ v2a630 +=v52053.charAt(v27478); v27478++; } else break; } else { if (ve2b54){ v2a630 +=v52053.charAt(v27478); v27478++; } else v2a630 +=v5ed5.PromptChar; } } else break; } } } else v2a630 +=v5ed5.PromptChar; } else v2a630 +=v1e454; } if (v27478 <v52053.length){ v2a630 =""; v27478 =0; vf8040 =wib9b79.m75123(v35960,vb3271,vf8040 +1); if (vf8040 <0) break; } else break; } } } else v2a630 =v31039; return v2a630; }, m75123:function(v0474,v7c349,v30277){ if (v30277 ==null) v30277 =0; var idx,c; var v28521 =false; for (idx =v30277; idx <v0474.length; idx++){ for (var v97a9 =0; v97a9 <v7c349.length; v97a9++){ if (v0474.charAt(idx)==v7c349.charAt(v97a9)){ v28521 =true; break; } } if (v28521) break; } return (v28521 ? idx : -1); }, mf5f26:function(v84e96,v17897,vbab80){ if (vbab80 ==null) vbab80 =0; var idx,c; var v2bb60 =false; for (idx =v84e96.length -1; idx >=vbab80; idx--){ for (var v31128 =0; v31128 <v17897.length; v31128++){ if (v84e96.charAt(idx)==v17897.charAt(v31128)){ v2bb60 =true; break; } } if (v2bb60) break; } return (v2bb60 ? idx : -1); }, mfc449:function(v01937,v29323,ve9688){ var v30d15 =v01937.EditFormat; var v0807 =v01937.HighLight; if (v30d15.MaskType =="DateTime" &&v0807.Type !="character"){ var v2fd47 =v30d15.MaskInfo; if (wib9b79.m99a97(v2fd47.ValueParts,v2fd47.PromptChar)) return true; var ve8d69 =false; var vb1350 =v01937.CultureInfo.DateTimeFormatInfo; var v03b22 =wib9b79.me9d72(v2fd47.ValueParts,v0807)[0]; if (v03b22.indexOf("y")>-1) return true; var m,y,vp; var v0da76 =new Date(); if (v30d15.Format.indexOf("M")>-1){ var vaec9; vp =wib9b79.m6ed26(v2fd47.ValueParts,"M"); if (vp){ vaec9 =vp[1]; if (vaec9){ if (vp[0].length >2){ var v6f579 =new RegExp(v2fd47.PromptChar,"g"); vaec9 =vaec9.toString().toLowerCase().replace(v6f579,""); var vf2f6 =vp[0].length ==3 ? vb1350.AbbreviatedMonthNames : vb1350.MonthNames; for (var v27430 =0; v27430 <vf2f6.length; v27430++){ if (vf2f6[v27430].toLowerCase().replace(v6f579,"")==vaec9){ vaec9 =v27430; break; } } } else vaec9 =parseFloat(vaec9)-1; m =vaec9; } } } if (m ==null ||isNaN(m)) m =v0da76.getMonth(); if (v30d15.Format.indexOf("y")>-1){ vp =wib9b79.m6ed26(v2fd47.ValueParts,"y"); if (vp &&vp[1] !=null) y =parseFloat(vp[1]); } if (y ==null ||isNaN(y)) y =v0da76.getFullYear(); vp =wib9b79.me9d72(v2fd47.ValueParts,v0807); var v45b72 =v29323 +ve9688; v45b72 =v45b72.toString().toLowerCase(); switch (v03b22.charAt(0)){ case "d": if (v03b22.length <=2){ v45b72 =parseFloat(v45b72); v0da76 =new Date(y,m,v45b72); var v0d775 =v29323 +ve9688; if (v0da76.getMonth()==m ||(m >=12 &&v45b72 <32 &&v45b72 >0)||(v45b72 ==0 &&v0d775.length ==1)) ve8d69 =true; } else { var v3f028 =v03b22.length ==3 ? vb1350.AbbreviatedDayNames : vb1350.DayNames; for (var v27430 =0; v27430 <v3f028.length; v27430++){ if (v3f028[v27430].toLowerCase().indexOf(v45b72)==0){ ve8d69 =true; break; } } } break; case "g": if (vb1350.EraName.toLowerCase().indexOf(v45b72)==0) ve8d69 =true; break; case "h": if (parseFloat(v45b72)<=12) ve8d69 =true; break; case "H": if (parseFloat(v45b72)<=23) ve8d69 =true; break; case "m": if (parseFloat(v45b72)<=59) ve8d69 =true; break; case "M": if (v03b22.length <=2){ if ((parseFloat(v45b72)<=12 &&parseFloat(v45b72)>0)||(parseFloat(v45b72)==0 &&v45b72.length ==1)) ve8d69 =true; } else { var vf2f6 =vp[0].length ==3 ? vb1350.AbbreviatedMonthNames : vb1350.MonthNames; for (var v27430 =0; v27430 <vf2f6.length; v27430++){ if (vf2f6[v27430].toLowerCase().indexOf(v45b72)==0){ ve8d69 =true; break; } } } break; case "s": if (parseFloat(v45b72)<=59) ve8d69 =true; break; case "t": if (vb1350.AMDesignator.toLowerCase().indexOf(v45b72)==0 ||vb1350.PMDesignator.toLowerCase().indexOf(v45b72)==0) ve8d69 =true; break; case "y": ve8d69 =true; break; } return ve8d69; } else return true; }, m9af2:function(vebb22,va7b70,v90911,v64a53,v43a3,vbb682,vdbf6,v00d70,v49333,vc3981,v67753,ve3778,vef523,v22857,vffa2,v93d8,v96839,v5e281){ with (va7b70){ Type ="datetime"; Format =v00d70; OldValue =NewValue =v64a53; PromptChar =null; IsValid =true; } var year,month,date,hours,minutes,seconds,ms,dsnt,isNewInit; var v85c56 =IS.GetValidationEngine(); if (v64a53.indexOf(vc3981)>-1) va7b70.IsValid =false; if (va7b70.IsValid) v85c56.Validate(va7b70,ve3778); wib9b79.mdb625(vebb22,vebb22.EditFormat); if (va7b70.IsValid){ with (va7b70.DateData){ year =parseFloat(Year); month =parseFloat(Month); date =parseFloat(Day); if (v00d70.indexOf("h")>-1){ hours =parseFloat(Hour12); dsnt =Designator;   hours +=(dsnt =="PM" &&hours <12)||(dsnt =="AM" &&hours ==12)? 12 : 0;  hours =hours ==24 ? 0 : hours; } else hours =parseFloat(Hour24); minutes =parseFloat(Minute); seconds =parseFloat(Second); ms =parseFloat(Fraction); } } else { isNewInit =wib9b79.me5535(v67753,v64a53,vef523,vc3981); var v8ee33 =new Date(); year =wib9b79.m9f963(v8ee33,v67753,"y",v00d70,vc3981,isNewInit); month =wib9b79.m9f963(v8ee33,v67753,"M",v00d70,vc3981,isNewInit,v90911); date =wib9b79.m9f963(v8ee33,v67753,"d",v00d70,vc3981,isNewInit,v90911); hours =wib9b79.m9f963(v8ee33,v67753,"H",v00d70,vc3981,isNewInit); if (hours ==null){ hours =wib9b79.m9f963(v8ee33,v67753,"h",v00d70,vc3981,isNewInit); dsnt =wib9b79.m9f963(v8ee33,v67753,"t",v00d70,vc3981,isNewInit); } if (hours ==null) hours =v8ee33.getHours(); minutes =wib9b79.m9f963(v8ee33,v67753,"m",v00d70,vc3981,isNewInit); seconds =wib9b79.m9f963(v8ee33,v67753,"s",v00d70,vc3981,isNewInit); ms =wib9b79.m9f963(v8ee33,v67753,"f",v00d70,vc3981,isNewInit); } var ve6655; switch (vdbf6.charAt(0)){ case "y": var v7f943 =year; if (vdbf6.length >2){ if (v49333 ==ISKeyboardKey.DOWN){ if (v96839 <=(v7f943 -1)&&(v7f943 -1)<=v5e281) v7f943 -=1; } else { if (v96839 <=(v7f943 +1)&&(v7f943 +1)<=v5e281) v7f943 +=1; } } else v7f943 +=v49333 ==ISKeyboardKey.DOWN ? -1 : 1; year =v7f943; break; case "M": var vd6937 =month +((v49333 ==ISKeyboardKey.DOWN)? -1 : 1); ve6655 =new Date(year,vd6937,date); if (v96839 <=ve6655.getFullYear()&&ve6655.getFullYear()<=v5e281) month =vd6937; break; case "d": var v1da60 =date +((v49333 ==ISKeyboardKey.DOWN)? -1 : 1); if (v93d8 ==true){ var vd8589 =new Date(parseFloat(year),parseFloat(month),parseFloat(v1da60)); if (vd8589.getDay()==0) v1da60 +=(v49333 ==ISKeyboardKey.DOWN)? -2 : 1; else { if (vd8589.getDay()==6) v1da60 +=(v49333 ==ISKeyboardKey.DOWN)? -1 : 2; else { if (typeof (vebb22.DateTimeEditor)=="object"){ if (vebb22.DateTimeEditor.IsHoliday(parseFloat(v1da60),parseFloat(month),parseFloat(year))) v1da60 +=(v49333 ==ISKeyboardKey.DOWN)? -1 : 1; } } } } ve6655 =new Date(year,month,v1da60); if (v96839 <=ve6655.getFullYear()&&ve6655.getFullYear()<=v5e281) date =v1da60; break; case "h":  hours +=(v49333 ==ISKeyboardKey.DOWN)? -1 : 1;  if(hours <0) { hours =23; date--; } else if(hours >23) { hours =0; date++; }  dsnt =hours >11 ? v90911.PMDesignator : v90911.AMDesignator;   break; case "H": hours +=(v49333 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "m": minutes +=(v49333 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "s": seconds +=(v49333 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "f": ms +=(v49333 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "t": if (dsnt !=null){ if (v90911.AMDesignator ==dsnt) hours =hours <12 ? (hours +12): hours; else { if (hours >11) hours =hours -12; } } break; } var veb096 =new Date(year,month,date,hours,minutes,seconds,ms); va7b70.OldValue =IS.GetFullCommonDateTimeFormat(veb096); va7b70.NewValue =va7b70.OldValue; v85c56.Validate(va7b70,ve3778); if (wib9b79.mdb625(vebb22,vebb22.EditFormat)){ if (v00d70.indexOf("t")>-1){ var va5188 =veb096.getDate();   if (date ==va5188){  if (hours ==12 &&(vdbf6.charAt(0)!='y' &&vdbf6.charAt(0)!='M' &&vdbf6.charAt(0)!='d')){   if (dsnt ==v90911.PMDesignator) dsnt =v49333 ==ISKeyboardKey.DOWN ? v90911.AMDesignator : dsnt; else dsnt =v49333 ==ISKeyboardKey.DOWN ? v90911.PMDesignator : dsnt; } else { dsnt =hours >11 &&hours <24 ? v90911.PMDesignator : v90911.AMDesignator; } } else if(vdbf6.charAt(0)!='y' &&vdbf6.charAt(0)!='M' &&vdbf6.charAt(0)!='d') { dsnt =date >va5188 ? v90911.PMDesignator : v90911.AMDesignator; }  var v54b82 =wib9b79.m6ed26(v67753,"t"); v54b82[1] =dsnt; } wib9b79.m62336(v67753,va7b70,vc3981); if (dsnt !=null &&dsnt !=0){ for (var v3ce65 =0; v3ce65 <v67753.length; v3ce65++){ if (v67753[v3ce65][0].indexOf("t")>-1){ v67753[v3ce65][1] =dsnt; break; } } } vebb22.Value =va7b70.FormattedValue; vebb22.Text =vebb22.EditText =wib9b79.m78822(ve3778,v67753,v00d70,vef523,v22857,vc3981,vffa2); } return vebb22.EditText; }, m2fa85:function(v1d013,v79373,vced23){ if (v1d013.ResetOnInvalidEntry ==true) return false; if ("dMy".indexOf(v79373.charAt(0))>-1){ var va9511 =v1d013.HighLight; var vd6b67 =v1d013.EditFormat; var v99949 =vd6b67.MaskInfo; var v1016 =v99949.ArrREExpression; var v4f145 =v99949.ValueParts; var vf8d33 =v99949.PromptChar; var vf9974 =new RegExp(vf8d33,"g"); var v3db6 =wib9b79.m6ed26(v4f145,"d"); if (v3db6 ==null) return true; if (v3db6[1] ==null) return true; if (v3db6[1].replace(vf9974,"")=="") return true; v3db6 =wib9b79.m6ed26(v4f145,"M"); if (v3db6 ==null) return true; if (v3db6[1] ==null) return true; if (v3db6[1].replace(vf9974,"")=="") return true; var v36b30 =vd6b67.Format; var year,month,date,day,isNewInit; var v10120 =new Date(); var nv,nms; var vd7313 =v1d013.CultureInfo.DateTimeFormatInfo; isNewInit =wib9b79.me5535(v4f145,v1d013.HtmlObj.value,v99949.ArrLiterals,vf8d33); year =wib9b79.m9f963(v10120,v4f145,"y",v36b30,vf8d33,isNewInit); month =parseFloat(wib9b79.m9f963(v10120,v4f145,"M",v36b30,vf8d33,isNewInit,vd7313)); date =parseFloat(wib9b79.m9f963(v10120,v4f145,"d",v36b30,vf8d33,isNewInit)); v10120 =new Date(year,month,date); if (isNaN(v10120)) return false; if ("My".indexOf(v79373.charAt(0))>-1){ if (month !=-1){ while (v10120.getMonth()!=month){ date--; isInc =true; v10120 =new Date(year,month,date); } date =v10120.getDate(); day =v10120.getDay(); nv; for (var v5ba97 =0; v5ba97 <v4f145.length; v5ba97++){ if (v4f145[v5ba97][0].indexOf("d")>-1){ if (v4f145[v5ba97][0].length <3) nv =date.toString(); else { nms =v4f145[v5ba97][0].length ==3 ? vd7313.AbbreviatedDayNames : vd7313.DayNames; nv =nms[day]; } for (var vac110 =0; vac110 <v4f145[v5ba97][3]; vac110++){ if (nv.length <v4f145[v5ba97][3]){ vf8d33 =v99949.MaskExpression.charAt(v4f145[v5ba97][2] +vac110)=="0" ? "0" : v99949.PromptChar; if (v4f145[v5ba97][0].length <3) nv =vf8d33 +nv; else nv =nv +vf8d33; } } v4f145[v5ba97][1] =nv; } } } } else { if (v79373.charAt(0)=="d"){ day =v10120.getDay(); if (vced23 !=null) date =date +(vced23 -day); v10120 =new Date(year,month,date); date =v10120.getDate(); for (var v5ba97 =0; v5ba97 <v4f145.length; v5ba97++){ if (v4f145[v5ba97][0].indexOf("d")>-1){ if (v4f145[v5ba97][0].length <3) nv =date.toString(); else { nms =v4f145[v5ba97][0].length ==3 ? vd7313.AbbreviatedDayNames : vd7313.DayNames; nv =nms[day]; } for (var vac110 =0; vac110 <v4f145[v5ba97][3]; vac110++){ if (nv.length <v4f145[v5ba97][3]){ if (v4f145[v5ba97][0].length <3) nv =vf8d33 +nv; else nv =nv +vf8d33; } } v4f145[v5ba97][1] =nv; } } } } v1d013.SetValue(wib9b79.m78822(v1d013.CultureInfo,v4f145,v36b30,v99949.ArrLiterals,v99949.ArrLiteralsChar,vf8d33,v99949.ArrREExpression)); v1d013.HtmlObj.setActive(); } return true; }, me5535:function(vdd352,v9d792,vb5f57,v5ee80){ var vac717 =true; if (v9d792 !=null &&v9d792 !=""){ for (var vb7723 =0; vb7723 <vdd352.length; vb7723++){ vdd352[vb7723][1] =v9d792.substr(vdd352[vb7723][2],vdd352[vb7723][3]); } } return vac717; }, m78822:function(v50988,v5f117,va2984,vfdc81,v6a242,v96835,v3d883,vcd649,v12997){ var v7a08 =""; var v4d871 =0; var v1a042 =""; var vf7384 =""; var v73655 =""; var vf2679 =""; var v8c492 =0; var v7d051; var v1bc21 =0; var vdba29 =false; for (var va9a10 =0; va9a10 <vfdc81.length; va9a10++){ if (vfdc81[va9a10] ==0){ if (v12997 ==false) v7a08 +=v6a242[va9a10]; else v7a08 +=v3d883[vfdc81[va9a10]].replace("\\",""); } else { if (va9a10 >0) vdba29 =(vfdc81[va9a10] -vfdc81[va9a10 -1])>1; else vdba29 =true; if (vdba29){ do { v1a042 =v5f117[v4d871][1]; v73655 =v5f117[v4d871][0]; v1bc21 =v5f117[v4d871][3]; if (v73655.length >2 &&v50988 !=null &&isNaN(parseFloat(v1a042))==false &&(v73655.indexOf("M")>-1 ||v73655.indexOf("d")>-1)){ var v0ec64; if (v73655.indexOf("M")>-1) v0ec64 =v73655.length ==3 ? v50988.DateTimeFormatInfo.AbbreviatedMonthNames : v50988.DateTimeFormatInfo.MonthNames; else v0ec64 =v73655.length ==3 ? v50988.DateTimeFormatInfo.AbbreviatedDayNames : v50988.DateTimeFormatInfo.DayNames; var v71a96 =false; for (var v1f938 =0; v1f938 <v0ec64.length; v1f938++){ if (v1a042 ==v0ec64[v1f938]){ v71a96 =true; vf7384 =v1a042; break; } } if (v71a96 ==false){ var v51c81 =new RegExp(v96835,"g"); var v09f35 =v1a042.replace(v51c81,""); for (var v1f938 =0; v1f938 <v0ec64.length; v1f938++){ if (v09f35 ==v0ec64[v1f938]){ v71a96 =true; vf7384 =v09f35; break; } } } if (v71a96 ==false) vf7384 =v0ec64[parseFloat(v1a042)]; if (v1bc21 >vf7384){ for (var va9a10 =vf7384.length; va9a10 <v1bc21; va9a10++){ vf7384 +=v96835; } } else { if (v1bc21 <vf7384) vf7384 =vf7384.substr(0,p); } while (vf7384.length <v5f117[v4d871][3]){ vf7384 +=v96835; } v5f117[v4d871][1] =vf7384; v7a08 +=vf7384; } else { v8c492 =v7a08.length ==0 ? 0 : v7a08.length; v7d051 =false; vf7384 =""; for (var v0c725 =0; v0c725 <v1bc21; v0c725++){ vf2679 =v1a042.charAt(v0c725); if (v0c725 >=v1a042.length) vf2679 =v96835; else { if (vf2679 !="0" ||vcd649) v7d051 =true; if (vf2679 ==" " &&v96835 !=null) vf2679 =v96835; if (v7d051 ==false &&v3d883[v8c492].indexOf("?")>-1){ if (v73655 !=null &&v73655 !="" &&v73655 !="0"){ if (vf2679 =="0" &&parseFloat(v1a042)>-1) vf2679 =v96835; } } else { if (v73655 !=null &&v73655 !=""){ if (("dM".indexOf(v73655.charAt(0))<0 ||v73655.length <3)&&vf2679 ==v96835 &&vcd649) vf2679 ="0"; } } v8c492++; } vf7384 +=vf2679; } v5f117[v4d871][1] =vf7384; v7a08 +=vf7384; } v4d871++; if ((v4d871 +1)>v5f117.length) break; } while (v5f117[v4d871][2] <vfdc81[va9a10]); } if (v12997 ==false) v7a08 +=v6a242[va9a10]; else { v7a08 +=v3d883[vfdc81[va9a10]].replace("\\",""); } } } if (v4d871 <v5f117.length){ for (var v6e546 =v4d871; v6e546 <v5f117.length; v6e546++){ v1a042 =v5f117[v6e546][1]; v73655 =v5f117[v6e546][0]; v1bc21 =v5f117[v6e546][3]; if (v73655.length >2 &&v50988 !=null &&isNaN(parseFloat(v1a042))==false &&(v73655.indexOf("M")>-1 ||v73655.indexOf("d")>-1)){ var v0ec64; if (v73655.indexOf("M")>-1) v0ec64 =v73655.length ==3 ? v50988.DateTimeFormatInfo.AbbreviatedMonthNames : v50988.DateTimeFormatInfo.MonthNames; else v0ec64 =v73655.length ==3 ? v50988.DateTimeFormatInfo.AbbreviatedDayNames : v50988.DateTimeFormatInfo.DayNames; vf7384 =v0ec64[parseFloat(v1a042)]; if (v1bc21 >vf7384){ for (var va9a10 =vf7384.length; va9a10 <v1bc21; va9a10++){ vf7384 +=v96835; } } else { if (v1bc21 <vf7384) vf7384 =vf7384.substr(0,p); } v5f117[v6e546][1] =vf7384; v7a08 +=vf7384; } else { v8c492 =v7a08.length ==0 ? 0 : v7a08.length; v7d051 =false; vf7384 =""; for (var v0c725 =0; v0c725 <v1bc21; v0c725++){ vf2679 =v1a042.charAt(v0c725); if (v0c725 >=v1a042.length) vf2679 =v96835; else { if (vf2679 !="0" ||vcd649 ==true) v7d051 =true; if (vf2679 ==" " &&v96835 !=null) vf2679 =v96835; if (v7d051 ==false &&v3d883[v8c492].indexOf("?")>-1){ var v73655 =v5f117[v6e546][0]; if (v73655 !=null &&v73655 !="" &&v73655 !="0"){ if (vf2679 =="0" &&parseFloat(v1a042)>-1) vf2679 =v96835; } } else { if (v73655 !=null &&v73655 !=""){ if (("dM".indexOf(v73655.charAt(0))<0 ||v73655.length <3)&&vf2679 ==v96835 &&vcd649) vf2679 ="0"; } } v8c492++; } vf7384 +=vf2679; } if (v5f117[v6e546][0] =="yyyy" &&vf7384 =="0000") vf7384 ="2000"; v7a08 +=vf7384; } } } return v7a08; }, m99a97:function(vc0e74,v70b63){ var vfbc54 =true; var vcf354 =""; var v17339 =new RegExp("\\" +v70b63,"g"); var v77c91 =new RegExp("\\s+","g"); for (var vaf18 =0; vaf18 <vc0e74.length; vaf18++){ vcf354 =vc0e74[vaf18][1]; if (vcf354 ==null) continue; else { vcf354 =vcf354.replace(v17339,"").replace(v77c91,""); if (vcf354 !=""){ vfbc54 =false; break; } } } return vfbc54; }, m9f963:function(vd8129,vb3042,vf9c91,vb3d56,va4b29,v09674,va4795){ var vfec74; if (vb3d56.indexOf(vf9c91)>-1) vfec74 =wib9b79.mb2a21(vb3042,vf9c91,va4b29,va4795); else v09674 =true; if (vfec74 ==null){ if (v09674){ switch (vf9c91.charAt(0)){ case "y": vfec74 =vd8129.getFullYear(); break; case "M": vfec74 =vd8129.getMonth(); break; case "d": vfec74 =vd8129.getDate(); break; case "h": case "H": break; case "m": vfec74 =vd8129.getMinutes(); break; case "s": vfec74 =vd8129.getSeconds(); break; case "f": vfec74 =vd8129.getMilliseconds(); break; } } else vfec74 =0; } return vfec74; }, mb2a21:function(vb2940,v9661,vf4762,v5f162){ var v63785; var v5c521 =wib9b79.m6ed26(vb2940,v9661); if (v5c521 !=null){ if (v5c521[1] !=null){ v63785 =v5c521[1].replace(new RegExp("\\" +vf4762,"g"),""); if (v63785 !=""){ if (v5c521[0].indexOf("M")>-1){ if (v5c521[0].length <3) v63785 =parseFloat(v63785)-1; else { var v7e377 =v5c521[0].length ==3 ? v5f162.AbbreviatedMonthNames : v5f162.MonthNames; var vcdc59 =v63785.toLowerCase(); for (var v15151 =0; v15151 <v7e377.length; v15151++){ if (v7e377[v15151].toLowerCase().indexOf(vcdc59)>-1){ v63785 =v15151; break; } } } } else v63785 =v9661.indexOf("t")<0 ? parseFloat(v63785): v63785; } else { if ("fHmsz".indexOf(v5c521[0].charAt(0))>-1) v63785 =0; else { if ("h" ==v5c521[0].charAt(0)) v63785 =12; else v63785 =null; } } } } return v63785; }, me9d72:function(ve2779,v9af20){ var v40b95; if (v9af20.Type !="character"){ if (v9af20.HIdx !=null){ if (ve2779.length >v9af20.HIdx) v40b95 =ve2779[v9af20.HIdx]; else { v40b95 =ve2779[ve2779.length -1]; v9af20.HIdx =ve2779.length -1; v9af20.Idx =v40b95[2]; } } else { v9af20.HIdx =0; v40b95 =ve2779[0]; v9af20.Idx =v40b95[2]; } } else { if (v9af20.Idx ==null){ v40b95 =ve2779[0]; v9af20.Idx =v9af20.HIdx =v40b95[2]; } else { for (var v0a680 =0; v0a680 <ve2779.length; v0a680++){ if (ve2779[v0a680][2] ==v9af20.Idx){ v40b95 =ve2779[v0a680]; break; } } if (v40b95 ==null){ if (v9af20.Idx >ve2779[ve2779.length -1][2]){ v40b95 =ve2779[ve2779.length -1]; v9af20.HIdx =v9af20.Idx =v40b95[2]; } else { v40b95 =ve2779[0]; v9af20.Idx =v9af20.HIdx =v40b95[2]; } } } } return v40b95; }, m6ed26:function(v53e34,vee899){ var vd8534; for (var ve0299 =0; ve0299 <v53e34.length; ve0299++){ if (v53e34[ve0299][0].indexOf(vee899)>-1){ if (v53e34[ve0299][0].indexOf("d")>-1 &&v53e34[ve0299][0].length >2) continue; vd8534 =v53e34[ve0299]; break; } } return vd8534; }, m09457:function(v3ec9,v17d87,vd6833,v8e454,v21816){ if (v17d87 !="character"){ for (var vc2434 =0; vc2434 <vd6833.length; vc2434++){ if ("0#".indexOf(vd6833.charAt(vc2434))<0) return v3ec9; } } v3ec9 =parseFloat(v3ec9); if (!isNaN(v3ec9)){ if (v17d87 =="character"){ if (v8e454 ==ISKeyboardKey.DOWN){ if (v3ec9 ==0) v3ec9 =9; else v3ec9 -=1; } else { if (v3ec9 ==9) v3ec9 =0; else v3ec9 +=1; } } else { var v3f999 =""; for (var vc2434 =0; vc2434 <vd6833.length; vc2434++){ v3f999 =v3f999 +"9"; } v3f999 =parseFloat(v3f999); if (v8e454 ==ISKeyboardKey.DOWN){ if (v3ec9 ==0) v3ec9 =v3f999; else v3ec9 -=1; } else { if (v3ec9 ==v3f999) v3ec9 =0; else v3ec9 +=1; } } } else v3ec9 =0; v3ec9 =v3ec9.toString(); if (v3ec9.length <vd6833.length){ var vb2d89 =""; for (var vc2434 =0; vc2434 <(vd6833.length -v3ec9.length); vc2434++){ if (vd6833.charAt(vc2434)=="0") vb2d89 =vb2d89 +"0"; else vb2d89 =vb2d89 +v21816; } v3ec9 =vb2d89 +v3ec9; } return v3ec9; }, m52a16:function(v0d575,v4d925,v80b89,v88463,v4a082){ if (v4d925 =="character"){ v80b89 =v80b89.replace("?",""); if (v0d575 !=v4a082){ var vf601 =new Array(); var v52a36 =false; switch (v80b89){ case "(:[\\d|" +v4a082 +"]|" +v4a082 +")": case "[\\d|" +v4a082 +"]": case "[\\d|\\s]": v52a36 =true; case "(:\\d|" +v4a082 +")": case "\\d": if (v0d575 ==null ||v0d575 =="") v0d575 ="0"; vf601[0] =new Array(); vf601[0][0] =48; vf601[0][1] =57; break; case "(:[a-z]|" +v4a082 +")": case "[a-z]": if (v0d575 ==null ||v0d575 =="") v0d575 ="a"; vf601[0] =new Array(); vf601[0][0] =97; vf601[0][1] =122; break; case "(:[A-Z]|" +v4a082 +")": case "[A-Z]": if (v0d575 ==null ||v0d575 =="") v0d575 ="A"; vf601[0] =new Array(); vf601[0][0] =65; vf601[0][1] =90; break; case "(:[A-Z0-9]|" +v4a082 +")": case "[A-Z0-9]": if (v0d575 ==null ||v0d575 =="") v0d575 ="A"; vf601[0] =new Array(); vf601[0][0] =65; vf601[0][1] =90; vf601[1] =new Array(); vf601[1][0] =48; vf601[1][1] =57; break; case "(:[a-z0-9]|" +v4a082 +")": case "[a-z0-9]": if (v0d575 ==null ||v0d575 =="") v0d575 ="a"; vf601[0] =new Array(); vf601[0][0] =97; vf601[0][1] =122; vf601[1] =new Array(); vf601[1][0] =48; vf601[1][1] =57; break; case "(:[a-zA-Z]|" +v4a082 +")": case "[a-zA-Z]": if (v0d575 ==null ||v0d575 =="") v0d575 ="a"; vf601[0] =new Array(); vf601[0][0] =97; vf601[0][1] =122; vf601[1] =new Array(); vf601[1][0] =65; vf601[1][1] =90; break; case "(:\\w|" +v4a082 +")": case "\\w": if (v0d575 ==null ||v0d575 =="") v0d575 ="a"; vf601[0] =new Array(); vf601[0][0] =97; vf601[0][1] =122; vf601[1] =new Array(); vf601[1][0] =65; vf601[1][1] =90; vf601[2] =new Array(); vf601[2][0] =48; vf601[2][1] =57; break; default: if (v0d575 ==null ||v0d575 =="") v0d575 ="a"; vf601[0] =new Array(); vf601[0][0] =33; vf601[0][1] =126; vf601[1] =new Array(); vf601[1][0] =161; vf601[1][1] =255; break; } var vfad37; var v6f198 =vfad37 =v0d575.charCodeAt(0); for (var vdab60 =0; vdab60 <vf601.length; vdab60++){ if (vf601[vdab60][0] <v6f198 &&v6f198 <vf601[vdab60][1]){ v6f198 +=v88463 ==ISKeyboardKey.DOWN ? -1 : 1; break; } else { if (vf601[vdab60][0] ==v6f198){ if (v88463 ==ISKeyboardKey.DOWN) v6f198 =vf601[(vdab60 ==0)? vf601.length -1 : vdab60 -1][1]; else v6f198 +=1; break; } else { if (vf601[vdab60][1] ==v6f198){ if (v88463 ==ISKeyboardKey.DOWN) v6f198 -=1; else { if (!v52a36) v6f198 =vf601[(vdab60 +1 <vf601.length)? vdab60 +1 : 0][0]; else v6f198 =v4a082.charCodeAt(0); } break; } } } } v0d575 =String.fromCharCode(v6f198); } else { switch (v80b89){ case "(:[\\d|" +v4a082 +"]|" +v4a082 +")": case "[\\d|" +v4a082 +"]": case "[\\d|\\s]": case "(:\\d|" +v4a082 +")": case "\\d": v0d575 ="0"; break; case "(:[a-z]|" +v4a082 +")": case "[a-z]": case "(:[a-zA-Z]|" +v4a082 +")": case "[a-zA-Z]": case "(:[a-z0-9]|" +v4a082 +")": case "[a-z0-9]": case "(:\\w|" +v4a082 +")": case "\\w": v0d575 ="a"; break; case "(:[A-Z]|" +v4a082 +")": case "[A-Z]": case "(:[A-Z0-9]|" +v4a082 +")": case "[A-Z0-9]": v0d575 ="A"; break; default: v0d575 ="a"; break; } } } return v0d575; }, m8e484:function(v4a96,vd3292,v89e26,v6e731){ if (v4a96 ==null ||v4a96.XmlDt ==null)return; var v6f015 =v4a96.XmlDt.selectSingleNode("//MaskInfo"); if (v6f015){ var v4e944 =new MaskInfo(); IS.SetProperties(v4e944,v6f015); var vc8622 =new RegExp("\\+","g"); v4e944.REExpression =v4e944.REExpression.replace(vc8622," "); v4e944.REExpression =unescape(v4e944.REExpression); v4e944.MaskExpression =v4e944.MaskExpression.replace(vc8622," "); v4e944.MaskExpression =unescape(v4e944.MaskExpression); for (var v7ef86 =0; v7ef86 <v4e944.ArrLiterals.length; v7ef86++){ v4e944.ArrLiterals[v7ef86] =parseFloat(v4e944.ArrLiterals[v7ef86]); }  var vc8622 =new RegExp("&#00"); for (var v7ef86 =0; v7ef86 <v4e944.ArrLiteralsChar.length; v7ef86++){ v4e944.ArrLiteralsChar[v7ef86] =v4e944.ArrLiteralsChar[v7ef86].replace(vc8622," "); } v4e944.ArrREExpression =wib9b79.m69a64(v6f015,v4a96.MaskType); v4e944.ValueParts =wib9b79.m56846(vd3292,v4a96.Format,v89e26,v4e944.ArrLiterals); wib9b79.me5535(v4e944.ValueParts,vd3292,v4e944.ArrLiterals,v4e944.PromptChar); v4a96.MaskInfo =v4e944; with (v6f015){ removeAttribute("ArrLiterals"); removeAttribute("ArrLiteralsChar"); removeAttribute("ArrREExpression"); removeAttribute("CustomOptionalPlaceHolderCharList"); removeAttribute("CustomRequiredPlaceHolderCharList"); removeAttribute("REExpression"); removeChild(selectSingleNode("ArrREExpression")); } } }, me9c14:function(vfa361){ if (vfa361 ==null ||vfa361.XmlDt ==null)return; IS.SetPropertiesToXml(vfa361.MaskInfo,vfa361.XmlDt.selectSingleNode("//MaskInfo")); }, m69a64:function(v0af0,v70191){ var v1c745 =new Array(); if (v0af0 !=null){ var vbe512 =v0af0.selectSingleNode("ArrREExpression"); if (vbe512 !=null){ v1c745 =new Array(vbe512.childNodes.length); var v6b860 =new RegExp("\\+","g"); for (var v2f054 =0; v2f054 <v1c745.length; v2f054++){ if (v70191 !="Other") v1c745[v2f054] =ISXml.GetAttribute(vbe512.childNodes[v2f054],"Pattern").replace(v6b860," "); else v1c745[v2f054] =ISXml.GetAttribute(vbe512.childNodes[v2f054],"Pattern"); if (v1c745[v2f054] !="%5c+") v1c745[v2f054] =unescape(v1c745[v2f054]); else v1c745[v2f054] =" "; if (v1c745[v2f054] =="\\") v1c745[v2f054] ="\\ "; } } } return v1c745; }, m46067:function(v33011,v9d449,vffc15){ var v4ce36 =true; var vf4060 =v33011.EditFormat; var v9f263 =vf4060.MaskInfo; var vf7899 =v33011.HighLight;  if (vf7899.AutoTabWhenFilled ==true &&vf4060.IsNonCharEditing ==false &&v33011.LastAction.indexOf("MaskValid")>-1){ var v25469 =v9f263.ValueParts[v9f263.ValueParts.length -1]; if (vf7899.Idx !=v25469[2]){ v33011.HighLight.IsValidTextCustomFunction =v9f263.SkipOptional ==true ? wib9b79.m07035 : null; vf7899._o =wib0047.m5f668(v9d449); vf7899.IsValidTextCustomFunction =null; if (v9d449 ==null) v4ce36 =false; else { wib0047.mf1f36(v33011); } } }  var vf7899 =v33011.HighLight; if (vffc15 ==ISKeyboardKey.DELETE ||vffc15 ==ISKeyboardKey.BACKSPACE){ if (vf7899.Type !="character") v9f263.ValueParts[vf7899.HIdx][1] =vf7899.Text; else { for (var v7e95 =0; v7e95 <v9f263.ValueParts.length; v7e95++){ if (v9f263.ValueParts[v7e95][2] ==vf7899.Idx){ v9f263.ValueParts[v7e95][1] =vf7899.Text; break; } } } } if (vf7899.Type !="character") vf4060.HighLightedFormat =v9f263.ValueParts[vf7899.HIdx][0]; else { if (vf7899.Type =="character"){ for (var v7e95 =0; v7e95 <v9f263.ValueParts.length; v7e95++){ if (v9f263.ValueParts[v7e95][2] ==vf7899.Idx){ vf4060.HighLightedFormat =v9f263.ValueParts[v7e95][0]; break; } } } } vf4060.HighLightedArrREExpression =new Array(); var v58e20 =0; for (var v7e95 =vf7899.Idx; v7e95 <(vf7899.Text.length +vf7899.Idx); v7e95++){ vf4060.HighLightedArrREExpression[v58e20] =vf4060.MaskInfo.ArrREExpression[v7e95]; v58e20++; } return v4ce36; }, m56846:function(va2886,v21f37,vaf368,v22b29,vfcb12){ var s,e,idx,arrVP,tempF =v21f37,tempV =va2886,c; idx =0; arrVP =new Array(); if (vaf368 !="character"){ if (v22b29.length >0){ for (var vb5866 =0; vb5866 <=v22b29.length; vb5866++){ if (vb5866 ==0 &&v22b29[vb5866] ==0){ c =va2886.charAt(v22b29[vb5866]); tempV =va2886.substr(v22b29[vb5866] +1); tempF =tempF.substr(tempF.indexOf(c)+1); continue; } else { if ((v22b29[vb5866] -v22b29[vb5866 -1])==1){ c =va2886.charAt(v22b29[vb5866]); tempV =va2886.substr(v22b29[vb5866] +1); tempF =tempF.substr(tempF.indexOf(c)+1); continue; } } if (vb5866 ==v22b29.length &&tempV =="")break; arrVP[idx] =new Array(); if (vb5866 <v22b29.length){ c =va2886.charAt(v22b29[vb5866]); arrVP[idx][0] =tempF.substr(0,tempF.indexOf(c)); arrVP[idx][3] =tempV.indexOf(va2886.charAt(v22b29[vb5866])); tempV =va2886.substr(v22b29[vb5866] +1); tempF =tempF.substr(tempF.indexOf(c)+1); } else { arrVP[idx][0] =tempF; arrVP[idx][3] =tempV.length; } arrVP[idx][1] =null; arrVP[idx][2] =vb5866 ==0 ? 0 : v22b29[vb5866 -1] +1; idx++; } } else { arrVP[0] =new Array(); arrVP[0][0] =tempF; arrVP[0][1] =null; arrVP[0][2] =0; arrVP[0][3] =va2886.length; } } else { var va9728 =0; for (var vb5866 =0; vb5866 <va2886.length; vb5866++){ if (v22b29[va9728] !=vb5866){ arrVP[idx] =new Array(); arrVP[idx][0] =tempF.length >0 ? tempF.charAt(vb5866): ""; arrVP[idx][1] =""; arrVP[idx][2] =vb5866; arrVP[idx][3] =1; idx++; } else va9728++; } } return arrVP; }, m51142:function(v51161,vf8c26,vc6920){ if (vf8c26 !=null &&(v51161[v51161.length -1][2] +v51161[v51161.length -1][3])==vf8c26.length){ for (var v3b077 =0; v3b077 <v51161.length; v3b077++) v51161[v3b077][1] =vf8c26.substr(v51161[v3b077][2],v51161[v3b077][3]); } return v51161; }, m2b267:function(v5c680,v81436){ for (var v1ed80 =0; v1ed80 <v5c680.length; v1ed80++){ v5c680[v1ed80][1] =""; for (var vbaf36 =0; vbaf36 <v5c680[v1ed80][3]; vbaf36++) v5c680[v1ed80][1] +=v81436; } return v5c680; }, m89394:function(v14a82){ var vfbd72 =v14a82.EditFormat; if (vfbd72){ if (vfbd72.MaskType =="DateTime" ||vfbd72.MaskType =="Number"){ var v30884 =vfbd72.MaskInfo; var vfad90 =v30884.PromptChar; var vc360 =v30884.ValueParts; var v42c78 =v30884.ArrREExpression; var v1f263 =0; var f,v,v14a82; for (var v6e71 =0; v6e71 <vc360.length; v6e71++){ f =vc360[v6e71][0]; if (vfbd72.MaskType =="DateTime"){ if (f.charAt(0)=="t" ||(f.length >3 &&f.charAt(0)!="f")) continue; } v =""; for (var v14b4 =0; v14b4 <vc360[v6e71][3]; v14b4++){ v1f263 =vc360[v6e71][2] +v14b4; v14a82 =vc360[v6e71][1].charAt(v14b4); if (v14a82 ==vfad90) v =v +(v42c78[v1f263].indexOf(vfad90)>-1 ? v14a82 : (vc360[v6e71][0].length >2 &&"dM".indexOf(vc360[v6e71][0].charAt(0))>-1 ? v14a82 : "0")); else v =v +v14a82; } vc360[v6e71][1] =v; } } } }, m07035:function(v4d022,veb862){ var v68766 =v4d022.EditFormat.MaskInfo.ArrREExpression; var v5ac83 =true; if (v68766[veb862].indexOf("?")>-1){ var vffa9 =false; for (var v88327 =veb862; v88327 <v68766.length; v88327++){ if (v68766[v88327].indexOf("?")<0){ vffa9 =true; break; } } if (vffa9) return false; else return true; } return v5ac83; }, mbf236:function(vc0713){ var vc2b57 =this; if (!vc2b57) return false; if (!vc2b57.Enabled ||vc2b57.ReadOnly){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } vc2b57.IsDirty =false; if (vc2b57.EditFormat){ var vaf431 =vc2b57.EditFormat; if (vaf431.Enabled){ if (vaf431.Events !=null) ISEvent.Raise(vaf431.Events.OnBeforeValidate,vc2b57.Id,vc2b57.EditText); vaf431.IsNonCharEditing =false; if (!vaf431._IsRuntimeValid){ if (vaf431._TempEditText !=null &&vaf431._TempEditText !=""){ vc2b57.SetValue(vaf431._TempEditText); vc2b57.Text =vaf431._TempText; vc2b57.Value =vaf431._TempValue; vc2b57.EditText =vaf431._TempEditText; } if (vc2b57.HighLight)wib0047.mf1f36(vc2b57.Id); } else { vaf431._LastValueBeforeEditFormat =vc2b57.Value; if (vaf431.ClientData.IsValid ||!vaf431.IsValidateOnChange){ vc2b57.SetValue(vc2b57.EditText); WindowEngine.Hide(vaf431.WindowInfo); } else { if (vaf431.MaskType !="Other"){ WindowEngine.Show(vaf431.WindowInfo); if (vaf431.Events) ISEvent.Raise(vaf431.Events.OnValidateError,vc2b57.Id); } else { vc2b57.Text =vc2b57.Value =wib9b79.m99276(vaf431,vc2b57.Value); vc2b57.HtmlObj.value =vc2b57.EditText =wib9b79.meb747(vc2b57); var vb0c13 =vaf431.ClientData; var v78871 =document.getElementById(vc2b57.Id +IS.MaskValidatorSuffix); vb0c13.IsValid =MaskValidatorEvaluateIsValid(v78871,true,true); if (vb0c13.IsValid) vc2b57.DateDataSource ="EditFormat"; } if (vc2b57.HighLight) wib0047.mf1f36(vc2b57.Id); } } } vc2b57._RuntimeCancelEvent =false; } }, m2e97:function(vc477,v52d8){ var v6aa13 =vc477.EditFormat; var ve2610 =v6aa13.MaskInfo; if (v6aa13.Events !=null) if (!ISEvent.Raise(v6aa13.Events.OnBeforeValidate,vc477.Id,v52d8))return false; var v7d498 =true; var v4a274 =false; if (v52d8 ==null ||v52d8 ==""){ v52d8 =v6aa13.ParseRawText(""); vc477.Value =vc477.Text =v52d8; vc477.HtmlObj.value =vc477.EditText =wib9b79.meb747(vc477); wib9b79.me5535(ve2610.ValueParts,v52d8,ve2610.ArrLiterals,ve2610.PromptChar); v4a274 =true; } else { if (v52d8 !=null &&((v6aa13.MaskType =="DateTime" &&typeof (v52d8)=="object" &&v52d8.constructor ==Date)||(v6aa13.MaskType =="Number" &&typeof (v52d8)=="number"))){ var v25865 =IS.GetValidationEngine(); var v18f2 =v6aa13.ClientData; with (v18f2){ Type =v6aa13.MaskType.toLowerCase(); Format =v6aa13.Format; OldValue =NewValue =v6aa13.MaskType =="DateTime" ? IS.GetFullCommonDateTimeFormat(v52d8): v52d8.toString(); IsValid =true; } v25865.Validate(v18f2,vc477.CultureInfo); wib9b79.mdb625(vc477,v6aa13); v7d498 =v18f2.IsValid; if (v6aa13.MaskType =="DateTime"){ wib9b79.m51142(ve2610.ValueParts,v18f2.FormattedValue,ve2610.PromptChar); v52d8 =wib9b79.m78822(vc477.CultureInfo,ve2610.ValueParts,v6aa13.Format,ve2610.ArrLiterals,ve2610.ArrLiteralsChar,ve2610.PromptChar,ve2610.ArrREExpression,true,true); } else v52d8 =v18f2.FormattedValue; if (v7d498) vc477.DateDataSource ="EditFormat"; } else { if (v52d8 !=null) v52d8 =v52d8.toString(); } if (v7d498 ==true){ var v38413 =new RegExp(ve2610.REExpression); v7d498 =(v38413.exec(v52d8)!=null); } } if (v6aa13.Events !=null) if (!ISEvent.Raise(v6aa13.Events.OnAfterValidate,vc477.Id,v52d8,v7d498))return false; if (v4a274) return true; if (v7d498){ if (v6aa13.MaskType !="Other"){ var v25865 =IS.GetValidationEngine(); var v18f2 =v6aa13.ClientData; with (v18f2){ Type =v6aa13.MaskType.toLowerCase(); Format =v6aa13.Format; OldValue =NewValue =v52d8; PromptChar =ve2610.PromptChar; IsValid =true; } v25865.UnMask(v18f2,vc477.CultureInfo); if (v18f2.IsValid){ vc477.Value =v18f2.FormattedValue; vc477.Text =v52d8; vc477.HtmlObj.value =vc477.EditText =wib9b79.meb747(vc477); vc477.DateDataSource ="EditFormat"; } } else { vc477.Text =vc477.Value =v52d8; vc477.HtmlObj.value =vc477.EditText =wib9b79.meb747(vc477); } wib9b79.me5535(ve2610.ValueParts,v52d8,ve2610.ArrLiterals,ve2610.PromptChar); } return v7d498; }, mee558:function(vb674,v27a13,v97a10,v1a879){ var v6b863 =vb674.HtmlObj; var v2d987 =document.getElementById(vb674.Id +IS.MaskValidatorSuffix); var v2f12 =vb674.EditFormat; v2f12._TempEditText =v27a13; v2f12._TempText =vb674.Text; v2f12._TempValue =vb674.Value; var v5894; if (v97a10 !=true &&vb674.DisplayFormat){ if (vb674.DisplayFormat.Enabled) v5894 =vb674.DisplayFormat; } var v4829 =v2f12.ClientData; var v78a35 =v2f12.MaskInfo; var v8c13 =wib9b79.m99a97(v78a35.ValueParts,v78a35.PromptChar); var v62617 =false; if (v2f12.MaskType !="Other"){ if (vb674.Nullable &&v8c13){ if (vb674.Events !=null &&v5894 ==null){ if (!ISEvent.Raise(vb674.Events.OnBeforeValueChanged,vb674.Id,vb674.Value,vb674.Text,"","")){ v6b863.value =vb674.EditText; v62617 =true; } } if (!v62617){ vb674.EditText =v27a13; vb674.Text =vb674.Value =""; WindowEngine.Hide(v2f12.WindowInfo); v4829.IsValid =true; if (vb674.Events !=null &&v5894 ==null) ISEvent.Raise(vb674.Events.OnAfterValueChanged,vb674.Id,vb674.Value,vb674.Text); } } else { var vfb118 =""; var va7169 =IS.GetValidationEngine(); var v94947; if (!vb674.Nullable &&v8c13){ if (v2f12.MaskType =="DateTime"){ v94947 =new Date(); vfb118 =IS.GetFullCommonDateTimeFormat(v94947);  } else vfb118 ="0"; with (v4829){ Type =v2f12.MaskType.toLowerCase(); Format =v2f12.Format; OldValue =NewValue =vfb118; PromptChar =v78a35.PromptChar; IsValid =true; } va7169.Validate(v4829,vb674.CultureInfo); wib9b79.mdb625(vb674,v2f12); if (v4829.IsValid){ vb674.DateDataSource ="EditFormat"; if (vb674.Events !=null &&v5894 ==null){ if (!ISEvent.Raise(vb674.Events.OnBeforeValueChanged,vb674.Id,vb674.Value,vb674.Text,vfb118,v4829.FormattedValue)){ v6b863.value =vb674.EditText; v62617 =true; } } if (!v62617){ vb674.Text =v4829.FormattedValue; v6b863.value =vb674.EditText =wib9b79.meb747(vb674); vb674.Value =vfb118; WindowEngine.Hide(v2f12.WindowInfo); if (vb674.Events !=null &&v5894 ==null) ISEvent.Raise(vb674.Events.OnAfterValueChanged,vb674.Id,vb674.Value,vb674.Text); } } } else { wib9b79.m89394(vb674); var v6f448; if (v2f12.MaskType =="DateTime"){ vfb118 =wib9b79.m78822(vb674.CultureInfo,v78a35.ValueParts,v2f12.Format,v78a35.ArrLiterals,v78a35.ArrLiteralsChar,v78a35.PromptChar,v78a35.ArrREExpression,true,true); v6f448 =vfb118; vfb118 =vfb118.replace(new RegExp(v78a35.PromptChar,"g"),""); } else { v6f448 =v27a13; with (v4829){ Type =v2f12.MaskType.toLowerCase(); Format =v2f12.Format; OldValue =NewValue =v27a13; PromptChar =v78a35.PromptChar; IsValid =true; } vfb118 =va7169.UnMask(v4829,vb674.CultureInfo); } with (v4829){ Type =v2f12.MaskType.toLowerCase(); Format =v2f12.Format; OldValue =NewValue =vfb118; PromptChar =null; IsValid =true; } va7169.Validate(v4829,vb674.CultureInfo); wib9b79.mdb625(vb674,v2f12); if (v4829.IsValid){ if (vb674.Events !=null &&v5894 ==null){ if (!ISEvent.Raise(vb674.Events.OnBeforeValueChanged,vb674.Id,vb674.Value,vb674.Text,vfb118,v6f448)){ v6b863.value =vb674.EditText; v62617 =true; } } if (!v62617){ vb674.Text =v6f448; vb674.Value =vfb118; vb674.HtmlObj.value =vb674.EditText =wib9b79.meb747(vb674); WindowEngine.Hide(v2f12.WindowInfo); var v83a93 =vb674.DateTimeEditor !=null ? vb674.DateTimeEditor.ClientData : null; if (v2f12.Format.indexOf("d")<0 &&v2f12.Format.indexOf("y")<0 &&v83a93 !=null &&v83a93.DateData !=null){ v4829.DateData.Day =v83a93.DateData.Day; v4829.DateData.Month =v83a93.DateData.Month; v4829.DateData.Year =v83a93.DateData.Year; } if (vb674.Events !=null &&v5894 ==null) ISEvent.Raise(vb674.Events.OnAfterValueChanged,vb674.Id,vb674.Value,vb674.Text); } } } } if (v4829.IsValid){ if (vb674.DisplayFormat){ if (v2f12.MaskType =="DateTime"){ if (!(vb674.Nullable &&v8c13)){ var vffa86 =v4829.DateData; v94947 =new Date(vffa86.Year,vffa86.Month,vffa86.Day,vffa86.Hour24,vffa86.Minute,vffa86.Second); vfb118 =IS.GetFullCommonDateTimeFormat(v94947);  var v6ee25 =vb674.DisplayFormat.ClientData; with (v6ee25){ Type =v2f12.MaskType.toLowerCase(); Format =vb674.DisplayFormat.Format; OldValue =NewValue =vfb118; PromptChar =null; IsValid =true; } va7169.Validate(v6ee25,vb674.CultureInfo); wib9b79.mdb625(vb674,v2f12); v6b863.value =vb674.Value =v6ee25.FormattedValue; if (v6ee25.IsValid) vb674.DateDataSource ="DisplayFormat"; } } else { v6b863.value =vb674.Value; } } WindowEngine.Hide(v2f12.WindowInfo);  v2d987.isvalid =v2f12._IsRuntimeValid =true;  return true; } else { if (v1a879 ==false) return false; WindowEngine.Show(v2f12.WindowInfo); if (v2f12.Events)ISEvent.Raise(v2f12.Events.OnValidateError,vb674.Id);  vb674._IsRuntimeCancelEvent =true; v2d987.isvalid =v2f12._IsRuntimeValid =false; if (!IS.ie){ if (v5894 ==null) wi8fe87.m3c098(vb674); }  else { wib0047.mf1f36(vb674.Id); } return false; } } else { v4829.IsValid =false; if (vb674.Nullable) v4829.IsValid =v8c13; if (v4829.IsValid ==false){ var v2d987 =document.getElementById(vb674.Id +IS.MaskValidatorSuffix); v4829.IsValid =MaskValidatorEvaluateIsValid(v2d987,true,true); } if (v4829.IsValid){  v2d987.isvalid =v2f12._IsRuntimeValid =true;  if (vb674.Events !=null){ if (!ISEvent.Raise(vb674.Events.OnBeforeValueChanged,vb674.Id,vb674.Value,vb674.Text)){ v6b863.value =vb674.EditText; v62617 =true; } } if (!v62617){ vb674.Value =vb674.Text =v6b863.value; vb674.HtmlObj.value =vb674.EditText =wib9b79.meb747(vb674); WindowEngine.Hide(v2f12.WindowInfo); if (vb674.Events !=null) ISEvent.Raise(vb674.Events.OnAfterValueChanged,vb674.Id,vb674.Value,vb674.Text); } } else { if (v1a879 ==false) return false; WindowEngine.Show(v2f12.WindowInfo); if (v2f12.Events) ISEvent.Raise(v2f12.Events.OnValidateError,vb674.Id); vb674._RuntimeCancelEvent =true; v2d987.isvalid =v2f12._IsRuntimeValid =false;  if (!IS.ie){ if (v5894 ==null) wi8fe87.m3c098(vb674); }  else { wib0047.mf1f36(vb674.Id); } return false; } return v4829.IsValid; } }, m7de95:function(){ var v7fb79 =this; if (v7fb79 ==null) return false; if (!v7fb79.Enabled ||v7fb79.ReadOnly){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } if (v7fb79.EditFormat){ if (v7fb79._IsActive ==false) return; var v0302 =document.getElementById(v7fb79.Id +IS.MaskValidatorSuffix); var vb4e62 =v7fb79.EditFormat; vb4e62.IsNonCharEditing =false; if (vb4e62.Enabled){ var v46843 =v7fb79.HtmlObj;    if (!v7fb79.IsDirty)v7fb79.IsDirty =v46843.value !=v7fb79.EditText; if (v7fb79.IsDirty){ var va7218 =wib9b79.mee558(v7fb79,v46843.value,true,false); if (va7218 ==false){ if (vb4e62.IsValidateOnChange){ window.event.cancelBubble =true; if (!IS.ie) setTimeout("ISGetObject('" +v7fb79.Id +"').SetFocus();",10); else WindowEngine.Show(vb4e62.WindowInfo); } else { WindowEngine.Hide(vb4e62.WindowInfo); v7fb79.EditText =v46843.value; return true; } } if (vb4e62.Events !=null) ISEvent.Raise(vb4e62.Events.OnAfterValidate,v7fb79.Id,v46843.value,va7218); return va7218; } else { v7fb79.IsDirty =v7fb79.Value !=vb4e62._LastValueBeforeEditFormat; if (!vb4e62._IsRuntimeValid &&vb4e62.IsValidateOnChange){ WindowEngine.Show(vb4e62.WindowInfo); setTimeout("ISGetObject('" +v7fb79.Id +"').SetFocus();",10); } } } } }, m3a164:function(){ var v72354 =this; if (v72354 ==null) return false; if (!v72354.Enabled ||v72354.ReadOnly){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } var v43991 =v72354.EditFormat.MaskInfo; var v3fc14 =v72354.HtmlObj.value; var v5398 =""; var v72354 =""; for (var va1b6 =0; va1b6 <v3fc14.length; va1b6++){ v72354 =v3fc14.charAt(va1b6); if (v72354 ==v43991.PromptChar) v72354 =" "; else { if (!v43991.CopyWithLiterals){ for (var v7465 =0; v7465 <v43991.ArrLiterals.length; v7465++){ if (va1b6 ==v43991.ArrLiterals[v7465]){ v72354 =" "; break; } } } } v5398 =v5398 +v72354; } event.returnValue =false; window.clipboardData.setData("Text",v5398); }, md522:function(){ var v01a28 =this; if (v01a28 !=null &&(!v01a28.Enabled ||v01a28.ReadOnly)){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } var vb8479 =window.clipboardData.getData("Text"); var v1ae66 =v01a28.EditText; var vf9f73 =v01a28.Text; var v6f161 =v01a28.Value; v01a28.HtmlObj.value =vb8479; if (wib9b79.m43c31(v01a28.EditFormat.MaskInfo.ArrREExpression,vb8479)){ v01a28.Text =v01a28.EditText =v01a28.Value =vb8479; return true; } else { WindowEngine.Hide(v01a28.EditFormat.WindowInfo); v01a28.EditText =v1ae66; v01a28.HtmlObj.value =v1ae66; v01a28.Text =vf9f73; v01a28.Value =v6f161; return false; } }, m4a965:function(va4348){ var vcf348 =va4348.EditFormat; var v80e89 =vcf348.MaskInfo; if (wib9b79.m99a97(v80e89.ValueParts,v80e89.PromptChar)) return ""; else return va4348.Value; }, mb6d79:function(v73923){ var vaec48 =v73923.EditFormat; var v9d889 =vaec48.MaskInfo; vaec48.Validate(); if (vaec48.ClientData.IsValid){ switch (vaec48.MaskType){ case "DateTime": var v6fd33 =vaec48.ClientData.DateData; if (v6fd33 !=null) return new Date(parseFloat(v6fd33.Year),parseFloat(v6fd33.Month),parseFloat(v6fd33.Day),parseFloat(v6fd33.Hour24),parseFloat(v6fd33.Minute),parseFloat(v6fd33.Second)); else return v73923.Value; break; case "Number": case "DynamicNumber": var vb8835 =IS.GetValidationEngine(); var v57260 =vaec48.ClientData; with (v57260){ Type =vaec48.MaskType.toLowerCase(); Format =vaec48.Format; OldValue =NewValue =v73923.EditText; PromptChar =v9d889.PromptChar; IsValid =true; } vb8835.UnMask(v57260,v73923.CultureInfo); if (v57260.IsValid) return parseFloat(v57260.FormattedValue); else return v73923.Value; break; default: return v73923.EditText; break; }; } } };function MaskValidatorDestructor(){ var v44e23 =delete wib9b79;}window.attachEvent("onunload",MaskValidatorDestructor);if (typeof (Sys)!="undefined") Sys.Application.notifyScriptLoaded();