
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 7/7/2010 7:33:45 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(v3d860,vb6e48,v61066){ var vf935 =window.event; var v73869 =ISGetObject(GetControlToValidateMV(v3d860)); if (vf935 &&vb6e48 !=true) { if (vf935.type =="change" ||vf935.type =="blur") { if (v73869) { if (v73869.EditFormat.MaskInfo) { if (!v73869.EditFormat.IsValidateOnChange) { return true; } } else return false; } else return false; } } var v62381 =ISGetObject(GetControlToValidateMV(v3d860)); if (v62381 ==null) return true; var vc0d36; if (v61066 ==true) vc0d36 =ValidatorTrim(v62381.HtmlObj.value); else { if (IS.ie ==false &&vf935 !=null) vc0d36 =vf935.srcElement ==v62381.HtmlObj ? ValidatorTrim(v62381.HtmlObj.value): v73869.EditText; else vc0d36 =ValidatorTrim(v62381.HtmlObj.value); } var vc5e16; if (vb6e48 ==true) vc5e16 =wi4675.m77f65(v3d860,vc0d36); else { var v11269 =v73869.DisplayFormat; if (v11269 !=null &&v11269.Enabled) { vc5e16 =true; wi4675._c =v62381; } else vc5e16 =wi4675.m77f65(v3d860,vc0d36); } if (!vc5e16 &&vb6e48 !=true) { if (vf935) { vf935.returnValue =false; vf935.cancelBubble =true; } } if (wi4675._c !=null) { var v73869 =wi4675._c; var vd9d54 =v73869.EditFormat.WindowInfo; if (!vc5e16) { WindowEngine.Show(vd9d54); if (v73869.EditFormat.Events) ISEvent.Raise(v73869.EditFormat.Events.OnValidateError,v73869.Id); if ((IS.safari ||IS.opera)&&vf935 !=null &&vf935.srcElement ==v73869.HtmlObj) setTimeout("ISGetObject('" +v73869.Id +"').SetFocus();",10); } else { WindowEngine.Hide(vd9d54); } } return vc5e16;};function GetControlToValidateMV(v88196){ var vafc96 =v88196.controltovalidate; if (vafc96 ==null) vafc96 =v88196.id.replace("_mv",""); return vafc96;};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 wi4675.mef18(this,s);};pEditF.Validate =function(){ return MaskValidatorEvaluateIsValid(document.getElementById(this._cId +IS.MaskValidatorSuffix),true);};pEditF.GetValueData =function(wi){ return wi4675.m41384(wi);};pEditF.GetData =function(){ return wi4675.mee50(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 wi4675 = { _c: null, m25230:function(vfec92){ if (!vfec92.IsInitMV){ var v9cd56 =new EditFormat(); var v1f10 =document.getElementById(vfec92.Id +IS.MaskValidatorSuffix); if (v1f10 ==null) return; var ve8928 =ISXml.GetElementById(v1f10.id +IS.XmlSuffix); if (ve8928 ==null) return; else { if (ISXml.GetAttribute(ve8928.documentElement,"MaskType")=="DynamicNumber") return; } v9cd56.XmlDt =ve8928; wi4675.m5771(v9cd56,vfec92); v9cd56._cId =vfec92.Id; vfec92.EditFormat =v9cd56; if (vfec92.HighLight !=null){ with (vfec92.HighLight){ PromptString =v9cd56.MaskInfo.PromptChar; OnHighLighted ="wi4675.mc4488"; invalidTextArray =v9cd56.MaskInfo.ArrLiterals; _InternalAutoTabWhenFilled =false; } } wi4675.m5da49(vfec92); vfec92.IsInitMV =true; } }, m5da49:function(v6b712){ var ve1492 =v6b712.HtmlObj; Listener.Add(ve1492,"onkeyup",wi4675.m8eb8,v6b712); Listener.Add(ve1492,"onkeydown",wi4675.mf7c75,v6b712); Listener.Add(ve1492,"onfocus",wi4675.mf5243,v6b712); Listener.Add(ve1492,(IS.ie ? "onbeforedeactivate" : "onblur"),wi4675.m91011,v6b712); Listener.Add(ve1492,"oncut",wi4675.ma0211,v6b712); Listener.Add(ve1492,"oncopy",wi4675.ma0211,v6b712); Listener.Add(ve1492,"onpaste",wi4675.m5de58,v6b712); }, mab816:function(v5bf12){ var v4a712 =v5bf12.HtmlObj; Listener.Remove(v4a712,"onkeyup",wi4675.m8eb8,v5bf12); Listener.Remove(v4a712,"onkeydown",wi4675.mf7c75,v5bf12); Listener.Remove(v4a712,"onfocus",wi4675.mf5243,v5bf12); Listener.Remove(v4a712,(IS.ie ? "onbeforedeactivate" : "onblur"),wi4675.m91011,v5bf12); Listener.Remove(v4a712,"oncut",wi4675.ma0211,v5bf12); Listener.Remove(v4a712,"oncopy",wi4675.ma0211,v5bf12); Listener.Remove(v4a712,"onpaste",wi4675.m5de58,v5bf12); }, m5771:function(v7d667,vf2058){ if (v7d667 ==null ||v7d667.XmlDt ==null) return; var v7b612 =v7d667.XmlDt.selectSingleNode("//MaskValidator"); if (v7b612 !=null){ IS.SetProperties(v7d667,v7b612); with (v7b612){ v7d667.WindowInfo =WindowEngine.Register(selectSingleNode("WindowInfo")); v7d667.WindowInfo.IsRelFromOffsetControl =true; v7d667.Events =ISEvent.Register(vf2058.HtmlObj,selectSingleNode("ClientSideEvents")); } wi4675.m04599(v7d667,vf2058.EditText,vf2058.HighLight.Type,vf2058.CultureInfo); } if (v7d667.MaskType =="Number"){ var v48d79 =vf2058.CultureInfo.NumberFormatInfo; v7d667._DecSprt =GetDecimalSeparator(v48d79,v7d667.Format); v7d667._GrpSprt =GetGroupSeparator(v48d79,v7d667.Format); v7d667._Sym =GetSymbol(v48d79,v7d667.Format); } }, m7e650:function(v9a942){ if (v9a942 ==null ||v9a942.XmlDt ==null) return; var v37c42 =v9a942.XmlDt.selectSingleNode("//MaskValidator"); if (v37c42 !=null){ IS.SetPropertiesToXml(v9a942,v37c42); WindowEngine.AssignPropertiesToXml(v9a942.WindowInfo,v37c42.selectSingleNode("WindowInfo")); wi4675.m61e68(v9a942); } }, m68357:function(v97942,v7d747){ if (v7d747.MaskType =="DateTime" &&v7d747.ClientData !=null){ if (v7d747.ClientData.IsValid){ var vec542 =v97942.IsDateInRange(v7d747.ClientData.DateData,v7d747.Format.indexOf("H")>-1 ||v7d747.Format.indexOf("h")>-1); v7d747.ClientData.IsValid =vec542; return vec542; } else return false; } else return true; }, m77f65:function(vccd81,v0d366){ var v8ce78 =ISGetObject(GetControlToValidateMV(vccd81)); if (v8ce78 ==null){ v8ce78 =new ISControl(GetControlToValidateMV(vccd81)); v8ce78.ClassName ="Common"; } wi4675._c =v8ce78; if (v8ce78 ==null) return; wi4675.m25230(v8ce78); if (v8ce78.EditFormat.MaskInfo ==null){ wi4675._c =null; return; } var v35216 =v8ce78.EditFormat; if (!v35216.Enabled) return false; var vb2c69 =v35216.MaskInfo; if (v8ce78.DisplayFormat &&IS.ie){ if (v8ce78.DisplayFormat.Enabled){ if (v8ce78.HtmlObj.value ==v0d366 ||v8ce78.Text ==v0d366) v0d366 =v8ce78.EditText; } } if (v35216.Events !=null) if (!ISEvent.Raise(v35216.Events.OnBeforeValidate,v8ce78.Id,v0d366)) return false; var v42781 =false; if (v8ce78.Nullable) v42781 =wi4675.mb2f67(vb2c69.ValueParts,vb2c69.PromptChar); if (!v42781){ v42781 =wi4675.m6f216(vb2c69.ArrREExpression,v0d366); if (v35216.MaskType !="Other"){ var v4ce14 =IS.GetValidationEngine(); var v3b43 =v35216.ClientData; with (v3b43){ Type =v35216.MaskType.toLowerCase(); Format =v35216.Format; var v6bf2 =new RegExp(v35216.MaskInfo.PromptChar,"g"); OldValue =NewValue =v0d366.replace(v6bf2,""); IsValid =true; } v4ce14.Validate(v3b43,v8ce78.CultureInfo); wi4675.m68357(v8ce78,v35216); v42781 =v3b43.IsValid; if (v42781) v8ce78.DateDataSource ="EditFormat"; } }  vccd81.isvalid =v35216._IsRuntimeValid =v42781;  if (v35216.Events !=null) if (!ISEvent.Raise(v35216.Events.OnAfterValidate,v8ce78.Id,v0d366,v42781)) return false; return v42781; }, m6f216:function(vcb717,vccc35){ var v38681 =false; for (var v48666 =0; v48666 <vcb717.length; v48666++){ v38681 =(new RegExp(vcb717[v48666])).exec(vccc35.charAt(v48666))!=null; if (v38681 ==false) break; } return v38681; }, m96929:function(v2ce28){ if (v2ce28.EditFormat !=null){ var v37217 =v2ce28.EditFormat; var v12835 =v37217.MaskInfo; var vaff2 =v12835.ValueParts; if (v37217.MaskType !="Other"){ var v5c54 =v37217.ClientData; with (v5c54){ Type =v37217.MaskType.toLowerCase(); Format =v37217.Format; OldValue =NewValue =v37217.MaskType !="Number" ? (v2ce28.Value.replace(new RegExp(v37217.MaskInfo.PromptChar,"g"),"")): v2ce28.Value; PromptChar =v37217.MaskInfo.PromptChar; IsValid =true; } var vd9b14 =IS.GetValidationEngine(); vd9b14.Validate(v5c54,v2ce28.CultureInfo); wi4675.m68357(v2ce28,v37217); if (v5c54.IsValid){ if (v37217.MaskType =="Number"){ wi4675.m41456(vaff2,v5c54.FormattedValue,v12835.ArrLiterals,v12835.PromptChar); v2ce28.EditText =v5c54.FormattedValue; } else { if (v2ce28.HighLight.Type =="phrase") wi4675.med770(vaff2,v5c54.FormattedValue,v12835.PromptChar); else { wi4675.med770(vaff2,v5c54.FormattedValue,v12835.PromptChar); var vbe221 =wi4675.mdf023(v2ce28.CultureInfo,vaff2,v37217.Format,v12835.ArrLiterals,v12835.ArrLiteralsChar,v12835.PromptChar,v12835.ArrREExpression,true,true); wi4675.m41456(vaff2,vbe221,v12835.ArrLiterals,v12835.PromptChar); } if ((vaff2[vaff2.length -1][2] +vaff2[vaff2.length -1][3])!=v5c54.FormattedValue.length){ try { wi4675.m80093(vaff2,v5c54,v12835.PromptChar); } catch (e){ } } v2ce28.EditText =wi4675.mdf023(v2ce28.CultureInfo,vaff2,v37217.Format,v12835.ArrLiterals,v12835.ArrLiteralsChar,v12835.PromptChar,v12835.ArrREExpression); } v2ce28.DateDataSource ="EditFormat"; } else { wi4675.m32d15(vaff2,v12835.PromptChar); v2ce28.EditText =wi4675.mdf023(v2ce28.CultureInfo,vaff2,v37217.Format,v12835.ArrLiterals,v12835.ArrLiteralsChar,v12835.PromptChar,v12835.ArrREExpression); } } else { if (v2ce28.Value !=null){ var v61f80 =v2ce28.Value; var idx,length,ps; for (var v9f154 =0; v9f154 <vaff2.length; v9f154++){ idx =vaff2[v9f154][2]; length =vaff2[v9f154][3]; if (idx <v61f80.length) vaff2[v9f154][1] =v61f80.substr(idx,length); else { ps =""; for (var va9c58 =0; va9c58 <length; va9c58++){ ps +=v12835.PromptChar; } vaff2[v9f154][1] =ps; } } } v2ce28.EditText =wi4675.mdf023(v2ce28.CultureInfo,vaff2,v37217.Format,v12835.ArrLiterals,v12835.ArrLiteralsChar,v12835.PromptChar,v12835.ArrREExpression); } return v2ce28.EditText; } else return ""; }, m80093:function(vb2a83,vbb073,v1f558){ var v1e828 =vbb073.FormattedData; if (vb2a83.length ==v1e828.length){ var v71e93 =""; for (var v44873 =0; v44873 <v1e828.length; v44873++){ if (vb2a83[v44873][0] ==v1e828[v44873][0]){ vb2a83[v44873][1] =v1e828[v44873][1].toString(); if (vb2a83[v44873][1].length <vb2a83[v44873][3]){ var v37511 =vb2a83[v44873][1].length; for (v37511; v37511 <vb2a83[v44873][3]; v37511++) vb2a83[v44873][1] +=v1f558; } } } } else return null; }, m8eb8:function(){ var v01967 =window.event; var vb7a13 =this; if (vb7a13 ==null ||vb7a13.HtmlObj.readOnly ==true) return false; if (!vb7a13.Enabled ||vb7a13.ReadOnly){ if (v01967 !=null){ v01967.cancelBubble =true; v01967.returnValue =false; } return false; } if (v01967.keyCode ==ISKeyboardKey.DELETE ||v01967.keyCode ==ISKeyboardKey.ESC){ var v75f7 =document.selection.createRange(); if (IS.safari ||IS.opera){ v75f7.tempObj =vb7a13.HtmlObj; v75f7.tempObj.IsSelected =vb7a13.HighLight.IsSelected; } if (v75f7.text.length ==vb7a13.HtmlObj.value.length){ v01967.returnValue =false; v01967.cancelBubble =true; return false; } } }, mf7c75:function(){ var v87022 =window.event; if (v87022.ctrlKey &&v87022.altKey ==false) return true;  if (!IS.ie) window.event =v87022;  if (v87022.keyCode ==ISKeyboardKey.TAB) return true; if (v87022.cancelBubble &&!v87022.returnValue) return false; var v20592 =this; if (v20592 ==null ||v20592.HtmlObj.readOnly ==true) return false; if (!v20592.Enabled ||v20592.ReadOnly){ if (v87022 !=null){ v87022.cancelBubble =true; v87022.returnValue =false; } return false; } var v69192; var vf6a37 =v20592.EditFormat; var v8d679 =vf6a37.MaskInfo; var vd3b61 =v20592.HighLight; v69192 =document.selection.createRange(); if (IS.safari ||IS.opera){ v69192.tempObj =vc2833; if (v20592.HighLight !=null &&v69192.tempObj !=null) v69192.tempObj.IsSelected =v20592.HighLight.IsSelected; } var v17375 =v69192.text.length; var vcb338 =false; if (v17375 >0){ if (vd3b61._o !=null){ if (vd3b61.Type =="character" &&vd3b61.Idx ==null) vcb338 =vd3b61._o.text.length ==1; else { if (vd3b61.HIdx !=null) vcb338 =v17375 ==wi4675.mdee93(v8d679.ValueParts,v20592.HighLight)[3]; else vcb338 =false; } } } if (vf6a37.MaskType =="DateTime" &&v17375 ==v20592.HtmlObj.value.length){ vd3b61._o =null; vd3b61.HIdx =0; vd3b61.Idx =v8d679.ValueParts[0][2]; }  var v04970 =vd3b61.IsSelected; if (IS.moz){ if (vd3b61.IsSelected ==false) vd3b61.IsSelected =true; }  if (!vcb338) wi5fa76.m00068(v20592.Id); if (ISKeyboardKey.IsDirection()){  if (IS.moz){ if (v04970 ==false) vd3b61.IsSelected =false; }  wi4675.ma4382(); return true; } var v49949 =ISKeyboardKey.GetChar(); if (v49949 !=null) v49949 =v49949.toString(); if (v49949 ==""){ if (v20592.IsSelectedAll &&(v87022.keyCode ==ISKeyboardKey.DELETE ||v87022.keyCode ==ISKeyboardKey.ESC)){ var v18c22; if (v87022.keyCode ==ISKeyboardKey.DELETE){ var vf1884 =v8d679.ValueParts; for (var v76f81 =0; v76f81 <vf1884.length; v76f81++){ vf1884[v76f81][1] =""; for (var v07a6 =0; v07a6 <vf1884[v76f81][3]; v07a6++){ vf1884[v76f81][1] +=v8d679.PromptChar; } } v18c22 =wi4675.mdf023(v20592.CultureInfo,vf1884,vf6a37.Format,v8d679.ArrLiterals,v8d679.ArrLiteralsChar,v8d679.PromptChar,v8d679.ArrREExpression); } else v18c22 =v20592.EditText; v20592.HtmlObj.value =v18c22; v20592.EditText =v18c22; v20592._BeforeUpdatedValue =v20592._AfterUpdatedValue =v20592.Text =v20592.Value =""; v20592.IsDirty =true; v20592.HtmlObj.focus();  var vc2833 =document.getElementById(v20592.Id +IS.MaskValidatorSuffix); vc2833.isvalid =true;  } ISEvent.LastKeyboardType =ISEvent.LastKeyCode =null; v20592.LastAction =""; if (vd3b61.Type !="character") vf6a37.IsNonCharEditing =true;  v20592._IsRuntimeCancelEvent =true; if (IS.moz ||IS.safari ||IS.opera){ if (v04970 ==false) vd3b61.IsSelected =false; }  return false; } else { var vf1884 =wi4675.mdee93(v8d679.ValueParts,vd3b61); var v0bf9; if (vd3b61.Type =="character") v0bf9 =vd3b61.Idx; else { v0bf9 =vf1884[2] +vf1884[3]; if (v0bf9 >0) v0bf9 =v0bf9 -1; } if (v8d679.ArrREExpression[v0bf9].indexOf("a-z")<0 ||v8d679.ArrREExpression[v0bf9].indexOf("^a-z")>-1) v49949 =v49949.toUpperCase(); if (vf6a37.Events !=null) if (!ISEvent.Raise(vf6a37.Events.OnBeforeCharValidate,v20592.Id,v49949,v0bf9)) return false; var v27531 =false; var v71129 =false; if (vf1884[0].indexOf("MMM")>-1 &&ISKeyboardKey.IsNumber()&&vf6a37.MaskType =="DateTime"){ var v4a390 =parseFloat(v49949); var dt,mmit; if (v4a390 ==1 &&vf6a37._mmit ==null){ dt =new Date(); mmit =dt.getMilliseconds().toString(); while (mmit.length <3){ mmit ="0" +mmit; } vf6a37._mmit =parseFloat(dt.getSeconds().toString()+mmit); } else { if (vf6a37._mmit !=null &&v4a390 <3){ dt =new Date(); mmit =dt.getMilliseconds().toString(); while (mmit.length <3){ mmit ="0" +mmit; } mmit =parseFloat(dt.getSeconds().toString()+mmit); if ((mmit -vf6a37._mmit)<500) v4a390 =parseFloat("1" +v49949); } vf6a37._mmit =null; } if (v4a390 >0 &&v4a390 <=12){ var vec443 =v20592.CultureInfo.DateTimeFormatInfo; var vdb781 =vf1884[0].length ==3 ? vec443.AbbreviatedMonthNames : vec443.MonthNames; vd3b61.Text =vdb781[v4a390 -1]; for (var v4fa46 =vd3b61.Text.length; v4fa46 <vf1884[3]; v4fa46++){ vd3b61.Text +=v8d679.PromptChar; } vd3b61._o.text =vf1884[1] =vd3b61.Text; if (wi4675.m6f955(v20592,vf1884[0],v4a390)) v71129 =v27531 =true; } } else { re =new RegExp("^" +vf6a37.MaskInfo.ArrREExpression[v0bf9] +"$"); v27531 =(re.exec(v49949)!=null); } if (vf6a37.Events !=null) if (!ISEvent.Raise(vf6a37.Events.OnAfterCharValidate,v20592.Id,v49949,v27531,v0bf9)) return false; if (!v27531){ v87022.returnValue =false; v87022.cancelBubble =true;  v20592._IsRuntimeCancelEvent =true; if (IS.moz ||IS.safari ||IS.opera){ if (v04970 ==false)vd3b61.IsSelected =false; }  } if (v27531){ if (vd3b61.Type !="character"){ var v38835 =vd3b61.Text.replace(new RegExp(v8d679.PromptChar,"g"),""); ; var v14272 =vf1884[0]; if (wi4675.m39622(v20592,v38835,v49949)){ if (vf1884[3] >v38835.length) v38835 =v38835 +v49949; else v38835 =v49949.toString(); var v11b75; if ("Md".indexOf(v14272.charAt(0))>-1 &&v14272.length >2){ var vdb781,va7197; var vec443 =v20592.CultureInfo.DateTimeFormatInfo; if (v14272.indexOf("M")>-1) vdb781 =v14272.length ==3 ? vec443.AbbreviatedMonthNames : vec443.MonthNames; else vdb781 =v14272.length ==3 ? vec443.AbbreviatedDayNames : vec443.DayNames; va7197 =v38835.toLowerCase(); for (v11b75 =0; v11b75 <vdb781.length; v11b75++){ if (vdb781[v11b75].toLowerCase().indexOf(va7197)==0){ v38835 =vdb781[v11b75]; break; } } } var v2d59 =vf1884[3] -v38835.length; for (var v76f81 =0; v76f81 <v2d59; v76f81++){ if (vf1884[0].length <3) v38835 =v8d679.PromptChar +v38835; else v38835 =v38835 +v8d679.PromptChar; } vd3b61._o.text =vd3b61.Text =vf1884[1] =v38835; if (vf6a37.MaskType =="DateTime" &&"Md".indexOf(v14272.charAt(0))>-1 &&v14272.length >2 &&v11b75 <vdb781.length){ if (wi4675.m6f955(v20592,v14272,v11b75)) vf6a37.IsNonCharEditing =false; } else { if (vf6a37.MaskType =="DateTime" &&"dMhHms".indexOf(v14272.charAt(0))>-1 &&v14272.length <3){ if (v38835.charAt(0)=="0" &&v38835.length >1) vf6a37.IsNonCharEditing =false; else { var va224 =parseFloat(v38835.replace(new RegExp(v8d679.PromptChar),"")); switch (v14272.charAt(0)){ case "d": vf6a37.IsNonCharEditing =va224 <4; if (va224 >0) wi4675.m6f955(v20592,v14272); break; case "M": case "h": vf6a37.IsNonCharEditing =va224 <2; break; case "H": vf6a37.IsNonCharEditing =va224 <3; break; case "m": case "s": vf6a37.IsNonCharEditing =va224 <6; break; } } } else { if (v14272.charAt(0)=="y" &&v38835.toString().indexOf(v8d679.PromptChar)<0){ if (wi4675.m6f955(v20592,v14272,v38835)) vf6a37.IsNonCharEditing =false; } else vf6a37.IsNonCharEditing =v38835.toString().indexOf(v8d679.PromptChar)>-1; } } } else { if (vf6a37.MaskType =="DateTime" &&v14272.length >2 &&v38835.length <=1 &&v20592.ResetOnInvalidEntry ==false) v71129 =true; if (vf6a37.MaskType =="DateTime" &&v71129 ==false &&wi4675.m39622(v20592,v38835,"")&&v20592.ResetOnInvalidEntry ==false){ v38835 =v49949.toString(); var v11b75; if ("Md".indexOf(v14272.charAt(0))>-1 &&v14272.length >2){ var vdb781,va7197; var vec443 =v20592.CultureInfo.DateTimeFormatInfo; if (v14272.indexOf("M")>-1) vdb781 =v14272.length ==3 ? vec443.AbbreviatedMonthNames : vec443.MonthNames; else vdb781 =v14272.length ==3 ? vec443.AbbreviatedDayNames : vec443.DayNames; va7197 =v38835.toLowerCase(); for (v11b75 =0; v11b75 <vdb781.length; v11b75++){ if (vdb781[v11b75].toLowerCase().indexOf(va7197)==0){ v38835 =vdb781[v11b75]; break; } } } var v2d59 =vf1884[3] -v38835.length; for (var v76f81 =0; v76f81 <v2d59; v76f81++){ if (vf1884[0].length <3) v38835 =v8d679.PromptChar +v38835; else v38835 =v38835 +v8d679.PromptChar; } vd3b61._o.text =vd3b61.Text =vf1884[1] =v38835; if ("Md".indexOf(v14272.charAt(0))>-1 &&v14272.length >2 &&v11b75 <vdb781.length){ if (wi4675.m6f955(v20592,v14272,v11b75)) vf6a37.IsNonCharEditing =false; } else { if ("dMhHms".indexOf(v14272.charAt(0))>-1 &&v14272.length <3){ if (v38835.charAt(0)=="0" &&v38835.length >1) vf6a37.IsNonCharEditing =false; else { var va224 =parseFloat(v38835.replace(new RegExp(v8d679.PromptChar),"")); switch (v14272.charAt(0)){ case "d": if (v14272.length ==2 &&ISKeyboardKey.GetChar()=="0"){ vf6a37.IsNonCharEditing =true; break; } vf6a37.IsNonCharEditing =va224 <4; wi4675.m6f955(v20592,v14272); break; case "M": case "h": vf6a37.IsNonCharEditing =va224 <2; break; case "H": vf6a37.IsNonCharEditing =va224 <3; break; case "m": case "s": vf6a37.IsNonCharEditing =va224 <6; break; } } } else vf6a37.IsNonCharEditing =v38835.toString().indexOf(v8d679.PromptChar)>-1; } } else { if (!v71129){ if (vf1884[3] >v38835.length) v38835 =v38835 +v49949; else v38835 =v49949.toString(); var v11b75,vdb781; vdb781 =new Array(); if (wi4675.m39622(v20592,v38835,"")){ if ("Md".indexOf(v14272.charAt(0))>-1 &&v14272.length >2){ var va7197; var vec443 =v20592.CultureInfo.DateTimeFormatInfo; if (v14272.indexOf("M")>-1) vdb781 =v14272.length ==3 ? vec443.AbbreviatedMonthNames : vec443.MonthNames; else vdb781 =v14272.length ==3 ? vec443.AbbreviatedDayNames : vec443.DayNames; va7197 =v38835.toLowerCase(); for (v11b75 =0; v11b75 <vdb781.length; v11b75++){ if (vdb781[v11b75].toLowerCase().indexOf(va7197)==0){ v38835 =vdb781[v11b75]; break; } } } } else { if (v20592.ResetOnInvalidEntry ==true){ v38835 =""; for (var vdbc20 =0; vdbc20 <vf1884[3]; vdbc20++){ v38835 +=v8d679.PromptChar; } } } var v2d59 =vf1884[3] -v38835.length; for (var v76f81 =0; v76f81 <v2d59; v76f81++){ if (vf1884[0].length <3) v38835 =v8d679.PromptChar +v38835; else v38835 =v38835 +v8d679.PromptChar; } vd3b61._o.text =vd3b61.Text =vf1884[1] =v38835; if (vf6a37.MaskType =="DateTime" &&"Md".indexOf(v14272.charAt(0))>-1 &&v14272.length >2 &&v11b75 <vdb781.length){ if (wi4675.m6f955(v20592,v14272,v11b75)) vf6a37.IsNonCharEditing =false; } else vf6a37.IsNonCharEditing =v38835.indexOf(v8d679.PromptChar)>-1; } } } } else { vd3b61._o.text =vd3b61.Text =vf1884[1] =v49949; } v20592.LastAction ="Mask" +(v27531 ? "Valid" : "Invalid");  if (IS.moz ||IS.safari ||IS.opera){ if (v04970 ==false) vd3b61.IsSelected =false; }  wi5fa76.m34841(1,v20592.Id); v87022.returnValue =false; v87022.cancelBubble =true; v20592.IsDirty =true;  v20592._IsRuntimeCancelEvent =true;  } } return v27531; }, ma4382:function(v65a9){ if (v65a9 ==null) v65a9 =window.event; if (v65a9.keyCode ==ISKeyboardKey.UP ||v65a9.keyCode ==ISKeyboardKey.DOWN){ var ve1f34 =ISGetObject(v65a9.srcElement.id); if (ve1f34 ==null) return false; var vde766 =ve1f34.EditFormat; vde766._OnChangedBySpin =false; var v6c253 =ve1f34.HighLight; var v49614 =vde766.HighLightedFormat; var v57784 =v6c253.Text; var v28027 =vde766.MaskInfo; var v13180 =v28027.PromptChar; if (vde766.MaskType =="DateTime" &&v6c253.Type =="phrase"){ ve1f34.SetValue(wi4675.m42574(ve1f34,vde766.ClientData,ve1f34.CultureInfo.DateTimeFormatInfo,ve1f34.HtmlObj.value,v6c253.Text,v6c253.Type,v49614,vde766.Format,v65a9.keyCode,v13180,v28027.ValueParts,ve1f34.CultureInfo,v28027.ArrLiterals,v28027.ArrLiteralsChar,v28027.ArrREExpression,vde766.SkipNavigateHoliday,vde766.MinDropDownYear,vde766.MaxDropDownYear)); ve1f34.HtmlObj.setActive(); } else { if (vde766.MaskType =="Number") v57784 =wi4675.mfa017(v57784,v6c253.Type,v49614,v65a9.keyCode,v13180); else v57784 =wi4675.mf7666(v57784,v6c253.Type,v28027.ArrREExpression[v6c253.Idx],v65a9.keyCode,v13180); var v2d136 =vp =wi4675.mdee93(v28027.ValueParts,v6c253); v2d136[1] =v57784; ve1f34.SetHighLightValue(v57784); } vde766._OnChangedBySpin =true; ve1f34.IsDirty =true; if (ve1f34.Events) ISEvent.Raise(ve1f34.Events.OnDirty,ve1f34.Id,WebInputOnChangedSource.Spin); } }, mef18:function(v7496,v22259){ var va1145 =""; var v44524 =v7496.MaskInfo; var vf4524 =v44524.ArrREExpression; var va8a20 =new RegExp("\\?","g"); var v7b528 =new RegExp(">","g"); var ve3d42 =new RegExp("<","g"); var v02992 =new RegExp("\\\\","g"); var v67452 =new RegExp("!","g"); var v7a258 =new RegExp("0","g"); var v4f181 =new RegExp("9","g"); var v7e011 =new RegExp("#","g"); var vaf835 =new RegExp("L","g"); var v0b095 =new RegExp("A","g"); var v29a18 =new RegExp("a","g"); var v77e60 =new RegExp("&","g"); var v01318 =new RegExp("C","g"); var va9b41 =v44524.MaskExpression.replace(v7b528,"").replace(ve3d42,"").replace(v02992,"").replace(v67452,""); if (v22259.length <va9b41.length){ var v5479 =v22259; var me1,tme; me1 =tme =v44524.MaskExpression; me1 =me1.replace(va8a20,"").replace(v7a258,"").replace(v4f181,"").replace(v7e011,"").replace(vaf835,"").replace(v0b095,"").replace(v29a18,"").replace(v77e60,"").replace(v01318,"").replace(v7b528,"").replace(ve3d42,"").replace(v02992,"").replace(v67452,""); var v66152; for (var v98c10 =0; v98c10 <me1.length; v98c10++){ v66152 =new RegExp(EscapeRegExpSpecialChar(me1.charAt(v98c10)),"g"); v5479 =v5479.replace(v66152,""); tme =tme.replace(v66152,""); } v5479 =v5479.replace(new RegExp("\\s*","g"),""); tme =tme.replace(v4f181,"").replace(v7e011,"").replace(va8a20,"").replace(v29a18,"").replace(v01318,"").replace(v7b528,"").replace(ve3d42,"").replace(v02992,"").replace(v67452,""); var vcef18 =0; var v9ee54 =""; var vfca22 =""; var vec787 =v44524.CustomRequiredPlaceHolderCharList +v44524.CustomOptionalPlaceHolderCharList; for (var v98c10 =0; v98c10 <va9b41.length; v98c10++){ v9ee54 =va9b41.charAt(v98c10); if ("09#L?Aa&C".indexOf(v9ee54)>-1 ||vec787.indexOf(v9ee54)>-1){ v66152 =new RegExp(vf4524[v98c10]); if ("0LA&".indexOf(v9ee54)>-1){ vfca22 =v5479.charAt(vcef18); if (v66152.exec(vfca22)){ va1145 +=vfca22; vcef18++; } else { va1145 =""; break; } } else { if (vec787.indexOf(v9ee54)>-1){ if (v44524.CustomRequiredPlaceHolderCharList.indexOf(v9ee54)>-1){ vfca22 =v5479.charAt(vcef18); if (v66152.exec(vfca22)){ va1145 +=vfca22; vcef18++; } else { va1145 =""; break; } } else va1145 +=v44524.PromptChar; } else va1145 +=v44524.PromptChar; } } else va1145 +=v9ee54; } if (vcef18 !=v5479.length) va1145 =""; if (va1145 ==""){ vcef18 =0; var ve3e0 ="9#?aC" +v44524.CustomOptionalPlaceHolderCharList; var vd1d26 =false; var v9b249 =wi4675.me1852(va9b41,ve3e0); var vfbe3 =wi4675.ma605(va9b41,ve3e0); while (v9b249 <=vfbe3){ for (var v98c10 =0; v98c10 <va9b41.length; v98c10++){ v9ee54 =va9b41.charAt(v98c10); if ("09#L?Aa&C".indexOf(v9ee54)>-1 ||vec787.indexOf(v9ee54)>-1){ if (vcef18 <v5479.length){ v66152 =new RegExp(vf4524[v98c10]); vd1d26 =v66152.exec(v5479.charAt(vcef18))!=null; if (vd1d26 &&"0LA&".indexOf(v9ee54)>-1){ va1145 +=v5479.charAt(vcef18); vcef18++; } else { if ("9#?aC".indexOf(v9ee54)>-1){ if (v9b249 >=v98c10 &&vd1d26){ va1145 +=v5479.charAt(vcef18); vcef18++; } else va1145 +=v44524.PromptChar; } else { if (vec787.indexOf(v9ee54)>-1){ if (v44524.CustomRequiredPlaceHolderCharList.indexOf(v9ee54)>-1){ if (vd1d26){ va1145 +=v5479.charAt(vcef18); vcef18++; } else break; } else { if (vd1d26){ va1145 +=v5479.charAt(vcef18); vcef18++; } else va1145 +=v44524.PromptChar; } } else break; } } } else va1145 +=v44524.PromptChar; } else va1145 +=v9ee54; } if (vcef18 <v5479.length){ va1145 =""; vcef18 =0; v9b249 =wi4675.me1852(va9b41,ve3e0,v9b249 +1); if (v9b249 <0) break; } else break; } } } else va1145 =v22259; return va1145; }, me1852:function(v69e42,v79a29,vc3f17){ if (vc3f17 ==null) vc3f17 =0; var idx,c; var vadc42 =false; for (idx =vc3f17; idx <v69e42.length; idx++){ for (var v93c29 =0; v93c29 <v79a29.length; v93c29++){ if (v69e42.charAt(idx)==v79a29.charAt(v93c29)){ vadc42 =true; break; } } if (vadc42) break; } return (vadc42 ? idx : -1); }, ma605:function(ve7281,vba748,v13351){ if (v13351 ==null) v13351 =0; var idx,c; var vda945 =false; for (idx =ve7281.length -1; idx >=v13351; idx--){ for (var v18679 =0; v18679 <vba748.length; v18679++){ if (ve7281.charAt(idx)==vba748.charAt(v18679)){ vda945 =true; break; } } if (vda945) break; } return (vda945 ? idx : -1); }, m39622:function(v30986,v2075,v59f40){ var vaab81 =v30986.EditFormat; var vf4b48 =v30986.HighLight; if (vaab81.MaskType =="DateTime" &&vf4b48.Type !="character"){ var v8ee51 =vaab81.MaskInfo; if (wi4675.mb2f67(v8ee51.ValueParts,v8ee51.PromptChar)) return true; var v19021 =false; var ve6736 =v30986.CultureInfo.DateTimeFormatInfo; var v8965 =wi4675.mdee93(v8ee51.ValueParts,vf4b48)[0]; if (v8965.indexOf("y")>-1) return true; var m,y,vp; var v78388 =new Date(); if (vaab81.Format.indexOf("M")>-1){ var v14e7; vp =wi4675.me0136(v8ee51.ValueParts,"M"); if (vp){ v14e7 =vp[1]; if (v14e7){ if (vp[0].length >2){ var v40f16 =new RegExp(v8ee51.PromptChar,"g"); v14e7 =v14e7.toString().toLowerCase().replace(v40f16,""); var v45176 =vp[0].length ==3 ? ve6736.AbbreviatedMonthNames : ve6736.MonthNames; for (var vf9676 =0; vf9676 <v45176.length; vf9676++){ if (v45176[vf9676].toLowerCase().replace(v40f16,"")==v14e7){ v14e7 =vf9676; break; } } } else v14e7 =parseFloat(v14e7)-1; m =v14e7; } } } if (m ==null ||isNaN(m)) m =v78388.getMonth(); if (vaab81.Format.indexOf("y")>-1){ vp =wi4675.me0136(v8ee51.ValueParts,"y"); if (vp &&vp[1] !=null) y =parseFloat(vp[1]); } if (y ==null ||isNaN(y)) y =v78388.getFullYear(); vp =wi4675.mdee93(v8ee51.ValueParts,vf4b48); var v1ef43 =v2075 +v59f40; v1ef43 =v1ef43.toString().toLowerCase(); switch (v8965.charAt(0)){ case "d": if (v8965.length <=2){ v1ef43 =parseFloat(v1ef43); v78388 =new Date(y,m,v1ef43); var v9b343 =v2075 +v59f40; if (v78388.getMonth()==m ||(m >=12 &&v1ef43 <32 &&v1ef43 >0)||(v1ef43 ==0 &&v9b343.length ==1)) v19021 =true; } else { var v57083 =v8965.length ==3 ? ve6736.AbbreviatedDayNames : ve6736.DayNames; for (var vf9676 =0; vf9676 <v57083.length; vf9676++){ if (v57083[vf9676].toLowerCase().indexOf(v1ef43)==0){ v19021 =true; break; } } } break; case "g": if (ve6736.EraName.toLowerCase().indexOf(v1ef43)==0) v19021 =true; break; case "h": if (parseFloat(v1ef43)<=12) v19021 =true; break; case "H": if (parseFloat(v1ef43)<=23) v19021 =true; break; case "m": if (parseFloat(v1ef43)<=59) v19021 =true; break; case "M": if (v8965.length <=2){ if ((parseFloat(v1ef43)<=12 &&parseFloat(v1ef43)>0)||(parseFloat(v1ef43)==0 &&v1ef43.length ==1)) v19021 =true; } else { var v45176 =vp[0].length ==3 ? ve6736.AbbreviatedMonthNames : ve6736.MonthNames; for (var vf9676 =0; vf9676 <v45176.length; vf9676++){ if (v45176[vf9676].toLowerCase().indexOf(v1ef43)==0){ v19021 =true; break; } } } break; case "s": if (parseFloat(v1ef43)<=59) v19021 =true; break; case "t": if (ve6736.AMDesignator.toLowerCase().indexOf(v1ef43)==0 ||ve6736.PMDesignator.toLowerCase().indexOf(v1ef43)==0) v19021 =true; break; case "y": v19021 =true; break; } return v19021; } else return true; }, m42574:function(v71e8,v89921,v50781,v22a66,vdd290,v65175,v4e17,v48123,v36d53,vff794,vb4982,v4d569,vb2422,v7d225,v59388,vd4121,v9e465,vd5f87){ with (v89921){ Type ="datetime"; Format =v48123; OldValue =NewValue =v22a66; PromptChar =null; IsValid =true; } var year,month,date,hours,minutes,seconds,ms,dsnt,isNewInit; var v40c77 =IS.GetValidationEngine(); if (v22a66.indexOf(vff794)>-1) v89921.IsValid =false; if (v89921.IsValid) v40c77.Validate(v89921,v4d569); wi4675.m68357(v71e8,v71e8.EditFormat); if (v89921.IsValid){ with (v89921.DateData){ year =parseFloat(Year); month =parseFloat(Month); date =parseFloat(Day); if (v48123.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 =wi4675.m41456(vb4982,v22a66,vb2422,vff794); var v4c453 =new Date(); year =wi4675.me2451(v4c453,vb4982,"y",v48123,vff794,isNewInit); month =wi4675.me2451(v4c453,vb4982,"M",v48123,vff794,isNewInit,v50781); date =wi4675.me2451(v4c453,vb4982,"d",v48123,vff794,isNewInit,v50781); hours =wi4675.me2451(v4c453,vb4982,"H",v48123,vff794,isNewInit); if (hours ==null){ hours =wi4675.me2451(v4c453,vb4982,"h",v48123,vff794,isNewInit); dsnt =wi4675.me2451(v4c453,vb4982,"t",v48123,vff794,isNewInit); } if (hours ==null) hours =v4c453.getHours(); minutes =wi4675.me2451(v4c453,vb4982,"m",v48123,vff794,isNewInit); seconds =wi4675.me2451(v4c453,vb4982,"s",v48123,vff794,isNewInit); ms =wi4675.me2451(v4c453,vb4982,"f",v48123,vff794,isNewInit); } var vbbb44; switch (v4e17.charAt(0)){ case "y": var v8e698 =year; if (v4e17.length >2){ if (v36d53 ==ISKeyboardKey.DOWN){ if (v9e465 <=(v8e698 -1)&&(v8e698 -1)<=vd5f87) v8e698 -=1; } else { if (v9e465 <=(v8e698 +1)&&(v8e698 +1)<=vd5f87) v8e698 +=1; } } else v8e698 +=v36d53 ==ISKeyboardKey.DOWN ? -1 : 1; year =v8e698; break; case "M": var v73e46 =month +((v36d53 ==ISKeyboardKey.DOWN)? -1 : 1); vbbb44 =new Date(year,v73e46,date); if (v9e465 <=vbbb44.getFullYear()&&vbbb44.getFullYear()<=vd5f87) month =v73e46; break; case "d": var v42951 =date +((v36d53 ==ISKeyboardKey.DOWN)? -1 : 1); if (vd4121 ==true){ var v66f6 =new Date(parseFloat(year),parseFloat(month),parseFloat(v42951)); if (v66f6.getDay()==0) v42951 +=(v36d53 ==ISKeyboardKey.DOWN)? -2 : 1; else { if (v66f6.getDay()==6) v42951 +=(v36d53 ==ISKeyboardKey.DOWN)? -1 : 2; else { if (typeof (v71e8.DateTimeEditor)=="object"){ if (v71e8.DateTimeEditor.IsHoliday(parseFloat(v42951),parseFloat(month),parseFloat(year))) v42951 +=(v36d53 ==ISKeyboardKey.DOWN)? -1 : 1; } } } } vbbb44 =new Date(year,month,v42951); if (v9e465 <=vbbb44.getFullYear()&&vbbb44.getFullYear()<=vd5f87) date =v42951; break; case "h":  hours +=(v36d53 ==ISKeyboardKey.DOWN)? -1 : 1;  if(hours <0) { hours =23; date--; } else if(hours >23) { hours =0; date++; }  dsnt =hours >11 ? v50781.PMDesignator : v50781.AMDesignator;   break; case "H": hours +=(v36d53 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "m": minutes +=(v36d53 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "s": seconds +=(v36d53 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "f": ms +=(v36d53 ==ISKeyboardKey.DOWN)? -1 : 1; break; case "t": if (dsnt !=null){ if (v50781.AMDesignator ==dsnt) hours =hours <12 ? (hours +12): hours; else { if (hours >11) hours =hours -12; } } break; } var v33052 =new Date(year,month,date,hours,minutes,seconds,ms); v89921.OldValue =IS.GetFullCommonDateTimeFormat(v33052); v89921.NewValue =v89921.OldValue; v40c77.Validate(v89921,v4d569); if (wi4675.m68357(v71e8,v71e8.EditFormat)){ if (v48123.indexOf("t")>-1){ var v8a06 =v33052.getDate();   if (date ==v8a06){  if (hours ==12 &&(v4e17.charAt(0)!='y' &&v4e17.charAt(0)!='M' &&v4e17.charAt(0)!='d')){   if (dsnt ==v50781.PMDesignator) dsnt =v36d53 ==ISKeyboardKey.DOWN ? v50781.AMDesignator : dsnt; else dsnt =v36d53 ==ISKeyboardKey.DOWN ? v50781.PMDesignator : dsnt; } else { dsnt =hours >11 &&hours <24 ? v50781.PMDesignator : v50781.AMDesignator; } } else if(v4e17.charAt(0)!='y' &&v4e17.charAt(0)!='M' &&v4e17.charAt(0)!='d') { dsnt =date >v8a06 ? v50781.PMDesignator : v50781.AMDesignator; }  var v6bb85 =wi4675.me0136(vb4982,"t"); v6bb85[1] =dsnt; } wi4675.m80093(vb4982,v89921,vff794); if (dsnt !=null &&dsnt !=0){ for (var v06873 =0; v06873 <vb4982.length; v06873++){ if (vb4982[v06873][0].indexOf("t")>-1){ vb4982[v06873][1] =dsnt; break; } } } v71e8.Value =v89921.FormattedValue; v71e8.Text =v71e8.EditText =wi4675.mdf023(v4d569,vb4982,v48123,vb2422,v7d225,vff794,v59388); } return v71e8.EditText; }, m6f955:function(v33912,vf5832,v68f79){ if (v33912.ResetOnInvalidEntry ==true) return false; if ("dMy".indexOf(vf5832.charAt(0))>-1){ var vf8832 =v33912.HighLight; var v76a87 =v33912.EditFormat; var v3d537 =v76a87.MaskInfo; var v32661 =v3d537.ArrREExpression; var v8c354 =v3d537.ValueParts; var v9b524 =v3d537.PromptChar; var v2ee92 =new RegExp(v9b524,"g"); var v08762 =wi4675.me0136(v8c354,"d"); if (v08762 ==null) return true; if (v08762[1] ==null) return true; if (v08762[1].replace(v2ee92,"")=="") return true; v08762 =wi4675.me0136(v8c354,"M"); if (v08762 ==null) return true; if (v08762[1] ==null) return true; if (v08762[1].replace(v2ee92,"")=="") return true; var vee348 =v76a87.Format; var year,month,date,day,isNewInit; var vb5123 =new Date(); var nv,nms; var vc2121 =v33912.CultureInfo.DateTimeFormatInfo; isNewInit =wi4675.m41456(v8c354,v33912.HtmlObj.value,v3d537.ArrLiterals,v9b524); year =wi4675.me2451(vb5123,v8c354,"y",vee348,v9b524,isNewInit); month =parseFloat(wi4675.me2451(vb5123,v8c354,"M",vee348,v9b524,isNewInit,vc2121)); date =parseFloat(wi4675.me2451(vb5123,v8c354,"d",vee348,v9b524,isNewInit)); vb5123 =new Date(year,month,date); if (isNaN(vb5123)) return false; if ("My".indexOf(vf5832.charAt(0))>-1){ if (month !=-1){ while (vb5123.getMonth()!=month){ date--; isInc =true; vb5123 =new Date(year,month,date); } date =vb5123.getDate(); day =vb5123.getDay(); nv; for (var v2ed37 =0; v2ed37 <v8c354.length; v2ed37++){ if (v8c354[v2ed37][0].indexOf("d")>-1){ if (v8c354[v2ed37][0].length <3) nv =date.toString(); else { nms =v8c354[v2ed37][0].length ==3 ? vc2121.AbbreviatedDayNames : vc2121.DayNames; nv =nms[day]; } for (var v88c9 =0; v88c9 <v8c354[v2ed37][3]; v88c9++){ if (nv.length <v8c354[v2ed37][3]){ v9b524 =v3d537.MaskExpression.charAt(v8c354[v2ed37][2] +v88c9)=="0" ? "0" : v3d537.PromptChar; if (v8c354[v2ed37][0].length <3) nv =v9b524 +nv; else nv =nv +v9b524; } } v8c354[v2ed37][1] =nv; } } } } else { if (vf5832.charAt(0)=="d"){ day =vb5123.getDay(); if (v68f79 !=null) date =date +(v68f79 -day); vb5123 =new Date(year,month,date); date =vb5123.getDate(); for (var v2ed37 =0; v2ed37 <v8c354.length; v2ed37++){ if (v8c354[v2ed37][0].indexOf("d")>-1){ if (v8c354[v2ed37][0].length <3) nv =date.toString(); else { nms =v8c354[v2ed37][0].length ==3 ? vc2121.AbbreviatedDayNames : vc2121.DayNames; nv =nms[day]; } for (var v88c9 =0; v88c9 <v8c354[v2ed37][3]; v88c9++){ if (nv.length <v8c354[v2ed37][3]){ if (v8c354[v2ed37][0].length <3) nv =v9b524 +nv; else nv =nv +v9b524; } } v8c354[v2ed37][1] =nv; } } } } v33912.SetValue(wi4675.mdf023(v33912.CultureInfo,v8c354,vee348,v3d537.ArrLiterals,v3d537.ArrLiteralsChar,v9b524,v3d537.ArrREExpression)); v33912.HtmlObj.setActive(); } return true; }, m41456:function(v17187,v04121,v43831,vced24){ var v12d87 =true; if (v04121 !=null &&v04121 !=""){ for (var v5b421 =0; v5b421 <v17187.length; v5b421++){ v17187[v5b421][1] =v04121.substr(v17187[v5b421][2],v17187[v5b421][3]); } } return v12d87; }, mdf023:function(v65d20,v4f295,vbfb42,vf0343,v07795,v12041,v44212,v37620,vca978){ var v6c679 =""; var v1ad69 =0; var v81a35 =""; var v59668 =""; var v9bc7 =""; var v25d3 =""; var vf570 =0; var v80633; var v16569 =0; var v71884 =false; for (var v1d311 =0; v1d311 <vf0343.length; v1d311++){ if (vf0343[v1d311] ==0){ if (vca978 ==false) v6c679 +=v07795[v1d311]; else v6c679 +=v44212[vf0343[v1d311]].replace("\\",""); } else { if (v1d311 >0) v71884 =(vf0343[v1d311] -vf0343[v1d311 -1])>1; else v71884 =true; if (v71884){ do { v81a35 =v4f295[v1ad69][1]; v9bc7 =v4f295[v1ad69][0]; v16569 =v4f295[v1ad69][3]; if (v9bc7.length >2 &&v65d20 !=null &&isNaN(parseFloat(v81a35))==false &&(v9bc7.indexOf("M")>-1 ||v9bc7.indexOf("d")>-1)){ var v43684; if (v9bc7.indexOf("M")>-1) v43684 =v9bc7.length ==3 ? v65d20.DateTimeFormatInfo.AbbreviatedMonthNames : v65d20.DateTimeFormatInfo.MonthNames; else v43684 =v9bc7.length ==3 ? v65d20.DateTimeFormatInfo.AbbreviatedDayNames : v65d20.DateTimeFormatInfo.DayNames; var ve2519 =false; for (var v13753 =0; v13753 <v43684.length; v13753++){ if (v81a35 ==v43684[v13753]){ ve2519 =true; v59668 =v81a35; break; } } if (ve2519 ==false){ var vc756 =new RegExp(v12041,"g"); var v12f90 =v81a35.replace(vc756,""); for (var v13753 =0; v13753 <v43684.length; v13753++){ if (v12f90 ==v43684[v13753]){ ve2519 =true; v59668 =v12f90; break; } } } if (ve2519 ==false) v59668 =v43684[parseFloat(v81a35)]; if (v16569 >v59668){ for (var v1d311 =v59668.length; v1d311 <v16569; v1d311++){ v59668 +=v12041; } } else { if (v16569 <v59668) v59668 =v59668.substr(0,p); } while (v59668.length <v4f295[v1ad69][3]){ v59668 +=v12041; } v4f295[v1ad69][1] =v59668; v6c679 +=v59668; } else { vf570 =v6c679.length ==0 ? 0 : v6c679.length; v80633 =false; v59668 =""; for (var v9e274 =0; v9e274 <v16569; v9e274++){ v25d3 =v81a35.charAt(v9e274); if (v9e274 >=v81a35.length) v25d3 =v12041; else { if (v25d3 !="0" ||v37620) v80633 =true; if (v25d3 ==" " &&v12041 !=null) v25d3 =v12041; if (v80633 ==false &&v44212[vf570].indexOf("?")>-1){ if (v9bc7 !=null &&v9bc7 !="" &&v9bc7 !="0"){ if (v25d3 =="0" &&parseFloat(v81a35)>-1) v25d3 =v12041; } } else { if (v9bc7 !=null &&v9bc7 !=""){ if (("dM".indexOf(v9bc7.charAt(0))<0 ||v9bc7.length <3)&&v25d3 ==v12041 &&v37620) v25d3 ="0"; } } vf570++; } v59668 +=v25d3; } v4f295[v1ad69][1] =v59668; v6c679 +=v59668; } v1ad69++; if ((v1ad69 +1)>v4f295.length) break; } while (v4f295[v1ad69][2] <vf0343[v1d311]); } if (vca978 ==false) v6c679 +=v07795[v1d311]; else { v6c679 +=v44212[vf0343[v1d311]].replace("\\",""); } } } if (v1ad69 <v4f295.length){ for (var va0050 =v1ad69; va0050 <v4f295.length; va0050++){ v81a35 =v4f295[va0050][1]; v9bc7 =v4f295[va0050][0]; v16569 =v4f295[va0050][3]; if (v9bc7.length >2 &&v65d20 !=null &&isNaN(parseFloat(v81a35))==false &&(v9bc7.indexOf("M")>-1 ||v9bc7.indexOf("d")>-1)){ var v43684; if (v9bc7.indexOf("M")>-1) v43684 =v9bc7.length ==3 ? v65d20.DateTimeFormatInfo.AbbreviatedMonthNames : v65d20.DateTimeFormatInfo.MonthNames; else v43684 =v9bc7.length ==3 ? v65d20.DateTimeFormatInfo.AbbreviatedDayNames : v65d20.DateTimeFormatInfo.DayNames; v59668 =v43684[parseFloat(v81a35)]; if (v16569 >v59668){ for (var v1d311 =v59668.length; v1d311 <v16569; v1d311++){ v59668 +=v12041; } } else { if (v16569 <v59668) v59668 =v59668.substr(0,p); } v4f295[va0050][1] =v59668; v6c679 +=v59668; } else { vf570 =v6c679.length ==0 ? 0 : v6c679.length; v80633 =false; v59668 =""; for (var v9e274 =0; v9e274 <v16569; v9e274++){ v25d3 =v81a35.charAt(v9e274); if (v9e274 >=v81a35.length) v25d3 =v12041; else { if (v25d3 !="0" ||v37620 ==true) v80633 =true; if (v25d3 ==" " &&v12041 !=null) v25d3 =v12041; if (v80633 ==false &&v44212[vf570].indexOf("?")>-1){ var v9bc7 =v4f295[va0050][0]; if (v9bc7 !=null &&v9bc7 !="" &&v9bc7 !="0"){ if (v25d3 =="0" &&parseFloat(v81a35)>-1) v25d3 =v12041; } } else { if (v9bc7 !=null &&v9bc7 !=""){ if (("dM".indexOf(v9bc7.charAt(0))<0 ||v9bc7.length <3)&&v25d3 ==v12041 &&v37620) v25d3 ="0"; } } vf570++; } v59668 +=v25d3; } if (v4f295[va0050][0] =="yyyy" &&v59668 =="0000") v59668 ="2000"; else if (v4f295[va0050][0] =="yyyy" &&v59668.substring(0,2)=="00") v59668 ="19" +v59668.substring(2,4);  v6c679 +=v59668; } } } return v6c679; }, mb2f67:function(v0a880,v99930){ var v3f945 =true; var v00461 =""; var v38a99 =new RegExp("\\" +v99930,"g"); var vbd837 =new RegExp("\\s+","g"); for (var v80f59 =0; v80f59 <v0a880.length; v80f59++){ v00461 =v0a880[v80f59][1]; if (v00461 ==null) continue; else { v00461 =v00461.replace(v38a99,"").replace(vbd837,""); if (v00461 !=""){ v3f945 =false; break; } } } return v3f945; }, me2451:function(vfe536,va349,v0622,v4cb82,vced4,v51096,v49019){ var v1860; if (v4cb82.indexOf(v0622)>-1) v1860 =wi4675.mefb34(va349,v0622,vced4,v49019); else v51096 =true; if (v1860 ==null){ if (v51096){ switch (v0622.charAt(0)){ case "y": v1860 =vfe536.getFullYear(); break; case "M": v1860 =vfe536.getMonth(); break; case "d": v1860 =vfe536.getDate(); break; case "h": case "H": break; case "m": v1860 =vfe536.getMinutes(); break; case "s": v1860 =vfe536.getSeconds(); break; case "f": v1860 =vfe536.getMilliseconds(); break; } } else v1860 =0; } return v1860; }, mefb34:function(v8e511,v1c398,v34c55,vb8347){ var v52539; var v22b59 =wi4675.me0136(v8e511,v1c398); if (v22b59 !=null){ if (v22b59[1] !=null){ v52539 =v22b59[1].replace(new RegExp("\\" +v34c55,"g"),""); if (v52539 !=""){ if (v22b59[0].indexOf("M")>-1){ if (v22b59[0].length <3) v52539 =parseFloat(v52539)-1; else { var vfde18 =v22b59[0].length ==3 ? vb8347.AbbreviatedMonthNames : vb8347.MonthNames; var v1ce64 =v52539.toLowerCase(); for (var ved281 =0; ved281 <vfde18.length; ved281++){ if (vfde18[ved281].toLowerCase().indexOf(v1ce64)>-1){ v52539 =ved281; break; } } } } else v52539 =v1c398.indexOf("t")<0 ? parseFloat(v52539): v52539; } else { if ("fHmsz".indexOf(v22b59[0].charAt(0))>-1) v52539 =0; else { if ("h" ==v22b59[0].charAt(0)) v52539 =12; else v52539 =null; } } } } return v52539; }, mdee93:function(v49230,v55b8){ var v2c594; if (v55b8.Type !="character"){ if (v55b8.HIdx !=null){ if (v49230.length >v55b8.HIdx) v2c594 =v49230[v55b8.HIdx]; else { v2c594 =v49230[v49230.length -1]; v55b8.HIdx =v49230.length -1; v55b8.Idx =v2c594[2]; } } else { v55b8.HIdx =0; v2c594 =v49230[0]; v55b8.Idx =v2c594[2]; } } else { if (v55b8.Idx ==null){ v2c594 =v49230[0]; v55b8.Idx =v55b8.HIdx =v2c594[2]; } else { for (var v78238 =0; v78238 <v49230.length; v78238++){ if (v49230[v78238][2] ==v55b8.Idx){ v2c594 =v49230[v78238]; break; } } if (v2c594 ==null){ if (v55b8.Idx >v49230[v49230.length -1][2]){ v2c594 =v49230[v49230.length -1]; v55b8.HIdx =v55b8.Idx =v2c594[2]; } else { v2c594 =v49230[0]; v55b8.Idx =v55b8.HIdx =v2c594[2]; } } } } return v2c594; }, me0136:function(v89750,v89717){ var ve9b50; for (var v8a717 =0; v8a717 <v89750.length; v8a717++){ if (v89750[v8a717][0].indexOf(v89717)>-1){ if (v89750[v8a717][0].indexOf("d")>-1 &&v89750[v8a717][0].length >2) continue; ve9b50 =v89750[v8a717]; break; } } return ve9b50; }, mfa017:function(v17d5,v88b96,vdb374,ve2873,v97246){ if (v88b96 !="character"){ for (var v32c69 =0; v32c69 <vdb374.length; v32c69++){ if ("0#".indexOf(vdb374.charAt(v32c69))<0) return v17d5; } } v17d5 =parseFloat(v17d5); if (!isNaN(v17d5)){ if (v88b96 =="character"){ if (ve2873 ==ISKeyboardKey.DOWN){ if (v17d5 ==0) v17d5 =9; else v17d5 -=1; } else { if (v17d5 ==9) v17d5 =0; else v17d5 +=1; } } else { var v6e627 =""; for (var v32c69 =0; v32c69 <vdb374.length; v32c69++){ v6e627 =v6e627 +"9"; } v6e627 =parseFloat(v6e627); if (ve2873 ==ISKeyboardKey.DOWN){ if (v17d5 ==0) v17d5 =v6e627; else v17d5 -=1; } else { if (v17d5 ==v6e627) v17d5 =0; else v17d5 +=1; } } } else v17d5 =0; v17d5 =v17d5.toString(); if (v17d5.length <vdb374.length){ var v7e832 =""; for (var v32c69 =0; v32c69 <(vdb374.length -v17d5.length); v32c69++){ if (vdb374.charAt(v32c69)=="0") v7e832 =v7e832 +"0"; else v7e832 =v7e832 +v97246; } v17d5 =v7e832 +v17d5; } return v17d5; }, mf7666:function(v0d216,v29955,v4b444,vf4280,va5790){ if (v29955 =="character"){ v4b444 =v4b444.replace("?",""); if (v0d216 !=va5790){ var v08c61 =new Array(); var v6f375 =false; switch (v4b444){ case "(:[\\d|" +va5790 +"]|" +va5790 +")": case "[\\d|" +va5790 +"]": case "[\\d|\\s]": v6f375 =true; case "(:\\d|" +va5790 +")": case "\\d": if (v0d216 ==null ||v0d216 =="") v0d216 ="0"; v08c61[0] =new Array(); v08c61[0][0] =48; v08c61[0][1] =57; break; case "(:[a-z]|" +va5790 +")": case "[a-z]": if (v0d216 ==null ||v0d216 =="") v0d216 ="a"; v08c61[0] =new Array(); v08c61[0][0] =97; v08c61[0][1] =122; break; case "(:[A-Z]|" +va5790 +")": case "[A-Z]": if (v0d216 ==null ||v0d216 =="") v0d216 ="A"; v08c61[0] =new Array(); v08c61[0][0] =65; v08c61[0][1] =90; break; case "(:[A-Z0-9]|" +va5790 +")": case "[A-Z0-9]": if (v0d216 ==null ||v0d216 =="") v0d216 ="A"; v08c61[0] =new Array(); v08c61[0][0] =65; v08c61[0][1] =90; v08c61[1] =new Array(); v08c61[1][0] =48; v08c61[1][1] =57; break; case "(:[a-z0-9]|" +va5790 +")": case "[a-z0-9]": if (v0d216 ==null ||v0d216 =="") v0d216 ="a"; v08c61[0] =new Array(); v08c61[0][0] =97; v08c61[0][1] =122; v08c61[1] =new Array(); v08c61[1][0] =48; v08c61[1][1] =57; break; case "(:[a-zA-Z]|" +va5790 +")": case "[a-zA-Z]": if (v0d216 ==null ||v0d216 =="") v0d216 ="a"; v08c61[0] =new Array(); v08c61[0][0] =97; v08c61[0][1] =122; v08c61[1] =new Array(); v08c61[1][0] =65; v08c61[1][1] =90; break; case "(:\\w|" +va5790 +")": case "\\w": if (v0d216 ==null ||v0d216 =="") v0d216 ="a"; v08c61[0] =new Array(); v08c61[0][0] =97; v08c61[0][1] =122; v08c61[1] =new Array(); v08c61[1][0] =65; v08c61[1][1] =90; v08c61[2] =new Array(); v08c61[2][0] =48; v08c61[2][1] =57; break; default: if (v0d216 ==null ||v0d216 =="") v0d216 ="a"; v08c61[0] =new Array(); v08c61[0][0] =33; v08c61[0][1] =126; v08c61[1] =new Array(); v08c61[1][0] =161; v08c61[1][1] =255; break; } var v52459; var v66e77 =v52459 =v0d216.charCodeAt(0); for (var v5de68 =0; v5de68 <v08c61.length; v5de68++){ if (v08c61[v5de68][0] <v66e77 &&v66e77 <v08c61[v5de68][1]){ v66e77 +=vf4280 ==ISKeyboardKey.DOWN ? -1 : 1; break; } else { if (v08c61[v5de68][0] ==v66e77){ if (vf4280 ==ISKeyboardKey.DOWN) v66e77 =v08c61[(v5de68 ==0)? v08c61.length -1 : v5de68 -1][1]; else v66e77 +=1; break; } else { if (v08c61[v5de68][1] ==v66e77){ if (vf4280 ==ISKeyboardKey.DOWN) v66e77 -=1; else { if (!v6f375) v66e77 =v08c61[(v5de68 +1 <v08c61.length)? v5de68 +1 : 0][0]; else v66e77 =va5790.charCodeAt(0); } break; } } } } v0d216 =String.fromCharCode(v66e77); } else { switch (v4b444){ case "(:[\\d|" +va5790 +"]|" +va5790 +")": case "[\\d|" +va5790 +"]": case "[\\d|\\s]": case "(:\\d|" +va5790 +")": case "\\d": v0d216 ="0"; break; case "(:[a-z]|" +va5790 +")": case "[a-z]": case "(:[a-zA-Z]|" +va5790 +")": case "[a-zA-Z]": case "(:[a-z0-9]|" +va5790 +")": case "[a-z0-9]": case "(:\\w|" +va5790 +")": case "\\w": v0d216 ="a"; break; case "(:[A-Z]|" +va5790 +")": case "[A-Z]": case "(:[A-Z0-9]|" +va5790 +")": case "[A-Z0-9]": v0d216 ="A"; break; default: v0d216 ="a"; break; } } } return v0d216; }, m04599:function(v5e355,v85e74,v3d478,vb5e3){ if (v5e355 ==null ||v5e355.XmlDt ==null)return; var v6e171 =v5e355.XmlDt.selectSingleNode("//MaskInfo"); if (v6e171){ var v58e34 =new MaskInfo(); IS.SetProperties(v58e34,v6e171); var v71529 =new RegExp("\\+","g"); v58e34.REExpression =v58e34.REExpression.replace(v71529," "); v58e34.REExpression =unescape(v58e34.REExpression); v58e34.MaskExpression =v58e34.MaskExpression.replace(v71529," "); v58e34.MaskExpression =unescape(v58e34.MaskExpression); for (var v20d83 =0; v20d83 <v58e34.ArrLiterals.length; v20d83++){ v58e34.ArrLiterals[v20d83] =parseFloat(v58e34.ArrLiterals[v20d83]); }  var v71529 =new RegExp("&#00"); for (var v20d83 =0; v20d83 <v58e34.ArrLiteralsChar.length; v20d83++){ v58e34.ArrLiteralsChar[v20d83] =v58e34.ArrLiteralsChar[v20d83].replace(v71529," "); } v58e34.ArrREExpression =wi4675.m32b82(v6e171,v5e355.MaskType); v58e34.ValueParts =wi4675.m31e56(v85e74,v5e355.Format,v3d478,v58e34.ArrLiterals); wi4675.m41456(v58e34.ValueParts,v85e74,v58e34.ArrLiterals,v58e34.PromptChar); v5e355.MaskInfo =v58e34; with (v6e171){ removeAttribute("ArrLiterals"); removeAttribute("ArrLiteralsChar"); removeAttribute("ArrREExpression"); removeAttribute("CustomOptionalPlaceHolderCharList"); removeAttribute("CustomRequiredPlaceHolderCharList"); removeAttribute("REExpression"); removeChild(selectSingleNode("ArrREExpression")); } } }, m61e68:function(v4de91){ if (v4de91 ==null ||v4de91.XmlDt ==null)return; IS.SetPropertiesToXml(v4de91.MaskInfo,v4de91.XmlDt.selectSingleNode("//MaskInfo")); }, m32b82:function(va4710,vdb853){ var v6c491 =new Array(); if (va4710 !=null){ var v84a43 =va4710.selectSingleNode("ArrREExpression"); if (v84a43 !=null){ v6c491 =new Array(v84a43.childNodes.length); var ve0896 =new RegExp("\\+","g"); for (var v5cf45 =0; v5cf45 <v6c491.length; v5cf45++){ if (vdb853 !="Other") v6c491[v5cf45] =ISXml.GetAttribute(v84a43.childNodes[v5cf45],"Pattern").replace(ve0896," "); else v6c491[v5cf45] =ISXml.GetAttribute(v84a43.childNodes[v5cf45],"Pattern"); if (v6c491[v5cf45] !="%5c+") v6c491[v5cf45] =unescape(v6c491[v5cf45]); else v6c491[v5cf45] =" "; if (v6c491[v5cf45] =="\\") v6c491[v5cf45] ="\\ "; } } } return v6c491; }, mc4488:function(v1b785,v0ad41,v87915){ var vbea30 =true; var v9e562 =v1b785.EditFormat; var v28130 =v9e562.MaskInfo; var vd1a68 =v1b785.HighLight;  if (vd1a68.AutoTabWhenFilled ==true &&v9e562.IsNonCharEditing ==false &&v1b785.LastAction.indexOf("MaskValid")>-1){ var vafd11 =v28130.ValueParts[v28130.ValueParts.length -1]; if (vd1a68.Idx !=vafd11[2]){ v1b785.HighLight.IsValidTextCustomFunction =v28130.SkipOptional ==true ? wi4675.m51955 : null; vd1a68._o =wi5fa76.m35932(v0ad41); vd1a68.IsValidTextCustomFunction =null; if (v0ad41 ==null) vbea30 =false; else { wi5fa76.m00068(v1b785); } } }  var vd1a68 =v1b785.HighLight; if (v87915 ==ISKeyboardKey.DELETE ||v87915 ==ISKeyboardKey.BACKSPACE){ if (vd1a68.Type !="character") v28130.ValueParts[vd1a68.HIdx][1] =vd1a68.Text; else { for (var vcb583 =0; vcb583 <v28130.ValueParts.length; vcb583++){ if (v28130.ValueParts[vcb583][2] ==vd1a68.Idx){ v28130.ValueParts[vcb583][1] =vd1a68.Text; break; } } } } if (vd1a68.Type !="character") v9e562.HighLightedFormat =v28130.ValueParts[vd1a68.HIdx][0]; else { if (vd1a68.Type =="character"){ for (var vcb583 =0; vcb583 <v28130.ValueParts.length; vcb583++){ if (v28130.ValueParts[vcb583][2] ==vd1a68.Idx){ v9e562.HighLightedFormat =v28130.ValueParts[vcb583][0]; break; } } } } v9e562.HighLightedArrREExpression =new Array(); var v78861 =0; for (var vcb583 =vd1a68.Idx; vcb583 <(vd1a68.Text.length +vd1a68.Idx); vcb583++){ v9e562.HighLightedArrREExpression[v78861] =v9e562.MaskInfo.ArrREExpression[vcb583]; v78861++; } return vbea30; }, m31e56:function(vaea77,v7ac90,v5a619,vfaf16,vef278){ var s,e,idx,arrVP,tempF =v7ac90,tempV =vaea77,c; idx =0; arrVP =new Array(); if (v5a619 !="character"){ if (vfaf16.length >0){ for (var v40841 =0; v40841 <=vfaf16.length; v40841++){ if (v40841 ==0 &&vfaf16[v40841] ==0){ c =vaea77.charAt(vfaf16[v40841]); tempV =vaea77.substr(vfaf16[v40841] +1); tempF =tempF.substr(tempF.indexOf(c)+1); continue; } else { if ((vfaf16[v40841] -vfaf16[v40841 -1])==1){ c =vaea77.charAt(vfaf16[v40841]); tempV =vaea77.substr(vfaf16[v40841] +1); tempF =tempF.substr(tempF.indexOf(c)+1); continue; } } if (v40841 ==vfaf16.length &&tempV =="")break; arrVP[idx] =new Array(); if (v40841 <vfaf16.length){ c =vaea77.charAt(vfaf16[v40841]); arrVP[idx][0] =tempF.substr(0,tempF.indexOf(c)); arrVP[idx][3] =tempV.indexOf(vaea77.charAt(vfaf16[v40841])); tempV =vaea77.substr(vfaf16[v40841] +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] =v40841 ==0 ? 0 : vfaf16[v40841 -1] +1; idx++; } } else { arrVP[0] =new Array(); arrVP[0][0] =tempF; arrVP[0][1] =null; arrVP[0][2] =0; arrVP[0][3] =vaea77.length; } } else { var v78621 =0; for (var v40841 =0; v40841 <vaea77.length; v40841++){ if (vfaf16[v78621] !=v40841){ arrVP[idx] =new Array(); arrVP[idx][0] =tempF.length >0 ? tempF.charAt(v40841): ""; arrVP[idx][1] =""; arrVP[idx][2] =v40841; arrVP[idx][3] =1; idx++; } else v78621++; } } return arrVP; }, med770:function(vb5052,v2f679,v19b71){ if (v2f679 !=null &&(vb5052[vb5052.length -1][2] +vb5052[vb5052.length -1][3])==v2f679.length){ for (var v07a16 =0; v07a16 <vb5052.length; v07a16++) vb5052[v07a16][1] =v2f679.substr(vb5052[v07a16][2],vb5052[v07a16][3]); } return vb5052; }, m32d15:function(v34387,v2d948){ for (var v0bc52 =0; v0bc52 <v34387.length; v0bc52++){ v34387[v0bc52][1] =""; for (var vaa579 =0; vaa579 <v34387[v0bc52][3]; vaa579++) v34387[v0bc52][1] +=v2d948; } return v34387; }, m9638:function(v41626){ var v4fb87 =v41626.EditFormat; if (v4fb87){ if (v4fb87.MaskType =="DateTime" ||v4fb87.MaskType =="Number"){ var v44c48 =v4fb87.MaskInfo; var v46a89 =v44c48.PromptChar; var v12222 =v44c48.ValueParts; var vc2b22 =v44c48.ArrREExpression; var vb2914 =0; var f,v,v41626; for (var ve4223 =0; ve4223 <v12222.length; ve4223++){ f =v12222[ve4223][0]; if (v4fb87.MaskType =="DateTime"){ if (f.charAt(0)=="t" ||(f.length >3 &&f.charAt(0)!="f")) continue; } v =""; for (var v9fd75 =0; v9fd75 <v12222[ve4223][3]; v9fd75++){ vb2914 =v12222[ve4223][2] +v9fd75; v41626 =v12222[ve4223][1].charAt(v9fd75); if (v41626 ==v46a89) v =v +(vc2b22[vb2914].indexOf(v46a89)>-1 ? v41626 : (v12222[ve4223][0].length >2 &&"dM".indexOf(v12222[ve4223][0].charAt(0))>-1 ? v41626 : "0")); else v =v +v41626; } v12222[ve4223][1] =v; } } } }, m51955:function(veed82,v1e046){ var v6a562 =veed82.EditFormat.MaskInfo.ArrREExpression; var vab937 =true; if (v6a562[v1e046].indexOf("?")>-1){ var v76e41 =false; for (var v74587 =v1e046; v74587 <v6a562.length; v74587++){ if (v6a562[v74587].indexOf("?")<0){ v76e41 =true; break; } } if (v76e41) return false; else return true; } return vab937; }, mf5243:function(vb3f37){ var va4d82 =this; if (!va4d82) return false; if (!va4d82.Enabled ||va4d82.ReadOnly){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } va4d82.IsDirty =false; if (va4d82.EditFormat){ var v9b846 =va4d82.EditFormat; if (v9b846.Enabled){ if (v9b846.Events !=null) ISEvent.Raise(v9b846.Events.OnBeforeValidate,va4d82.Id,va4d82.EditText); v9b846.IsNonCharEditing =false; if (!v9b846._IsRuntimeValid){ if (v9b846._TempEditText !=null &&v9b846._TempEditText !=""){ va4d82.SetValue(v9b846._TempEditText); va4d82.Text =v9b846._TempText; va4d82.Value =v9b846._TempValue; va4d82.EditText =v9b846._TempEditText; } if (va4d82.HighLight)wi5fa76.m00068(va4d82.Id); } else { v9b846._LastValueBeforeEditFormat =va4d82.Value; if (v9b846.ClientData.IsValid ||!v9b846.IsValidateOnChange){ va4d82.SetValue(va4d82.EditText); WindowEngine.Hide(v9b846.WindowInfo); } else { if (v9b846.MaskType !="Other"){ WindowEngine.Show(v9b846.WindowInfo); if (v9b846.Events) ISEvent.Raise(v9b846.Events.OnValidateError,va4d82.Id); } else { va4d82.Text =va4d82.Value =wi4675.mef18(v9b846,va4d82.Value); va4d82.HtmlObj.value =va4d82.EditText =wi4675.m96929(va4d82); var v7488 =v9b846.ClientData; var v86649 =document.getElementById(va4d82.Id +IS.MaskValidatorSuffix); v7488.IsValid =MaskValidatorEvaluateIsValid(v86649,true,true); if (v7488.IsValid) va4d82.DateDataSource ="EditFormat"; } if (va4d82.HighLight) wi5fa76.m00068(va4d82.Id); } } } va4d82._RuntimeCancelEvent =false; } }, mb8c42:function(v44e76,v53545){ var v80e37 =v44e76.EditFormat; var v09e25 =v80e37.MaskInfo; if (v80e37.Events !=null) if (!ISEvent.Raise(v80e37.Events.OnBeforeValidate,v44e76.Id,v53545))return false; var vd0d93 =true; var vda352 =false; if (v53545 ==null ||v53545 ==""){ v53545 =v80e37.ParseRawText(""); v44e76.Value =v44e76.Text =v53545; v44e76.HtmlObj.value =v44e76.EditText =wi4675.m96929(v44e76); wi4675.m41456(v09e25.ValueParts,v53545,v09e25.ArrLiterals,v09e25.PromptChar); vda352 =true; } else { if (v53545 !=null &&((v80e37.MaskType =="DateTime" &&typeof (v53545)=="object" &&v53545.constructor ==Date)||(v80e37.MaskType =="Number" &&typeof (v53545)=="number"))){ var v6e665 =IS.GetValidationEngine(); var v79347 =v80e37.ClientData; with (v79347){ Type =v80e37.MaskType.toLowerCase(); Format =v80e37.Format; OldValue =NewValue =v80e37.MaskType =="DateTime" ? IS.GetFullCommonDateTimeFormat(v53545): v53545.toString(); IsValid =true; } v6e665.Validate(v79347,v44e76.CultureInfo); wi4675.m68357(v44e76,v80e37); vd0d93 =v79347.IsValid; if (v80e37.MaskType =="DateTime"){ wi4675.med770(v09e25.ValueParts,v79347.FormattedValue,v09e25.PromptChar); v53545 =wi4675.mdf023(v44e76.CultureInfo,v09e25.ValueParts,v80e37.Format,v09e25.ArrLiterals,v09e25.ArrLiteralsChar,v09e25.PromptChar,v09e25.ArrREExpression,true,true); } else v53545 =v79347.FormattedValue; if (vd0d93) v44e76.DateDataSource ="EditFormat"; } else { if (v53545 !=null) v53545 =v53545.toString(); } if (vd0d93 ==true){ var v95513 =new RegExp(v09e25.REExpression); vd0d93 =(v95513.exec(v53545)!=null); } } if (v80e37.Events !=null) if (!ISEvent.Raise(v80e37.Events.OnAfterValidate,v44e76.Id,v53545,vd0d93))return false; if (vda352) return true; if (vd0d93){ if (v80e37.MaskType !="Other"){ var v6e665 =IS.GetValidationEngine(); var v79347 =v80e37.ClientData; with (v79347){ Type =v80e37.MaskType.toLowerCase(); Format =v80e37.Format; OldValue =NewValue =v53545; PromptChar =v09e25.PromptChar; IsValid =true; } v6e665.UnMask(v79347,v44e76.CultureInfo); if (v79347.IsValid){ v44e76.Value =v79347.FormattedValue; v44e76.Text =v53545; v44e76.HtmlObj.value =v44e76.EditText =wi4675.m96929(v44e76); v44e76.DateDataSource ="EditFormat"; } } else { v44e76.Text =v44e76.Value =v53545; v44e76.HtmlObj.value =v44e76.EditText =wi4675.m96929(v44e76); } wi4675.m41456(v09e25.ValueParts,v53545,v09e25.ArrLiterals,v09e25.PromptChar); } return vd0d93; }, m0f451:function(vfcb73,v05150,vd6c20,v05353){ var v9e212 =vfcb73.HtmlObj; var v21414 =document.getElementById(vfcb73.Id +IS.MaskValidatorSuffix); var v51445 =vfcb73.EditFormat; v51445._TempEditText =v05150; v51445._TempText =vfcb73.Text; v51445._TempValue =vfcb73.Value; var v60417; if (vd6c20 !=true &&vfcb73.DisplayFormat){ if (vfcb73.DisplayFormat.Enabled) v60417 =vfcb73.DisplayFormat; } var vef686 =v51445.ClientData; var v29763 =v51445.MaskInfo; var ve947 =wi4675.mb2f67(v29763.ValueParts,v29763.PromptChar); var v19f15 =false; if (v51445.MaskType !="Other"){ if (vfcb73.Nullable &&ve947){ if (vfcb73.Events !=null &&v60417 ==null){ if (!ISEvent.Raise(vfcb73.Events.OnBeforeValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text,"","")){ v9e212.value =vfcb73.EditText; v19f15 =true; } } if (!v19f15){ vfcb73.EditText =v05150; vfcb73.Text =vfcb73.Value =""; WindowEngine.Hide(v51445.WindowInfo); vef686.IsValid =true; if (vfcb73.Events !=null &&v60417 ==null) ISEvent.Raise(vfcb73.Events.OnAfterValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text); } } else { var vd0b80 =""; var vdf787 =IS.GetValidationEngine(); var vfe812; if (!vfcb73.Nullable &&ve947){ if (v51445.MaskType =="DateTime"){ vfe812 =new Date(); vd0b80 =IS.GetFullCommonDateTimeFormat(vfe812);  } else vd0b80 ="0"; with (vef686){ Type =v51445.MaskType.toLowerCase(); Format =v51445.Format; OldValue =NewValue =vd0b80; PromptChar =v29763.PromptChar; IsValid =true; } vdf787.Validate(vef686,vfcb73.CultureInfo); wi4675.m68357(vfcb73,v51445); if (vef686.IsValid){ vfcb73.DateDataSource ="EditFormat"; if (vfcb73.Events !=null &&v60417 ==null){ if (!ISEvent.Raise(vfcb73.Events.OnBeforeValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text,vd0b80,vef686.FormattedValue)){ v9e212.value =vfcb73.EditText; v19f15 =true; } } if (!v19f15){ vfcb73.Text =vef686.FormattedValue; v9e212.value =vfcb73.EditText =wi4675.m96929(vfcb73); vfcb73.Value =vd0b80; WindowEngine.Hide(v51445.WindowInfo); if (vfcb73.Events !=null &&v60417 ==null) ISEvent.Raise(vfcb73.Events.OnAfterValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text); } } } else { wi4675.m9638(vfcb73); var v60a32; if (v51445.MaskType =="DateTime"){ vd0b80 =wi4675.mdf023(vfcb73.CultureInfo,v29763.ValueParts,v51445.Format,v29763.ArrLiterals,v29763.ArrLiteralsChar,v29763.PromptChar,v29763.ArrREExpression,true,true); v60a32 =vd0b80; vd0b80 =vd0b80.replace(new RegExp(v29763.PromptChar,"g"),""); } else { v60a32 =v05150; with (vef686){ Type =v51445.MaskType.toLowerCase(); Format =v51445.Format; OldValue =NewValue =v05150; PromptChar =v29763.PromptChar; IsValid =true; } vd0b80 =vdf787.UnMask(vef686,vfcb73.CultureInfo); } with (vef686){ Type =v51445.MaskType.toLowerCase(); Format =v51445.Format; OldValue =NewValue =vd0b80; PromptChar =null; IsValid =true; } vdf787.Validate(vef686,vfcb73.CultureInfo); wi4675.m68357(vfcb73,v51445); if (vef686.IsValid){ if (vfcb73.Events !=null &&v60417 ==null){ if (!ISEvent.Raise(vfcb73.Events.OnBeforeValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text,vd0b80,v60a32)){ v9e212.value =vfcb73.EditText; v19f15 =true; } } if (!v19f15){ vfcb73.Text =v60a32; vfcb73.Value =vd0b80; vfcb73.HtmlObj.value =vfcb73.EditText =wi4675.m96929(vfcb73); WindowEngine.Hide(v51445.WindowInfo); var v66544 =vfcb73.DateTimeEditor !=null ? vfcb73.DateTimeEditor.ClientData : null; if (v51445.Format.indexOf("d")<0 &&v51445.Format.indexOf("y")<0 &&v66544 !=null &&v66544.DateData !=null){ vef686.DateData.Day =v66544.DateData.Day; vef686.DateData.Month =v66544.DateData.Month; vef686.DateData.Year =v66544.DateData.Year; } if (vfcb73.Events !=null &&v60417 ==null) ISEvent.Raise(vfcb73.Events.OnAfterValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text); } } } } if (vef686.IsValid){ if (vfcb73.DisplayFormat){ if (v51445.MaskType =="DateTime"){ if (!(vfcb73.Nullable &&ve947)){ var v3b888 =vef686.DateData; vfe812 =new Date(v3b888.Year,v3b888.Month,v3b888.Day,v3b888.Hour24,v3b888.Minute,v3b888.Second); vd0b80 =IS.GetFullCommonDateTimeFormat(vfe812);  var v4c753 =vfcb73.DisplayFormat.ClientData; with (v4c753){ Type =v51445.MaskType.toLowerCase(); Format =vfcb73.DisplayFormat.Format; OldValue =NewValue =vd0b80; PromptChar =null; IsValid =true; } vdf787.Validate(v4c753,vfcb73.CultureInfo); wi4675.m68357(vfcb73,v51445); v9e212.value =vfcb73.Value =v4c753.FormattedValue; if (v4c753.IsValid) vfcb73.DateDataSource ="DisplayFormat"; } } else { v9e212.value =vfcb73.Value; } } WindowEngine.Hide(v51445.WindowInfo);  v21414.isvalid =v51445._IsRuntimeValid =true;  return true; } else { if (v05353 ==false) return false; WindowEngine.Show(v51445.WindowInfo); if (v51445.Events)ISEvent.Raise(v51445.Events.OnValidateError,vfcb73.Id);  vfcb73._IsRuntimeCancelEvent =true; v21414.isvalid =v51445._IsRuntimeValid =false; if (!IS.ie){ if (v60417 ==null) wie0739.med210(vfcb73); }  else { wi5fa76.m00068(vfcb73.Id); } return false; } } else { vef686.IsValid =false; if (vfcb73.Nullable) vef686.IsValid =ve947; if (vef686.IsValid ==false){ var v21414 =document.getElementById(vfcb73.Id +IS.MaskValidatorSuffix); vef686.IsValid =MaskValidatorEvaluateIsValid(v21414,true,true); } if (vef686.IsValid){  v21414.isvalid =v51445._IsRuntimeValid =true;  if (vfcb73.Events !=null){ if (!ISEvent.Raise(vfcb73.Events.OnBeforeValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text)){ v9e212.value =vfcb73.EditText; v19f15 =true; } } if (!v19f15){ vfcb73.Value =vfcb73.Text =v9e212.value; vfcb73.HtmlObj.value =vfcb73.EditText =wi4675.m96929(vfcb73); WindowEngine.Hide(v51445.WindowInfo); if (vfcb73.Events !=null) ISEvent.Raise(vfcb73.Events.OnAfterValueChanged,vfcb73.Id,vfcb73.Value,vfcb73.Text); } } else { if (v05353 ==false) return false; WindowEngine.Show(v51445.WindowInfo); if (v51445.Events) ISEvent.Raise(v51445.Events.OnValidateError,vfcb73.Id); vfcb73._RuntimeCancelEvent =true; v21414.isvalid =v51445._IsRuntimeValid =false;  if (!IS.ie){ if (v60417 ==null) wie0739.med210(vfcb73); }  else { wi5fa76.m00068(vfcb73.Id); } return false; } return vef686.IsValid; } }, m91011:function(){ var v23848 =this; if (v23848 ==null) return false; if (!v23848.Enabled ||v23848.ReadOnly){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } if (v23848.EditFormat){ if (v23848._IsActive ==false) return; var v74538 =document.getElementById(v23848.Id +IS.MaskValidatorSuffix); var v19b72 =v23848.EditFormat; v19b72.IsNonCharEditing =false; if (v19b72.Enabled){ var vbe718 =v23848.HtmlObj;    if (!v23848.IsDirty)v23848.IsDirty =vbe718.value !=v23848.EditText; if (v23848.IsDirty){ var v2dd95 =wi4675.m0f451(v23848,vbe718.value,true,false); if (v2dd95 ==false){ if (v19b72.IsValidateOnChange){ window.event.cancelBubble =true; if (!IS.ie) setTimeout("ISGetObject('" +v23848.Id +"').SetFocus();",10); else WindowEngine.Show(v19b72.WindowInfo); } else { WindowEngine.Hide(v19b72.WindowInfo); v23848.EditText =vbe718.value; return true; } } if (v19b72.Events !=null) ISEvent.Raise(v19b72.Events.OnAfterValidate,v23848.Id,vbe718.value,v2dd95); return v2dd95; } else { v23848.IsDirty =v23848.Value !=v19b72._LastValueBeforeEditFormat; if (!v19b72._IsRuntimeValid &&v19b72.IsValidateOnChange){ WindowEngine.Show(v19b72.WindowInfo); setTimeout("ISGetObject('" +v23848.Id +"').SetFocus();",10); } } } } }, ma0211:function(){ var vbec67 =this; if (vbec67 ==null) return false; if (!vbec67.Enabled ||vbec67.ReadOnly){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } var v48348 =vbec67.EditFormat.MaskInfo; var va2c39 =vbec67.HtmlObj.value; var v66079 =""; var vbec67 =""; for (var v1f636 =0; v1f636 <va2c39.length; v1f636++){ vbec67 =va2c39.charAt(v1f636); if (vbec67 ==v48348.PromptChar) vbec67 =" "; else { if (!v48348.CopyWithLiterals){ for (var ve8d93 =0; ve8d93 <v48348.ArrLiterals.length; ve8d93++){ if (v1f636 ==v48348.ArrLiterals[ve8d93]){ vbec67 =" "; break; } } } } v66079 =v66079 +vbec67; } event.returnValue =false; window.clipboardData.setData("Text",v66079); }, m5de58:function(){ var va3842 =this; if (va3842 !=null &&(!va3842.Enabled ||va3842.ReadOnly)){ if (window.event !=null){ window.event.cancelBubble =true; window.event.returnValue =false; } return false; } var v14537 =window.clipboardData.getData("Text"); var v6b991 =va3842.EditText; var v64344 =va3842.Text; var v45f16 =va3842.Value; va3842.HtmlObj.value =v14537; if (wi4675.m6f216(va3842.EditFormat.MaskInfo.ArrREExpression,v14537)){ va3842.Text =va3842.EditText =va3842.Value =v14537; return true; } else { WindowEngine.Hide(va3842.EditFormat.WindowInfo); va3842.EditText =v6b991; va3842.HtmlObj.value =v6b991; va3842.Text =v64344; va3842.Value =v45f16; return false; } }, m41384:function(v9bb33){ var v04898 =v9bb33.EditFormat; var vb7e16 =v04898.MaskInfo; if (wi4675.mb2f67(vb7e16.ValueParts,vb7e16.PromptChar)) return ""; else return v9bb33.Value; }, mee50:function(vad272){ var v13833 =vad272.EditFormat; var v09d85 =v13833.MaskInfo; v13833.Validate(); if (v13833.ClientData.IsValid){ switch (v13833.MaskType){ case "DateTime": var va2c95 =v13833.ClientData.DateData; if (va2c95 !=null) return new Date(parseFloat(va2c95.Year),parseFloat(va2c95.Month),parseFloat(va2c95.Day),parseFloat(va2c95.Hour24),parseFloat(va2c95.Minute),parseFloat(va2c95.Second)); else return vad272.Value; break; case "Number": case "DynamicNumber": var v51c89 =IS.GetValidationEngine(); var v56261 =v13833.ClientData; with (v56261){ Type =v13833.MaskType.toLowerCase(); Format =v13833.Format; OldValue =NewValue =vad272.EditText; PromptChar =v09d85.PromptChar; IsValid =true; } v51c89.UnMask(v56261,vad272.CultureInfo); if (v56261.IsValid) return parseFloat(v56261.FormattedValue); else return vad272.Value; break; default: return vad272.EditText; break; }; } } };function MaskValidatorDestructor(){ var v09396 =delete wi4675;}window.attachEvent("onunload",MaskValidatorDestructor);if (typeof (Sys)!="undefined") Sys.Application.notifyScriptLoaded();