function isFormAlreadyExistinDom(n){for(var i=!1,t=0;t<ns.arrFormsOpened.length;t++)if(ns.arrFormsOpened[t]===n&&$("#"+n).length>0){i=!0;break}return i}function InitializeSplitter(){$("#MainSplitter").kendoSplitter({orientation:"vertical",panes:[{size:"150px",resizable:!1},{resizable:!1,scrollable:!1},{size:"37px",resizable:!1}]});$("#MiddleSplitter").kendoSplitter({orientation:"horizontal",panes:[{resizable:!1,collapsible:!0,collapsed:!1,size:"18%"},{resizable:!0}]});$("#CenterMiddle").kendoSplitter({orientation:"horizontal",panes:[{resizable:!1,collapsible:!1,size:"15px",scrollable:!1},{resizable:!0},{resizable:!0,collapsible:!0,collapsed:!0}]})}function RemoveClassHideControl(n){n.hasClass("HideControl");n.removeClass("HideControl")}function RemoveValueFromControl(){(ns.viewModel.currentForm=="wfmClaimEmploymentHistoryWizard"||ns.viewModel.currentForm=="wfmClaimantRegistrationWizard"||ns.viewModel.currentForm=="wfmPUAClaimantRegistrationWizard")&&($("#lblAdditioanlEmployerFederalAdd1")[0].innerText="",$("#lblAdditioanlEmployerFederalAdd2")[0].innerText="",$("#lblAdditioanlEmployerFederalAdd3")[0].innerText="",$("#lblAdditioanlEmployerFederalCity")[0].innerText="",$("#lblAdditioanlEmployerFederalState")[0].innerText="",$("#lblAdditioanlEmployerFederalZip")[0].innerText="",$("#lblAdditioanlEmployerFederalCountry")[0].innerText="")}function UnloadPortal(){var n=$("#ClaimantPortalName").val();window.opener!=undefined&&window.opener[n]!=undefined&&(window.opener[n]=null)}function logoutSesssion(n){var t,i;(nsEvents.onWindowUnload=function(){},t=nsUserFunctions.logoutSesssion,typeof t!="function"||(i=t(n),i))&&(window.nsCenterLeftRefresh&&typeof window.nsCenterLeftRefresh.stop=="function"&&nsCenterLeftRefresh.stop(),window.location.href=[ns.SiteName,"/account/logout"].join(""))}function ReloadClaimantHome(){var n=$("#ClaimantPortalName").val(),t,i;$("#DivMyAccount").load("/"+n+"/Home/ReturnToHomePage");$("#DivAlertsAndMessages").load("/"+n+"/Home/AlertsAndMessage");nsCommon.InitializeMVVMResources(ns.Language);t={MenuTemplate:ns.istrMenuTemplate};$("#cssmenu").html(t.MenuTemplate);i=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"});!ns.viewModel.currentForm.indexOf("wfmMSSHomeMaintenance")>=0&&$("a[nodedivid^='wfmMSSHomeMaintenance']").length==1&&$("a[nodedivid^='wfmMSSHomeMaintenance']").click();window.location.reload()}function ReloadAlertsAndMessages(){var n=$("#ClaimantPortalName").val();$("#DivAlertsAndMessages").load("/"+n+"/Home/AlertsAndMessage")}function ECMGetNavigationParams(n,t){var i="",s,nt,v,w,y,k,d,h,g,u,f;i=nsCommon.GetActiveDivId(n);s=-1;t!==undefined&&t!==null&&t!==""&&(s=t.getAttribute("rowIndex"));s==null&&(s=-1);var rt=MVVMGlobal.GetControlAttribute(n,nsConstants.SFW_RELATED_CONTROL,i),c=MVVMGlobal.GetControlAttribute(n,"sfwObjectField",i),e=MVVMGlobal.GetControlAttribute(n,"sfwActiveForm",i),et=MVVMGlobal.GetControlAttribute(n,"sfwMethodName",i),a={};if(c!==null&&e!=undefined)for(nt=e.split(";"),v=[],h=0;h<nt.length;h++)v=nt[h].split("="),a[v[0]]=v[1]===undefined?v[0]:v[1];var o="",ut=MVVMGlobal.GetControlAttribute(n,"navparams",i),tt=[],it=[];if(ut!==null){var ft=ut.split(";"),l=MVVMGlobal.GetControlAttribute(n,"sfwFormTitleField",i),b=MVVMGlobal.GetControlAttribute(n,"sfwFormToolTipField",i),p="";if(rt!==null&&et!=="btnGridSearch_Click"){if(w=nsCommon.CheckGridOrListView(i,rt),y=[],w.NotFound==!1||w.NotFound==undefined){for(k=nsCommon.GetWidgetByActiveDivIdAndControlId(i,w.RelatedControlId),y=k.getSelectedRows(s),d=k.iarrAllColumns,h=0;h<y.length;h++)if(y[h].rowSelect==!0||s>=0){p="";var r="",u={},f={};if(ft.forEach(function(n){var b=n.split("="),g=b[0],l=b[1]===undefined?b[0]:b[1],it,nt,t,k,tt,v;if(s>=0?(it=$.grep(y,function(n){return n.rowIndex==s}),r=it[0]):r=y[h],r!=undefined&&r.rowSelect!=undefined&&(r.rowSelect=!1),o===""&&(o=MVVMGlobal.GetValueOf(l,r,i)),p===""&&(p=r.id),l.indexOf("#")==0)u[g]=l.substring(1);else for(nt in r)if(nt.indexOf(l)>-1){u[g]=r[nt];break}if(u.rowIndex=r.rowIndex,t=[],w.blnIsListView){for(k in d)if(k==l){tt=d[k];tt.field=k;t.push(tt);break}}else t=$.grep(d,function(n){return n.field==l});if(t.length==1&&t[0].format!=undefined&&t[0].format!=""&&(t[0].format=="{0:MM/dd/yyyy}"||t[0].format=="{0:d}")&&(u[g]=ns.ApplyCustomFormatForGrid(t[0].format,r[l])),c!==null&&c!==undefined){if(v=r[c],v==""||v==null){nsCommon.DispalyError(DefaultMessages.UnableToSelectActiveForm.replace("{0}",c));return}if(e=a[v],e==undefined){nsCommon.DispalyError(DefaultMessages.InvalidControlValue.replace("{0}",c).replace("{1}",v));return}}f.ActiveForm=e}),f.PrimaryKey=p,l===null?(g=MVVMGlobal.GetNavigationTitle(e),f.Title=g):(g=MVVMGlobal.GetValueOf(l,r,i),f.Title=g),f.ToolTip=b===null?p:MVVMGlobal.GetValueOf(b,r,i),tt.push(u),it.push(f),s>=0)break}k.refresh()}}else u={},f={},ft.forEach(function(n){var v=n.split("="),g=v[0],t=v[1]===undefined?v[0]:v[1],nt=!1,r={},p,w,b,s,y,d;if(i.indexOf(nsConstants.LOOKUP)>0){if(r=ns.Templates[i].HeaderData.tblCriteria,t.indexOf(nsConstants.HASH)!==0){p=ns.Templates[i].ControlAttribites;for(w in p)if(p[w].sfwDataField===t){t=w;break}}}else r=ns.viewModel[i].HeaderData.MaintenanceData;if(o===""&&r[t]!=undefined&&r[t]!=null&&(o=r[t].toString()),b=MVVMGlobal.GetControlAttribute(ns.viewModel.srcElement,"sfwMethodName",i),r[t]!==undefined&&r[t]!=null&&b!=="btnGridSearch_Click"&&(u[g]=r[t].toString()),t.indexOf(nsConstants.HASH)===0&&(t=t.replace(nsConstants.HASH,""),nt=!0),nt===!0)u[g]=t;else if(i.indexOf(nsConstants.LOOKUP)<0&&b==="btnGridSearch_Click"&&(s=$([nsConstants.HASH,i,nsConstants.SPACE_HASH,t].join("")),s.length>0)){var k=MVVMGlobal.GetControlAttribute(s,"sfwDataField",i),l=MVVMGlobal.GetControlAttribute(s,"sfwOperator",i),h=s.val();s.attr(nsConstants.TYPE)!=null&&s.attr(nsConstants.TYPE).toLowerCase()==nsConstants.CHECKBOX&&(s.is(":checked")?(y=s.attr("sfwValueChecked"),y==null&&(y="Y"),h=y):h="");h==null&&(h="");(l===null||l===undefined)&&(l="like");h!=""&&h!=null&&(u[k]===undefined?u[k]=[h,";",l].join(""):u[[k,"_2"].join("")]=[h,";",l].join(""))}if(c!==null){if(Object.keys(a).length==1){e=Object.keys(a)[0];return}d=r[c];e=a[d]===undefined?e:a[d]}f.ActiveForm=e}),f.PrimaryKey=o,f.Title=l===null?o:r!==undefined&&r[l]!==undefined?r[l]:ns.viewModel[i]!==undefined&&ns.viewModel[i].HeaderData!==undefined&&ns.viewModel[i].HeaderData.MaintenanceData!==undefined&&ns.viewModel[i].HeaderData.MaintenanceData[l]!==undefined?ns.viewModel[i].HeaderData.MaintenanceData[l]:o,f.ToolTip=b===null?o:r[b],tt.push(u),it.push(f)}return nsCommon.isNumber(o)||(o=0),{larrRows:tt,lstrActiveForm:e,lstrFirstID:o,larrNodeInfo:it}}function PopupCenterDual(n,t,i,r){var u=window.screenLeft!=undefined?window.screenLeft:screen.left,f=window.screenTop!=undefined?window.screenTop:screen.top;width=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;height=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;var e=width/2-i/2+u,o=height/2-r/2+f,s=window.open(n,"ECM_"+t,"width="+i+"height="+r+", top="+o+", left="+e+",resizable=yes,scrollbars=yes,titlebar=yes,toolbar=no,menubar=no,location=no,directories=no, status=yes")}function VideoPopup(n,t){var i=h=1e3,f=window.screenLeft!=undefined?window.screenLeft:screen.left,e=window.screenTop!=undefined?window.screenTop:screen.top,r,u;width=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;height=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;r=width/2-i/2+f;u=height/2-h/2+e;n=window.open("about:blank",n,"width="+i+"height="+h+", top="+u+", left="+r+",resizable=yes");n.document.write('<html><body><video id="video1" width="100%" height="100%" autoplay controls>  <source src="'+t+'" type="video/mp4">  Your browser does not support HTML5 video.<\/video><\/body><\/html>');n.onbeforeunload=function(){n.close();nsCommon.SyncPost("DeleteECMTempVideo",t,undefined,"POST")}}function DisconnectUserOnClose(){if(window.name!=""&&window.name!=undefined)return nsEvents.GetOtherAjaxRequest("Storage/DisconnectUserFromSession",{SkipWindowRefresh:!0},!1,"POST")}function ShowHideReasonDropdownControl(n){var t;if(ns.viewModel.currentForm=="wfmClaimantRegistrationWizard"||ns.viewModel.currentForm=="wfmPUAClaimantRegistrationWizard"||ns.viewModel.currentForm=="wfmReopenPUAClaimWizard"||ns.viewModel.currentForm=="wfmClaimReopenWizard"||ns.viewModel.currentForm=="wfmClaimExtensionWizard"||ns.viewModel.currentForm=="wfmPUAClaimExtensionWizard"){var u="",f="",r="",i="",e="",o="";$("#rblPartTimeY input:checked")[0]&&(u=$("#rblPartTimeY input:checked")[0].value);$("#rblPartTwentyY input:checked")[0]&&(f=$("#rblPartTwentyY input:checked")[0].value);$("#rblCurrAvailableTwenty input:checked")[0]&&(r=$("#rblCurrAvailableTwenty input:checked")[0].value);$("#rblSeekFullTime input:checked")[0]&&(i=$("#rblSeekFullTime input:checked")[0].value);$("#rblTwenty input:checked")[0]&&(e=$("#rblTwenty input:checked")[0].value);$("#rblThirtyFive input:checked")[0]&&(o=$("#rblThirtyFive input:checked")[0].value);t="#ltrReason2,#lblReason2,#ddlDropDownReason2";u=="N"&&f=="Y"&&r=="N"&&(i=="FULL"||i=="PART")?RemoveOrAddHideControlCSS(n,t,!1):u=="N"&&f=="N"&&(r=="Y"||r=="N")&&(i=="FULL"||i=="PART")?RemoveOrAddHideControlCSS(n,t,!1):RemoveOrAddHideControlCSS(n,t,!0);e=="N"&&RemoveOrAddHideControlCSS(n,t,!0);o=="Y"&&RemoveOrAddHideControlCSS(n,t,!0)}}function RemoveOrAddHideControlCSS(n,t,i){n!=undefined&&n.length>0&&n.find(t).length>0&&(i?n.find(t).addClass("HideControl"):n.find(t).removeClass("HideControl"))}function SetMostRecentWorkAddressFields(n,t){var o=t.find("#pnlEmployerNameDetailsRead"),s=t.find("#pnlEmployerLegalDetails"),i=t.find(n[0]),r=t.find(n[1]),u=t.find(n[2]),f=t.find(n[3]),e=t.find(n[4]),h;s!=undefined&&o!=undefined&&i!=undefined&&r!=undefined&&u!=undefined&&f!=undefined&e!=undefined&&(o.css("display")=="block"?(h=t.find("#lblBuAddr1"),i.html(h.text()),r.html(t.find("#lblBuAddr2").text()),u.html(t.find("#lblBuCity").text()),f.html(t.find("#lblBuState").text()),e.html(t.find("#lblBuZip").text())):s.css("display")=="block"&&(i.html(t.find("#txtLegalAddress1").val()),r.html(t.find("#txtLegalAddress2").val()),u.html(t.find("#txtLegalCity").val()),t.find("#ddlDropDownList1")&&f.html($("#ddlDropDownList1 option:selected").text()),e.html(t.find("#txtLegalZIP").val())))}function GetProperDateWithFormat(n,t){if(n!=undefined&&t!=null&&t!=""){n=n.replace("{0:",nsConstants.BLANK_STRING).replace("}",nsConstants.BLANK_STRING);var i=n?neoFormat.parseDate(t,n):null;i==null&&(i=neoFormat.parseDate(t),i!=null&&(t=i),t=ns.ApplyCustomFormatForGrid(n,t))}return t}function btn_GoPreviousPage(n){var t;if((ns.viewModel.currentForm=="wfmClaimantFileAppealWizard"||ns.viewModel.currentForm=="wfmClaimantFileHigherAppealWizard")&&(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0))return t.trigger("click"),!1;if(ns.viewModel.currentForm=="wfmHigherAppealDetailMaintenance"){if($("#lblnShowBoardIssuetabDetails").text()=="true"&&$("#btnCancelBoardIssue")!==null&&$("#btnCancelBoardIssue")!=undefined)return $("#btnCancelBoardIssue").trigger("click"),!1;if(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0)return t.trigger("click"),!1}if(ns.viewModel.currentForm=="wfmAppealMaintenance"){if($("#lblnShowWitnessDetails").text()=="true"&&$("#btnCancelWitness")!==null&&$("#btnCancelWitness")!=undefined)return $("#btnCancelWitness").trigger("click"),!1;if($("#lblShowRepresentative").text()=="true"&&$("#btnCancelRepresentative")!==null&&$("#btnCancelRepresentative")!=undefined)return $("#btnCancelRepresentative").trigger("click"),!1;if(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0)return t.trigger("click"),!1}if(ns.viewModel.currentForm=="wfmViewClaimantLowerAppealMaintenance"){if($("#lblnShowWitnessDetails").text()=="true"&&$("#btnCancelWitness")!==null&&$("#btnCancelWitness")!=undefined)return $("#btnCancelWitness").trigger("click"),!1;if($("#lblShowRepresentative").text()=="true"&&$("#btnCancelRepresentative")!==null&&$("#btnCancelRepresentative")!=undefined)return $("#btnCancelRepresentative").trigger("click"),!1;if(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0)return t.trigger("click"),!1}if(ns.viewModel.currentForm=="wfmViewEmployerLowerAppealMaintenance"){if($("#lblnShowWitnessDetails").text()=="true"&&$("#btnCancelWitness")!==null&&$("#btnCancelWitness")!=undefined)return $("#btnCancelWitness").trigger("click"),!1;if($("#lblShowRepresentative").text()=="true"&&$("#btnCancelRepresentative")!==null&&$("#btnCancelRepresentative")!=undefined)return $("#btnCancelRepresentative").trigger("click"),!1;if(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0)return t.trigger("click"),!1}nsCommon.CheckForNewModeB4Route(n)&&(ns.viewModel.srcElement=undefined,$("#lnkPrevious").length>0&&(ns.viewModel.srcElement=$("#lnkPrevious")[0]),ns.HashChangedFormCode=!1,ns.setSenderData("","",""),window.history.back(),ns.displayActivity(!1),ns.displayCenterleftActivity(!1))}function AddDirtyData(n,t,i){var f,c,r,e,o,u,l;if(!ns.blnLoading&&(typeof i=="undefined"&&(i=undefined),!(n.indexOf("Lookup")>0))&&(i===undefined||i.field!=="rowSelect")){if(f=nsCommon.GetDataItemFromDivID(n),ns.DirtyData[n]===undefined&&(ns.DirtyData[n]={HeaderData:{},DetailsData:{},UserControlData:{}}),t.Type==="HeaderData")ns.DirtyData[n].HeaderData==undefined&&(ns.DirtyData[n].HeaderData={}),r=t.Field.split("."),ns.DirtyData[n].HeaderData[r[0]]===undefined&&(ns.DirtyData[n].HeaderData[r[0]]={},f!==undefined&&LoadBreadCrums(f.divID)),t.Value===undefined||nsCommon.isNumber(t.Value)||typeof t.Value!="string"||(t.Value=t.Value.trim()),c=!0,ns.DirtyData[n].HeaderData[r[0]][r[1]]!==undefined&&typeof ns.DirtyData[n].HeaderData[r[0]][r[1]]!=typeof t.Value&&(c=!1),c&&(ns.DirtyData[n].HeaderData[r[0]][r[1]]=t.Value);else if(t.Type==="UserControlData")r=t.Field.split("."),e=r[1].split("__"),ns.DirtyData[n].HeaderData.UserControlData===undefined&&(ns.DirtyData[n].HeaderData.UserControlData={}),ns.DirtyData[n].HeaderData.UserControlData[e[0]]===undefined&&(ns.DirtyData[n].HeaderData.UserControlData[e[0]]={},f!==undefined&&LoadBreadCrums(f.divID)),t.Value===undefined||nsCommon.isNumber(t.Value)||typeof t.Value!="string"||(t.Value=t.Value.trim()),ns.DirtyData[n].HeaderData.UserControlData[e[0]][e[1]]=t.Value;else if(i.action==="itemchange"){o=GetControlAttribute(t,"sfwObjectID",n);u=GetControlAttribute(t,"id",n);o=o.substr(o.indexOf(".")+1);u=t.selector.substr(t.selector.lastIndexOf("#")+1);u=u.replace("GridTable_","");ns.DirtyData[n].DetailsData==undefined&&(ns.DirtyData[n].DetailsData={});ns.DirtyData[n].DetailsData[u]===undefined&&(ns.DirtyData[n].DetailsData[u]={Records:[],istrObjectID:o});var s=i.items[0].toJSON(),a=ns.DirtyData[n].DetailsData[u].Records,v=$.grep(a,function(n){return n.rowIndex===s.rowIndex}),h;v.length==0?(h={rowIndex:s.rowIndex,rowSelect:s.rowSelect},a.push(h),f!==undefined&&LoadBreadCrums(f.divID)):h=v[0];u.indexOf("ListViewContainer_")===0&&i.field.indexOf(".Value2")>0?(l=i.field.replace(".Value2",""),h[l]=s[l].Value2):h[i.field]=s[i.field]}PopulateDirtyFormList()}}function SetFieldValueIntoModel(n,t,i,r,u,f){var e,h,c,o,a,s,l,v;if((r==null||r.length==0)&&(r=$("#"+n)),e=u||(r!=null&&r.length>0?r[0].querySelector([nsConstants.HASH,t].join("")):null),e!=null){if(h=$(e),e.tagName===nsConstants.INPUT_TAG||e.tagName===nsConstants.SELECT_TAG){if(o=MVVMGlobal.GetField(h),o==undefined)return;if(e.tagName===nsConstants.SELECT_TAG&&e.getAttribute("multiple")==="multiple"&&(i==null||i==="")&&(i=[]),c=n.indexOf(nsConstants.LOOKUP)>0||nsCommon.IsCorrForm(n)||n.indexOf(nsConstants.RPT_LOWERCASE)>0?ns.Templates[n].HeaderData:ns.viewModel[n].HeaderData,f===!0)if(a=c.get(o),a!=i)c.set(o,i);else return!1;else c.set(o,i);ns.VisibilityChangedFromCode=!0;e.tagName===nsConstants.SELECT_TAG&&e.getAttribute("multiple")==="multiple"&&MVVM.JQueryControls.MultiSelect.ReloadValues(h);e.tagName===nsConstants.INPUT_TAG&&e.getAttribute(nsConstants.TYPE)===nsConstants.CHECKBOX&&MVVMGlobal.setCheckBoxControl(h,n,i)}if(e.getAttribute(nsConstants.ATTRIBUTE_ISLISTCONTROL)==nsConstants.TRUE&&(e.tagName===nsConstants.SPAN_TAG||e.tagName===nsConstants.DIV_TAG)&&(s=e.getElementsByTagName("input"),s.length>0&&(MVVMGlobal.SetFieldValueIntoModel(n,s[0].id,i,r),i=="")))for(l=0,v=s.length;l<v;l++)s[l].checked=!1}}function btnOpenLookup_Click(n){var e=nsCommon.GetEventInfo(n),s=e.ActiveDivID,h=e.lbtnSelf,r,f;if(ns.blnInNewMode===!0&&MVVMGlobal.NavigateInNewMode(s)!==!0)return!1;var o=nsCommon.GetNavigationParams(h,n),t=o.lstrActiveForm,i=o.larrRows,u=[nsConstants.HASH,nsConstants.CENTER_SPLITTER].join("");ns.blnUseSlideoutForLookup?u=nsConstants.LOOKUP_HOLDER_SELECTOR:ns.SessionStorePageState(t,"scroll",null,$(u).scrollTop());nsCommon.sessionSet(t,i);ns.lblnCanSetLookupParams=i!=undefined&&i.length>0&&i[0]!=undefined?!0:!1;ns.iblnBtnOpenLookup_Click=!0;r=nsCommon.GetDataItemFromDivID(t);$([nsConstants.HASH,t].join("")).length>0&&r!=undefined?(f=ns.tabsTreeView.findByUid(r.uid),f.length!==0&&(nsCommon.SetLookupFormParams(u,t),ns.tabsTreeView.select(f,!0),i!=undefined&&i.length>0&&i[0]!=undefined&&(ns.iblnTriggeredSearch=!0,$([nsConstants.HASH,t,nsConstants.SPACE_HASH,"btnSearch"].join("")).trigger("click")),r.parentNode()!=undefined&&MVVMGlobal.LoadBreadCrums(t,r))):ns.spaRouter.navigate(["/spa/",t,"/0"].join(""))}function setCheckUncheckWaiverPenalty(n,t,i){var u=neoFormat.format("tr[rowIndex='{0}'],div.s-grid-data-row[rowIndex='{0}']",t),f=n.element.find(u),r=f.find('.GridCheckBox[data-field="dt__0_0"]');n.setRowPropertyByIndex(t,"dt__0_0",i);r.length>0&&(r[0].checked=i==="Y",r[0].setAttribute("IsValueChanged","true"),r.trigger("change"))}function InitTimer(n){var t=n,i;if(SessionEvents.iintSessionRemainingTimer=300,t==undefined?(t=20,SessionEvents.iintSessionTimeout=20):SessionEvents.iintSessionTimeout=t,i=(t*60-SessionEvents.iintSessionRemainingTimer+1)*1e3,$.idleTimer!=undefined){$.idleTimer(i);$(document).off("idle.idleTimer");$(document).on("idle.idleTimer",function(){ns.iblnFileUploadInProgress===!0||ns.blnLoading===!0?ns.refreshSession():(SessionEvents.TimerReset=!1,SessionEvents.ShowTimeoutWarning(SessionEvents.iintSessionRemainingTimer,!0),SessionEvents.countdown(SessionEvents.iintSessionRemainingTimer,ns.logoutSesssion))})}}var SessionEvents_ResetTimer,nsWizard_BindWizardData,nsEventsOnDeleteFormClick,nsEventsbtnBase_Click,data,ChangeForTreeTitle;if($(function(){if(ns.iblnNavigateInNewMode=!0,ns.iblnADATesting)return!1;ns.iblnHighlightAllErrorControls=!0;ns.iblnNonCollapsiblePanels=!0;RegisterEvents();ns.blnHighlightErrorControlsOnClick=!0;ns.SiteName=location.pathname.split("/")[1];var n=location.pathname.split("/")[3].toLowerCase();ns.CenterLeftPanelBar=$("#CenterLeft ul[controlType='accordian']").kendoPanelBar({expandMode:"single"}).data("kendoPanelBar");ns.blnShowConfirmMsgForChildNodeDelete=!1;InitializeSplitter();n==="wfmregister"?($("#PUARegister").val().toLowerCase()=="true"?(ns.LandingPage="wfmPUAClaimantRegistrationWizard",location.hash="#/spa/wfmPUAClaimantRegistrationWizard/0"):ns.LandingPage="wfmClaimantRegistrationWizard",ns.sfwPageMode="New"):ns.LandingPage="wfmClaimantContinueRegistrationMaintenance";ns.viewModel.currentForm=ns.LandingPage;ns.viewModel.currentModel=ns.LandingPage;$("#hdnVisuallyImpaired")!=undefined&&$("#hdnVisuallyImpaired").length>0&&(ns.iblnVisuallyImpaired=$("#hdnVisuallyImpaired").val().toLowerCase()==="true",ns.iblnVisuallyImpaired===!0&&window.registerADADateEvents());FrameworkInitilize();ns.iblnVisuallyImpaired===!0&&window.registerADADateEvents();kendo.bind($("#NotificationBar"),ns.NotificationModel.DirtyForms)}),window.MVVMGlobal!=undefined){function RegisterEvents(){MVVMGlobal.RegisterEvents()}function FrameworkInitilize(){MVVMGlobal.FrameworkInitilize()}nsCommon.SyncPost=nsRequest.SyncPost;function GetControlAttribute(n,t,i){return MVVMGlobal.GetControlAttribute(n,t,i)}ns.getTemplate=nsRequest.getTemplate;function setRequestingForm(n){MVVMGlobal.setRequestingForm(n)}function Extend_Custom(n){MVVMGlobal.Extend_Custom(n)}function showDiv(n){MVVMGlobal.showDiv(n)}function OnDeleteNodeClick(n){nsEvents.OnDeleteNodeClick(n)}}ns.AutoLoginProp="lblClaimantId";ns.AutoLoginUID="lblUserNameFinish";ns.AutoLoginPwd="lblPasswordFinish";ns.oldChildIdx=null;ns.oldParentIdx=null;var iblnLWARefresh,ibln1099GRefresh,iblnCheckvalue=!1,nsUserFunctions=nsUserFunctions||{},dictDocuments=[],StateAndCountySelectedValue={SelectedState:"",SelectedCounty:""},navigationthroughAccountMaintance=!1;nsUserFunctions={ChatItemClick:function(n,t){nsUserFunctions.LinkButtonClick(n,t);$(".messages__item").each(function(){$(this).attr("tabIndex",0)});$($("#agentElement").children()[1]).attr("tabindex","0")},ReportClick:function(){return setTimeout(function(){$(".validator-error").length>0&&($(".validator-error").attr("tabindex","0"),$(".validator-error").attr("title","This field is required."),$(".validator-error").attr("alt","This field is required."))},500),!0},SplitterClick:function(n){var i=n.keyCode,t;(i==13||i==32)&&(t=!1,$(".k-collapse-prev").length>0&&($(".k-collapse-prev").trigger("click"),t=!0),$(".k-expand-prev").length>0&&!t&&$(".k-expand-prev").trigger("click"))},LinkButtonClick:function(n,t){var i=n.keyCode;(i==13||i==32)&&(n.preventDefault(),$(t)!==null&&$(t)!=undefined&&$(t).trigger("click"))},AnchorLinkButtonClick:function(n,t){var i=n.keyCode;(i==13||i==32)&&(n.preventDefault(),$(t)!==null&&$(t)!=undefined&&$(t)[0].click())},ShowcontrolAfterCheckAvailability:function(){return setTimeout(function(){$("#txtTextBox8").focus()},300),!1},ShowcontrolAfteruserVerification:function(){return ns.iblnVisuallyImpaired==!0&&$("#ltrLiteral140").focus(),!1},ShowcontrolAfterRefreshMailingAddress:function(){return $("#ltrLiteral140").focus(),!0},ShowcontrolFocusForADA:function(){return ns.iblnVisuallyImpaired==!0&&$(".FocusToControlForTab").focus(),!1},PrintCenterSplitter:function(){$("#CenterSplitter").find("input, select").each(function(){var t=$(this),i,r,n;(t.attr("type")=="text"||t.attr("type")=="password")&&(n="#"+$(this).attr("id"),i=t.val(),$(n).attr("value",i));(t.attr("data-sfwcontroltype")=="dropdown"||t.attr("data-sfwcontroltype")=="cascading")&&(n="#"+$(this).attr("id"),r=$(n+" option:selected").html(),$("#"+$(this).attr("id")+" option[text='"+r+"']").attr("selected","selected"));t.attr("type")=="radio"&&(n="#"+$(this).attr("id"),$(n).is(":checked")&&$(n).attr("checked","checked"));t.attr("type")=="checkbox"&&(n="#"+$(this).attr("id"),$(n).is(":checked")&&$(n).attr("checked","checked"))});$("#CenterSplitter").print();$.each($("select option:selected"),function(){$(this).removeAttr("selected")});$.each($("input[type='radio']:checked"),function(){$(this).removeAttr("checked")});$.each($("input[type='checkbox']:checked"),function(){$(this).removeAttr("checked")});$.each($("input[type='text'], input[type=password]"),function(){$(this).removeAttr("value")})},FindEmployerIdLabel:function(n){var t=n,i,r,u;t!=undefined&&t!=""&&(i=t.find(".EmpAcctID_10DigitFormat"),nsUserFunctions.ApplyPaddingToEmployerID(i),r=t.find('label[id^="lbludcEmployerAccountId"]'),nsUserFunctions.ApplyPaddingToEmployerID(r),u=t.find('label[id^="lblClaimantIDLoadReassign"]'),nsUserFunctions.ApplyPaddingToEmployerID(u))},ApplyUserDefinedFormat:function(n){var t;n&&n.context&&n.context.DataFormat==="{0:*****}"&&n.context.Control&&(t=nsCommon.GetActiveDivId(n.context.Control),n.context.Control.mask("*****",{ActiveDivId:t,firstFocus:!0,firstBlur:!0,autoclear:!0}).trigger("focus").trigger("blur"));n&&n.context&&n.context.DataFormat==="{0:0000}"&&n.context.Control&&(t=nsCommon.GetActiveDivId(n.context.Control),n.context.Control.mask("0000",{ActiveDivId:t,firstFocus:!0,firstBlur:!0,autoclear:!0}).trigger("focus").trigger("blur"));n&&n.context&&n.context.DataFormat==="{0:a9a 9a9}"&&n.context.Control&&(t=nsCommon.GetActiveDivId(n.context.Control),n.context.Control.mask("a9a 9a9",{ActiveDivId:t,firstFocus:!0,firstBlur:!0,autoclear:!0}).trigger("focus").trigger("blur"));n&&n.context&&n.context.DataFormat==="{0:00000}"&&n.context.Control&&(t=nsCommon.GetActiveDivId(n.context.Control),n.context.Control.mask("00000",{ActiveDivId:t,firstFocus:!0,firstBlur:!0,autoclear:!0}).trigger("focus").trigger("blur"))},ClearFeildsForAddressValidation:function(){return document.querySelector('input[gridid="grvInputAddress"]:checked')!=(null||undefined)&&(document.querySelector('input[gridid="grvInputAddress"]:checked').checked=!1),document.querySelector('input[gridid="grvSuggestions"]:checked')!=(null||undefined)&&(document.querySelector('input[gridid="grvSuggestions"]:checked').checked=!1),!0},ClearFeildsForAddressValidationforGenInfo:function(){return document.querySelector('input[gridid="grvInputAddressGenInfo"]:checked')!=(null||undefined)&&(document.querySelector('input[gridid="grvInputAddressGenInfo"]:checked').checked=!1),document.querySelector('input[gridid="grvSuggestionsGenInfo"]:checked')!=(null||undefined)&&(document.querySelector('input[gridid="grvSuggestionsGenInfo"]:checked').checked=!1),!0},CheckRedirectRequired:function(){document.getElementById("lblAddressValidated")!=(null||undefined)&&document.getElementById("lblAddressValidated").innerHTML=="true"&&document.getElementById("btnSaveAddressAndData").click()},ValidateSelectedFiles:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i,r;return n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")===0&&t.find("#SupportingDocumentFiles").length>0&&n.context.selectedFiles.length>0&&n.context.selectedFiles[0].size>t.find("#lblMaxFileSizeinBytes").text()?(i=t.find("#lblFileMaxSizeInMB").text(),r="File size limit exceeded. Please upload a file less than "+i+" MB size.",nsCommon.DispalyError(r),!1):!0},ApplyLeftPadding:function(n){var i="",t;if(n!=undefined&&n!=""&&n.length>0){if(n.length<10){for(t=0;t<10-n.length;t++)i+="0";return i+n}return n}return n},ApplyPaddingToEmployerID:function(n){n!=undefined&&n.length>0&&n.each(function(){var n=$(this).text().trim();n!=undefined&&n.length>0&&$(this).text(nsUserFunctions.ApplyLeftPadding(n))})},GetChartTitle:function(){},ClaimReopenAfterSuccess:function(n){var i=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),t=i.find(" .s-fileupload-list");t!=null&&t!=undefined&&t.length>0&&(i.find(" .s-fileupload-remove").addClass("HideControl"),$(t[0]).children().removeClass("s-fileupload-item-success"),$(t[0]).children().addClass("s-fileupload-item-success-claimReopen"))},PopupOnPaymentBatchSubmit:function(n){var t=$("#"+n.context.activeDivID);if(n.context.activeDivID.indexOf("wfmDepositPaymentDetailsMaintenance")===0)return confirm("Are you sure you want to submit the batch?")},OpenStaticPopupForTPSSample:function(n){var o=nsUserFunctions.GetActiveDomElement(this),t=n.context.idictParam.param0,i=n.context.idictParam.param1,r=$("#"+t).text(),u=n.context.activeDivID,f=$("<div><span>"+r+'<\/span><br><div><button class="button" id="YesBtn" onclick="javascript:$(\'#'+i+"').trigger('click');nsUserFunctions.ClosePopup(this);\">OK<\/button><\/div><\/div>"),e=MVVM.Controls.Dialog.CreateInstance(f,u,{title:"",close:function(){this.destroy()},deactivate:"empty",width:450});return e.open(),!1},ClosePopup:function(n){return $(n).parents(".k-window").find(".k-i-close").trigger("click"),!1},OpenStaticPopupForDeleteEmployer:function(n){var l=nsUserFunctions.GetActiveDomElement(this),s=n.context.idictParam.param0,i=n.context.idictParam.param1,h=n.context.idictParam.param2,r=$("#"+s).text(),c=n.context.activeDivID,t,e,o=0,u=$(document).find("#GridTable_"+h+" tbody tr"),f;if(u!=undefined&&u.length>0&&u.each(function(){var n=$(this).find("input[type=radio]").is(":checked");n==!0&&o++}),r!=null&&i!=null&&r!=undefined&&i!=undefined&&o>0)t=$("<div><span>"+r+'<\/span><br><div><button class="button" id="YesBtn" onclick="javascript:$(\'#'+i+'\').trigger(\'click\');nsUserFunctions.ClosePopup(this);">OK<\/button><button class="button" onclick="nsUserFunctions.ClosePopup(this);" id="NoBtn">Cancel<\/button><\/div><\/div>');else return f={},f[0]=3458,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",f,undefined,"POST"),n.context.activeDivID),!1;return t!=null&&t!=undefined&&(e=MVVM.Controls.Dialog.CreateInstance(t,c,{title:"",close:function(){this.destroy()},deactivate:"empty",width:450}),e.open()),!1},SelectUIRequestDetailItem:function(){var n=ns.viewModel.currentModel,u=$("#"+n+" #lblPopupFName").text(),i,t,r;if(ns.viewModel[n].HeaderData.MaintenanceData.lblPassword!=undefined||ns.viewModel[n].HeaderData.MaintenanceData.lblCurrentWeekEffectiveDatechk!=undefined)return!1;if(u=="Y"){i=$("#"+n+" #Table_GridTable_grvLstUIQRequestDetail");t=i.find(".s-grid-check-row");t[0].checked=!0;NeoGrid.onChangeRowSelect(t);r=$("#"+n+" #btnNewPopupDialogGroup");setTimeout(function(n){n.trigger("click")},0,r)}return!1},ValidateSSAPopup:function(){var n=ns.viewModel.currentModel,i=$("#"+n+" #txtTextBox71").val(),r=$("#"+n+" #txtTextBox131").val(),t="";return($("#"+n+" #txtTextBox71").val()==""&&(t+="\nSSN is Required"),$("#"+n+" #txtTextBox71").val()!=undefined&&$("#"+n+" #txtTextBox71").val()!=""&&$("#"+n+" #txtTextBox71").val().length<9&&(t+="\nSSN must contain 9 digits"),$("#"+n+" #txtTextBox131").val()==""&&(t+="\nConfirm SSN is Required"),$("#"+n+" #txtTextBox31").val()==""&&(t+="\nDate of Birth is Required"),$("#"+n+" #txtTextBox151").val()==""&&(t+="\nFirst Name is Required"),$("#"+n+" #txtTextBox1712").val()==""&&(t+="\nLast Name is Required"),t!="")?(alert(t),!1):i!=r?(alert("SSN and Confirm SSN do not match."),!1):!0},GetADALandingPage:function(){return"wfmMSSHomeMaintenance"},AfterInitializeADATest:function(){$("a:not([alt])").each(function(){var n=$(this),t,i;n.attr("alt","Link");t=n.text().trim();t===""&&(i=n.html().trim(),n.attr("InfoTextPlaced","true"))});$("a[style*='display: none']:not([InfoTextPlaced]),a:not(:visible):not([InfoTextPlaced])").each(function(){var n=$(this),t=n.text().trim(),i;t===""&&(i=n.html().trim(),n.attr("InfoTextPlaced","true"))});setTimeout(function(){$("#cssmenu").css("border-top","0 !important");$("head").append('<link rel="stylesheet" href="'+ns.SiteName+'/styles/ADAMenu.css" type="text/css" />')});nsUserFunctions.AfterApplyingUI=function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("a:not([alt])").each(function(){var n=$(this),t,i;n.attr("alt","Link");t=n.text().trim();t===""&&(i=n.html().trim(),n.html("Information"+i),n.attr("InfoTextPlaced","true"))});t.find("a[style*='display: none']:not([InfoTextPlaced]),a:not(:visible):not([InfoTextPlaced])").each(function(){var n=$(this),i=n.text().trim(),t;i===""&&(t=n.html().trim(),n.html("Information"+t),n.attr("InfoTextPlaced","true"))});$("img[alt*='...']:not([Information]),img[title*='...']:not(Title Information)").attr({alt:"Information",title:"Title Information"});$("a#logo").attr("title","Maryland Department of Labor, Licensing and Regulation");t.find("table").not(function(){return this.querySelector("thead")!=null}).each(function(){var n=$(this).find("tr:first").first().find("td").length,t="";n>1&&(t="colspan='"+(n-1)+"'");$(this).prepend('<thead style="display:none;"><tr><th '+t+' scope="col"  >ADA Test<\/th><\/tr><\/thead>');this.getAttribute("role")==undefined&&this.setAttribute("role","table");this.getAttribute("aria-describedby")==undefined&&this.setAttribute("aria-describedby","defaultareadescribedby")});t.find("table").not(function(){return this.querySelector("caption")!=null}).prepend('<caption style="display:none;">ADA<\/caption>');t.find("[style*='transition']").css("transition","");$("[style*='transition']").css("transition","");t.find("table:not([role])").attr("role","table");t.find("table:not([aria-describedby])").attr("aria-describedby","defaultareadescribedby");t.find("svg:not([aria-describedby])").attr("aria-describedby","defaultareadescribedby");t.find("input[type='image'][imagebutton='true'][src*='Lookup.jpg'][title=''], input[type='image'][imagebutton='true'][src*='Lookup.jpg']:not([title])").attr("title","Retrieval");t.find("input[type=text]:not([alt]),input[type=radio]:not([alt]),input[type=checkbox]:not([alt]),textarea:not([alt])").attr("alt","Information");t.find("[style*='transition']").css("transition","");t.find("select:not([title])").attr("title","Dropdown");$("input[type='file']:not([alt])").attr("alt","File Attribute");t.find("input[type=text]:not([title]),input[type=radio]:not([title]),input[type=checkbox]:not([title]),textarea:not([title])").attr("title","Retrival")}},BeforeNavigate:function(n,t){var r,i;n!=undefined&&$(n).length>0&&(n=$(n),r=nsCommon.GetActiveDivId(n),(n.hasClass("menuItem")||r!=undefined&&r.indexOf("wfmIssueAppealMaintenance")>=0&&n[0].id=="btnNewClaimant")&&t.indexOf("wfmClaimantCorTrackingMaintenance")>=0&&(nsCommon.sessionRemove("wfmClaimantCorTrackingMaintenance_NewParam"),i=$("#wfmClaimantCorTrackingMaintenance0"),i.length>0&&(ns.tabsTreeView.remove("wfmClaimantCorTrackingMaintenance0"),ns.DestroyFormFromDOM(i[0].id,i),delete ns.viewModel.wfmClaimantCorTrackingMaintenance0)))},CustomizeWizardStep:function(n,t,i){var r=n,a=t,f=i,u=f.context.idomActiveDiv!=undefined?f.context.idomActiveDiv:$("#"+f.context.activeDivID),h,o,s;if(u!=undefined&&(u.find("a[class^='button']").each(function(){$(this).attr("tabindex","0")}),u.find(".buttonDisabled").each(function(){$(this).attr("tabindex","-1")}),u.find(".ui-datepicker-trigger").each(function(){$(this).attr("tabindex","0");$(this).attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)")})),h=function(){r.find("table").not(function(){return this.querySelector("thead")!=null}).each(function(){var n=$(this).find("tr:first").first().find("td").length,t="";n>1&&(t="colspan='"+(n-1)+"'");$(this).prepend('<thead style="display:none;"><tr><th '+t+' scope="col" >ADA Test<\/th><\/tr><\/thead>');this.getAttribute("role")==undefined&&this.setAttribute("role","table");this.getAttribute("aria-describedby")==undefined&&this.setAttribute("aria-describedby","defaultareadescribedby")});$("img[alt*='...']:not([Information]),img[title*='...']:not(Title Information)").attr({alt:"Information",title:"Title Information"});r.find("table").not(function(){return this.querySelector("caption")!=null}).prepend('<caption style="display:none;">ADA<\/caption>');r.find("[style*='transition']").css("transition","");$("[style*='transition']").css("transition","");r.find("table:not([role])").attr("role","table");r.find("table:not([aria-describedby])").attr("aria-describedby","defaultareadescribedby");r.find("svg:not([aria-describedby])").attr("aria-describedby","defaultareadescribedby");var t=n.find(".EmpAcctID_10DigitFormat");nsUserFunctions.ApplyPaddingToEmployerID(t);nsUserFunctions.FindEmployerIdLabel(n)},setTimeout(h,200),f.context.activeDivID.indexOf("wfmClaimantFileHigherAppealWizard")===0&&(u=nsUserFunctions.GetActiveDomElement(this),$("#txtBoardAppealFiledDate").val()!=undefined&&$("#txtBoardAppealFiledDate").val()!="")){var l=parseInt($("#lblLatestClaimID").text(),10),c=new Date($("#txtBoardAppealFiledDate").val()),e=new Date($("#lblLowerAppealDecisionDate").text());l>0?(o=new Date(e.setDate(e.getDate()+15)),s=new Date(nsCommon.SyncPost("GetValidBusinessDate",o,undefined,"POST")),c>s?$("#pnlReasonForUntimelinessBoard").show():$("#pnlReasonForUntimelinessBoard").hide()):(o=new Date(e.setDate(e.getDate()+30)),s=new Date(nsCommon.SyncPost("GetValidBusinessDate",o,undefined,"POST")),c>s?$("#pnlReasonForUntimelinessBoard").show():$("#pnlReasonForUntimelinessBoard").hide())}},SetLanguage:function(){var n=nsConstants.DEFAULT_LANGUAGE;return $("#hdnCultureLanguage")!=undefined&&$("#hdnCultureLanguage").length>0&&(n=$("#hdnCultureLanguage").val()),n},ExporTestcaseClick:function(n){var r=GetControlAttribute(n.target,"sfwActiveForm",n.context.activeDivID),u=$("#"+n.context.activeDivID+" #lblUsecaseKey").text(),f=n.target.defaultValue,t=ns.SiteName+"/api/Neo/ExportDataExcel?astrFormID="+r+"&aintUsecaseKey="+u,i;return t=f.indexOf("Unit")>0?t+"&astrTestcaseType=UTC":t+"&astrTestcaseType=STC",ns.activityStart(),i={},i[0]=43854,nsCommon.DispalyMessage(nsCommon.SyncPost("GetMessageText",i,undefined,"POST"),n.context.activeDivID),$.ajax({type:"POST",url:t,success:function(t){ns.sessionStartTime=(new Date).getTime();var i={};i[0]=43855;nsCommon.DispalyMessage(nsCommon.SyncPost("GetMessageText",i,undefined,"POST"),n.context.activeDivID);window.location.href=t;ns.activityComplete()},error:function(t){if(t.status===403)ns.logoutSesssion();else{var i={};i[0]=43856;nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",i,undefined,"POST"),n.context.activeDivID);ns.activityComplete()}}}),!1},BeforeShowDiv:function(n){nsUserFunctions.IsAsteriskPresent(n.context.astrDivID)?$("#divx").show():$("#divx").hide();$(".note-popover").length&&$(".note-popover").hide()},showHideControlsByActiveForm:function(n,t,i){n!=undefined&&n.length>0&&n.find(t).length>0&&(i?n.find(t).hide():n.find(t).show())},SpellCheck:function(){var n=$(".SpellCheck");return n.hasClass("HtmlEditor")?(n.spellCheckInDialog({showStatisticsScreen:!1,showThesaurus:!1}),n.focus()):n.spellCheckInDialog({showStatisticsScreen:!1,showThesaurus:!1}),!1},fnShowHideClaimPresentlyState:function(n,t){var i=t.find("#chkRegEmployedAsMilitaryCheckBox").is(":checked"),r=t.find("#rblHomeState_0").is(":checked"),u=$(this)[0].type;(i===!0||i==="true"||i==="on")&&(r===!0||r==="true"||r==="on")?(t.find("#ltrClaimPresentlyState3,#ddlClaimPresentlyState,#lblStar,#ltrMilitaryQ5Hours,#ltrMilitaryQ6Week").show(),t.find("#ltrClaimPresentlyState3MilitaryClaimant,#ltrMilitaryQ3Hours,#ltrMilitaryQ4Hours,#ltrMilitaryQ4Week,#ltrMilitaryQ5Week").hide()):(t.find("#ltrClaimPresentlyState3,#ddlClaimPresentlyState,#lblStar,#ltrClaimPresentlyState3MilitaryClaimant,#ltrMilitaryQ3Hours,#ltrMilitaryQ5Hours,#ltrMilitaryQ4Week,#ltrMilitaryQ6Week").hide(),t.find("#ltrMilitaryQ4Hours,#ltrMilitaryQ5Week").show())},fnShowEmployerDetailsInPanel:function(n){var t=$("#"+n.context.activeDivID),i,r;if(t!=null&&n.context.activeDivID.indexOf("wfmClaimEmploymentHistoryWizard")===0)if(i=document.getElementById("lblRepresentedByTPAOrNot").innerHTML,r=document.getElementById("lblEmployerTypeValue").innerHTML,t.find("#pnlEmployerDetailsToggle1").toggleClass("HideControl"),i=="false")switch(r){case"MLTR":t.find("#lblEmployer").toggleClass("HideControl");t.find("#lblEmployerVal").toggleClass("HideControl");t.find("#lblESIAddress1").toggleClass("HideControl");t.find("#lblESIEMployerAddress1").toggleClass("HideControl");t.find("#lblESIAddress2").toggleClass("HideControl");t.find("#lblESIEmployerAddress2").toggleClass("HideControl");t.find("#lblESICityStateZip").toggleClass("HideControl");t.find("#lblESIEmployerCityStateZip").toggleClass("HideControl");t.find("#lblESITelephone").toggleClass("HideControl");t.find("#lblESIEmployerTelephone").toggleClass("HideControl");t.find("#lblESIAddress3").toggleClass("HideControl");t.find("#lblESIEmployerAddress3").toggleClass("HideControl");break;case"FDRL":t.find("#lblEmployer").toggleClass("HideControl");t.find("#lblEmployerVal").toggleClass("HideControl");t.find("#lblESIAddress1").toggleClass("HideControl");t.find("#lblESIEMployerAddress1").toggleClass("HideControl");t.find("#lblESIAddress2").toggleClass("HideControl");t.find("#lblESIEmployerAddress2").toggleClass("HideControl");t.find("#lblESICityStateZip").toggleClass("HideControl");t.find("#lblESIEmployerCityStateZip").toggleClass("HideControl");t.find("#lblESITelephone").toggleClass("HideControl");t.find("#lblESIEmployerTelephone").toggleClass("HideControl");t.find("#lblDestValue").toggleClass("HideControl");t.find("#lblDestination").toggleClass("HideControl");t.find("#lblDestinationAddress").toggleClass("HideControl");t.find("#lblDestinationCity").toggleClass("HideControl");t.find("#lblESIAddress3").toggleClass("HideControl");t.find("#lblESIEmployerAddress3").toggleClass("HideControl");break;default:t.find("#lblEmployer").toggleClass("HideControl");t.find("#lblEmployerVal").toggleClass("HideControl");t.find("#lblESIAddress1").toggleClass("HideControl");t.find("#lblESIEMployerAddress1").toggleClass("HideControl");t.find("#lblESIAddress2").toggleClass("HideControl");t.find("#lblESIEmployerAddress2").toggleClass("HideControl");t.find("#lblESICityStateZip").toggleClass("HideControl");t.find("#lblESIEmployerCityStateZip").toggleClass("HideControl");t.find("#lblESITelephone").toggleClass("HideControl");t.find("#lblESIEmployerTelephone").toggleClass("HideControl")}else if(i=="true")switch(r){case"MLTR":t.find("#lblEmployer").toggleClass("HideControl");t.find("#lblEmployerVal").toggleClass("HideControl");t.find("#lblRepresentativelabel").toggleClass("HideControl");t.find("#lblESIAgentName").toggleClass("HideControl");t.find("#lblESIAddress1").toggleClass("HideControl");t.find("#lblESIEMployerAddress1").toggleClass("HideControl");t.find("#lblESIAgentAddress1").toggleClass("HideControl");t.find("#lblESIAddress2").toggleClass("HideControl");t.find("#lblESIEmployerAddress2").toggleClass("HideControl");t.find("#lblESIAgentAddress2").toggleClass("HideControl");t.find("#lblESICityStateZip").toggleClass("HideControl");t.find("#lblESIEmployerCityStateZip").toggleClass("HideControl");t.find("#lblESIAgentCityStateZip").toggleClass("HideControl");t.find("#lblESITelephone").toggleClass("HideControl");t.find("#lblESIEmployerTelephone").toggleClass("HideControl");t.find("#lblESIAgentTelephone").toggleClass("HideControl");t.find("#lblESIAddress3").toggleClass("HideControl");t.find("#lblESIEmployerAddress3").toggleClass("HideControl");break;case"FDRL":t.find("#lblEmployer").toggleClass("HideControl");t.find("#lblEmployerVal").toggleClass("HideControl");t.find("#lblRepresentativelabel").toggleClass("HideControl");t.find("#lblESIAgentName").toggleClass("HideControl");t.find("#lblESIAddress1").toggleClass("HideControl");t.find("#lblESIEMployerAddress1").toggleClass("HideControl");t.find("#lblESIAgentAddress1").toggleClass("HideControl");t.find("#lblESIAddress2").toggleClass("HideControl");t.find("#lblESIEmployerAddress2").toggleClass("HideControl");t.find("#lblESIAgentAddress2").toggleClass("HideControl");t.find("#lblESICityStateZip").toggleClass("HideControl");t.find("#lblESIEmployerCityStateZip").toggleClass("HideControl");t.find("#lblESIAgentCityStateZip").toggleClass("HideControl");t.find("#lblESITelephone").toggleClass("HideControl");t.find("#lblESIEmployerTelephone").toggleClass("HideControl");t.find("#lblESIAgentTelephone").toggleClass("HideControl");t.find("#lblDestValue").toggleClass("HideControl");t.find("#lblDestination").toggleClass("HideControl");t.find("#lblDestinationAddress").toggleClass("HideControl");t.find("#lblDestinationCity").toggleClass("HideControl");t.find("#lblESIAddress3").toggleClass("HideControl");t.find("#lblESIEmployerAddress3").toggleClass("HideControl");break;case"OTST":t.find("#lblEmployer").toggleClass("HideControl");t.find("#lblEmployerVal").toggleClass("HideControl");t.find("#lblRepresentativelabel").toggleClass("HideControl");t.find("#lblESIAddress1").toggleClass("HideControl");t.find("#lblESIAgentName").toggleClass("HideControl");t.find("#lblESIEMployerAddress1").toggleClass("HideControl");t.find("#lblESIAgentAddress1").toggleClass("HideControl");t.find("#lblESIAddress2").toggleClass("HideControl");t.find("#lblESIEmployerAddress2").toggleClass("HideControl");t.find("#lblESIAgentAddress2").toggleClass("HideControl");t.find("#lblESICityStateZip").toggleClass("HideControl");t.find("#lblESIEmployerCityStateZip").toggleClass("HideControl");t.find("#lblESIAgentCityStateZip").toggleClass("HideControl");t.find("#lblESITelephone").toggleClass("HideControl");t.find("#lblESIEmployerTelephone").toggleClass("HideControl");t.find("#lblESIAgentTelephone").toggleClass("HideControl");break;default:t.find("#lblEmployer").toggleClass("HideControl");t.find("#lblEmployerVal").toggleClass("HideControl");t.find("#lblRepresentativelabel").toggleClass("HideControl");t.find("#lblESIAgentName").toggleClass("HideControl");t.find("#lblESIAddress1").toggleClass("HideControl");t.find("#lblESIEMployerAddress1").toggleClass("HideControl");t.find("#lblESIAgentAddress1").toggleClass("HideControl");t.find("#lblESIAddress2").toggleClass("HideControl");t.find("#lblESIEmployerAddress2").toggleClass("HideControl");t.find("#lblESIAgentAddress2").toggleClass("HideControl");t.find("#lblESICityStateZip").toggleClass("HideControl");t.find("#lblESIEmployerCityStateZip").toggleClass("HideControl");t.find("#lblESIAgentCityStateZip").toggleClass("HideControl");t.find("#lblESITelephone").toggleClass("HideControl");t.find("#lblESIEmployerTelephone").toggleClass("HideControl");t.find("#lblESIAgentTelephone").toggleClass("HideControl")}return!1},fnShowEmployerOrTPA:function(n){var t=$("#"+n.context.activeDivID),i;return t!=null&&n.context.activeDivID.indexOf("wfmClaimEmploymentHistoryWizard")===0&&(i=$("#ddlPreparerType").children("option:selected").val(),$("#lblCompanyNameInReadOnlyMode").text()=="false"&&(i=="TPA"?(t.find("#txtCompanyName").removeClass("HideControl"),t.find("#ltrCompanyName").removeClass("HideControl")):i=="Employer"&&(t.find("#txtCompanyName").addClass("HideControl"),t.find("#ltrCompanyName").addClass("HideControl")))),!1},SetFlagForTabClick:function(){return!0},ClearAdditionalEmployerFederalDetails:function(n,t){var i=t.find("#ddlAdditionalEmployerType").val(),r=t.find("#ddlAdditioanlEmployerFederalFicId").val();i!=null&&i!="FDRL"?(t.find("#ddlAdditioanlEmployerFederalDestId").text(""),nsUserFunctions.ConditionalClearAdditionalEmployerFederalDetails(t)):i=="FDRL"&&r===null&&nsUserFunctions.ConditionalClearAdditionalEmployerFederalDetails(t)},ConditionalClearAdditionalEmployerFederalDetails:function(n){n.find("#lblAdditioanlEmployerFederalAdd1").text("");n.find("#lblAdditioanlEmployerFederalAdd2").text("");n.find("#lblAdditioanlEmployerFederalAdd3").text("");n.find("#lblAdditioanlEmployerFederalCity").text("");n.find("#lblAdditioanlEmployerFederalState").text("");n.find("#lblAdditioanlEmployerFederalZip").text("");n.find("#lblAdditioanlEmployerFederalCountry").text("")},AfterApplyingUI:function(n){var i,o,r,u,s,f,e,h,c,t,l;$("#CenterLeft").length<=0&&$(".footer").hasClass("footer")&&($(".footer").addClass("Externalfooter"),$(".footer").removeClass("footer"));i=n.context.activeDivID;i.indexOf("wizard")===0?$(".ProgressHighlight").children().focus():i.indexOf("wfm")===0&&setTimeout(function(){$(".GoToLinksTrigger").attr("tabIndex",0);$(".GoToLinksTrigger").focus()},100);ns.iblnVisuallyImpaired&&($(".pageinfo").attr("tabIndex",0),$(".chatIconImg").attr("tabIndex",0),$(".chatIconImg").attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)"),$("#inChat").attr("onkeydown","nsUserFunctions.ChatItemClick(event,this)"),$("#userQueue").attr("onkeydown","nsUserFunctions.ChatItemClick(event,this)"),$("#colQueue").attr("onkeydown","nsUserFunctions.ChatItemClick(event,this)"),$("#agentQueue").attr("onkeydown","nsUserFunctions.ChatItemClick(event,this)"),$("img[alt*='...']:not([Information]),img[title*='...']:not(Title Information)").attr({alt:"Information",title:"Title Information"}),t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),n.context.activeDivID.indexOf("wfmMSSHomeMaintenance")>-1&&t.find(".three-column").length>0&&t.find(".three-column").addClass("ADAClaimantHomePage"),o=t.find(".literal"),o.attr("tabindex","0"),t.find("label[aria-label]").attr("role","text"),r=t.find("span[data-sfwcontroltype='sfwLiteral']"),r.attr("role","text"),r.attr("tabindex","0"),u=t.find(".EnableADADataSupport"),s=u.find("label"),s.each(function(){var t=$($(this).find("input[type='checkbox'],input[type='radio']")).length,n;t==0&&(n=$(this),n.text()==""||n.text()==" "||(n.attr("role","text"),n.attr("tabindex","0")))}),f=u.find("input[type='button']"),f.attr("role","text"),f.attr("tabindex","0"),e=t.find(".PanelReaderForADA"),setTimeout(function(){var n=e.find("label");n.each(function(){var t=$($(this).find("input[type='checkbox'],input[type='radio']")).length,n;t==0&&(n=$(this),n.text()==""||n.text()==" "||(n.attr("role","text"),n.attr("tabindex","0")))})},100),setTimeout(function(){var n=e.find(".ReqInformation");n.attr("role","");n.attr("tabindex","")},100),h=t.find(".s-divControlTabSheet"),h.each(function(){var n=$(this);n.attr("aria-hidden","false")}),c=t.find(".ReqInformation"),c.each(function(){var n=$(this),t,i;n.parent()!=undefined&&n.parent().prev()[0]!=undefined&&n.parent().prev()[0].firstElementChild!=undefined&&(t=n.parent().prev()[0].firstElementChild.innerText);n.prev()!=undefined&&n.prev()[0]!=undefined&&(t=n.prev()[0].innerText);n.parent()!=undefined&&n.parent().next()[0]!=undefined&&n.parent().next()[0].firstElementChild!=undefined&&(i=n.parent().next()[0].firstElementChild,n.parent().next()[0].nodeName=="TD"&&(i.setAttribute("aria-required","true"),n.parent().next().find("input[type='radio']").attr("aria-required","true")),t!=undefined&&(i.setAttribute("title",t),n.parent().next().find("input[type='radio']").attr("title",t)));n.next()!=undefined&&n.next()[0]!=undefined&&(i=n.next()[0],i.setAttribute("aria-required","true"),n.next().find("input[type='radio']").attr("aria-required","true"),t!=undefined&&(i.setAttribute("title",t),n.next().find("input[type='radio']").attr("title",t)))}));$("a#logo").attr("title","Maryland Department of Labor, Licensing and Regulation");t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);n.context.activeDivID.indexOf("wfmMSSHomeMaintenance")>-1&&t.find(".three-column").length>0&&t.find(".three-column").addClass("ADAClaimantHomePage");n.context.activeDivID.indexOf("wfmClaimantRegistrationWizard")===0||n.context.activeDivID.indexOf("wfmPUAClaimantRegistrationWizard")===0;$(document).on("change","#ddlStatePnlChildSupport",function(){nsUserFunctions.ddlStatePnlChildSupportChange()});$(document).on("change","div[id^='wfmClaimEmploymentHistoryWizard'] #ddlAdditionalEmployerType",function(){var t=nsUserFunctions.GetActiveDomElement(this);nsUserFunctions.ClearAdditionalEmployerFederalDetails(n,t)});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #ddlAdditionalEmployerType",function(){var t=nsUserFunctions.GetActiveDomElement(this);nsUserFunctions.ClearAdditionalEmployerFederalDetails(n,t)});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #ddlAdditionalEmployerType",function(){var t=nsUserFunctions.GetActiveDomElement(this);nsUserFunctions.ClearAdditionalEmployerFederalDetails(n,t)});$(document).on("change","div[id^='wfmClaimReopenWizard'] #ddlAdditionalEmployerType",function(){var t=nsUserFunctions.GetActiveDomElement(this);nsUserFunctions.ClearAdditionalEmployerFederalDetails(n,t)});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #ddlAdditionalEmployerType",function(){var t=nsUserFunctions.GetActiveDomElement(this);nsUserFunctions.ClearAdditionalEmployerFederalDetails(n,t)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlAdditionalEmployerType, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlAdditionalEmployerType",function(){var t=nsUserFunctions.GetActiveDomElement(this);nsUserFunctions.ClearAdditionalEmployerFederalDetails(n,t)});$(document).ready(function(){if($("div[data-sfwcontroltype='sfwCaptcha']").length>0){$("div[data-sfwcontroltype='sfwCaptcha']").addClass("WizardCaptcha");$($("div[data-sfwcontroltype='sfwCaptcha']").children()[0]).prop("tabindex","0");$($("div[data-sfwcontroltype='sfwCaptcha']").children()[0]).prop("title","captcha");$($("div[data-sfwcontroltype='sfwCaptcha']").children()[0]).prop("alt","captcha");$($("div[data-sfwcontroltype='sfwCaptcha']").children()[1]).prop("title","captcha refresh button");$($("div[data-sfwcontroltype='sfwCaptcha']").children()[1]).prop("alt","captcha refresh button");$($("div[data-sfwcontroltype='sfwCaptcha']").children()[2]).prop("title","captcha audio button");$($("div[data-sfwcontroltype='sfwCaptcha']").children()[2]).prop("alt","captcha audio button");var t=window.navigator.userAgent,i=t.indexOf("MSIE ");(i>0||!!navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".AudioCaptcha").hide()}ns.iblnVisuallyImpaired&&($(".cptCaptcha_image").attr("alt","Captcha"),$(".cptCaptcha_image").attr("title","Captcha"),$(".CaptchaRefresh").attr("alt","Captcha Refresh Button"),$(".CaptchaRefresh").attr("title","Captcha Refresh Button"),$(".AudioCaptcha").attr("alt","Captcha Audio Button"),$(".AudioCaptcha").attr("title","Captcha Audio Button"));$(".menuItem").each(function(){var n=$(this);n.attr("tabindex","0");n.attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)");n[0].innerHTML="<h3><a>"+n[0].innerText+"<\/a><\/h3>"});$("#navTreeTriger").attr("tabindex","0");$("#navTreeTriger").attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)");nsUserFunctions.FindEmployerIdLabel($(this));n.context.activeDivID.indexOf("wfmClaimantMaintenance")==0&&nsUserFunctions.NavigateToClaimantAddressTab(n);n.context.activeDivID.indexOf("wfmUpdateUserLoginCredentialsMaintenance")==0&&($("#ddlFirstSecurityQuestion option[value='"+$("#ddlSecondSecurityQuestion").val()+"']").remove(),$("#ddlFirstSecurityQuestion option[value='"+$("#ddlThirdSecurityQuestion").val()+"']").remove(),localStorage.setItem("ddlFirstSecurityQuestion",$("#ddlFirstSecurityQuestion").val()),$("#ddlSecondSecurityQuestion option[value='"+$("#ddlFirstSecurityQuestion").val()+"']").remove(),$("#ddlSecondSecurityQuestion option[value='"+$("#ddlThirdSecurityQuestion").val()+"']").remove(),localStorage.setItem("ddlSecondSecurityQuestion",$("#ddlSecondSecurityQuestion").val()),$("#ddlThirdSecurityQuestion option[value='"+$("#ddlFirstSecurityQuestion").val()+"']").remove(),$("#ddlThirdSecurityQuestion option[value='"+$("#ddlSecondSecurityQuestion").val()+"']").remove(),localStorage.setItem("ddlThirdSecurityQuestion",$("#ddlThirdSecurityQuestion").val()));(n.context.activeDivID.indexOf("wfmForgotUsernameWizard")==0||n.context.activeDivID.indexOf("wfmResetPasswordWizard")==0)&&$(".buttonPrevious").removeClass("buttonDisabled")});$(document).on("change","div[id^='wfmClaimantFileAppealWizard'] #txtAppealFileDate",function(){var t=new Date($("#lblCurrentDate").text()),n=new Date($("#txtAppealFileDate").val()),i=new Date($("#lblApFiDateChange").text());t!=n&&(n>i?($("#pnlReasonForUntimeliness").show(),$("#txtLateAppealChange").val(!0)):($("#pnlReasonForUntimeliness").hide(),$("#txtLateAppealChange").val(!1)),$("#txtLateAppealChange").val()!=null&&$("#txtLateAppealChange").val()!=undefined&&$("#txtLateAppealChange").val()!=""&&$("#txtLateAppealChange").trigger("change"))});$(document).on("change","div[id^='wfmClaimantFileHigherAppealWizard'] #txtBoardAppealFiledDate",function(){var t=new Date($("#lblCurrentDateBoard").text()),n=new Date($("#txtBoardAppealFiledDate").val()),i=new Date($("#lblApFiDateChangeBoard").text());t!=n&&(n>i?($("#pnlReasonForUntimelinessBoard").show(),$("#txtLateAppealChangeBoard").val(!0)):($("#pnlReasonForUntimelinessBoard").hide(),$("#txtLateAppealChangeBoard").val(!1)),$("#txtLateAppealChangeBoard")!==null&&$("#txtLateAppealChangeBoard")!=undefined&&$("#txtLateAppealChangeBoard").trigger("change"))});n.context.activeDivID.indexOf("Lookup")>0&&t!=undefined&&t.find(".ui-datepicker-trigger").each(function(){$(this).attr("tabindex","0");$(this).attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)")});n.context.activeDivID.indexOf("wfmClaimantCorTrackingLookup")>-1&&(l=ns.viewModel.previousForm,l=="wfmIssueAppealMaintenance"&&$("#btnSearch")!==null&&$("#btnSearch")!=undefined&&$("#btnSearch").trigger("click"));$(document).on("change","#ddlHearingActionLD",function(){var n=document.getElementById("ddlHearingActionLD").value;if(n!=null&&n!=""){switch(n){case"CNHR":n="Continue Hearing";break;case"RSCD":n="Reschedule Hearing";break;case"RQPO":n="Request for Postponement"}t.find("#pnlRequestPostponement").removeClass("HideControl");n=="Continue Hearing"||n=="Reschedule Hearing"?t.find("#pnlUploadHearingDoc").addClass("HideControl"):n=="Request for Postponement"&&t.find("#pnlUploadHearingDoc").removeClass("HideControl");t.find("#pnlRequestPostponement").find(".s-spnControlPanelbar").text(n)}else t.find("#pnlRequestPostponement").addClass("HideControl");return!0})},CustomizeWizardStep:function(n,t,i){var f=$("#"+i.context.activeDivID),c,l,a,o,s,h,e,v,t,r,u;if(ns.iblnVisuallyImpaired&&(c=n.find(".StepTitle"),c.focus(),l=n.find(".buttonPrevious"),l.attr("tabindex","0"),n.find("label[aria-label]").attr("role","text"),a=n.find("span[data-sfwcontroltype='sfwLiteral']"),setTimeout(function(){a.each(function(){var n=$(this);n.text()==""||n.text()==" "||(n.attr("role","text"),n.attr("tabindex","0"))})},100),o=n.find(".EnableADADataSupport"),setTimeout(function(){var n=o.find("label");n.each(function(){var t=$($(this).find("input[type='checkbox'],input[type='radio']")).length,n;t==0&&(n=$(this),n.text()==""||n.text()==" "||(n.attr("role","text"),n.attr("tabindex","0")))})},100),s=o.find("input[type='button']"),s.attr("role","text"),s.attr("tabindex","0"),setTimeout(function(){var n=o.find(".ReqInformation");n.attr("role","");n.attr("tabindex","")},100),h=n.find(".PanelReaderForADA"),setTimeout(function(){var n=h.find("label");n.each(function(){var t=$($(this).find("input[type='checkbox'],input[type='radio']")).length,n;t==0&&(n=$(this),n.text()==""||n.text()==" "||(n.attr("role","text"),n.attr("tabindex","0")))})},100),setTimeout(function(){var n=h.find(".ReqInformation");n.attr("role","");n.attr("tabindex","")},100),setTimeout(function(){var t=n.find(".s-divControlPanelContainer");t.each(function(){var n=$(this);n.attr("aria-hidden","false")})},100),setTimeout(function(){var t=n.find(".s-divControlTabSheet");t.each(function(){var n=$(this);n.attr("aria-hidden","false")})},100),(i.context.activeDivID.indexOf("wfmForgotUsernameWizard")===0||i.context.activeDivID.indexOf("wfmResetPasswordWizard")===0)&&(setTimeout(function(){var n=$(".LogoFocusForADA");n.focus();$(".buttonPrevious").attr("tabindex",0)},100),ns.iblnVisuallyImpaired&&setTimeout(function(){$("#lbSeconStepEmailCaption").attr("tabindex",0)},100))),window.QueueIt!=null&&window.QueueIt.validateUser!=null&&typeof window.QueueIt.validateUser=="function"&&window.QueueIt.validateUser(!0),e=i,f!=undefined&&(f.find("a[class^='button']").each(function(){$(this).attr("tabindex","0")}),f.find(".buttonDisabled").each(function(){$(this).attr("tabindex","-1")}),setTimeout(function(){f.find(".ui-datepicker-trigger").each(function(){$(this).attr("tabindex","0");$(this).attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)")})},100),setTimeout(function(){f.find(".note-editing-area").each(function(){$(this).attr("tabindex","0")})},100)),n.find("table").not(function(){return this.querySelector("thead")!=null}).prepend('<thead style="display:none;"><tr><\/tr><\/thead>'),n.find("table").not(function(){return this.querySelector("caption")!=null}).prepend('<caption style="display:none;">Test<\/caption>'),n.find("[style*='transition']").css("transition",""),$("[style*='transition']").css("transition",""),i.context.activeDivID.indexOf("wfmPUAClaimantRegistrationWizard")===0&&(v=function(){nsUserFunctions.ShowHideSelfEmpPanel(i,n)},setTimeout(v,0)),i.context.activeDivID.indexOf("wfmClaimantRegistrationWizard")===0||i.context.activeDivID.indexOf("wfmPUAClaimantRegistrationWizard")===0){if(f.find("#qnpQuestionnairePanel").find(".s-spnControlPanelbar").text("Fact Finding Details"),t=$("#wizMain").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsEligibilityInfo"?(ShowHideReasonDropdownControl(f),$("#lblLabel60").text("FSS")):r!==undefined&&r!==null&&r=="wzsDetailedEmpInfo"?$("#lblLabel61").text("abc"):r!==undefined&&r!==null&&r=="wzsStepQuestionnaire"?($("#lblLabel60").text()=="FSS"||$("#lblLabel61").text()=="abc")&&($("#rblRadioButtonList5").css("display","block"),$("#ltrLiteral78").css("display","block"),$("#ltrLiteral80").css("display","block"),$("#rblRadioButtonList6").css("display","block"),$("#ltrLiteral79").css("display","block"),$("#ltrLiteral81").css("display","block"),$("#lblLabel60").text(""),$("#lblLabel61").text("")):r!==undefined&&r!==null&&r=="wzsStepProvideAdditionalInformation"?RemoveValueFromControl(f):r!==undefined&&r!==null&&r=="wzsStepEmpInfo"?ns.Language=="es-US"&&(f.find("#ltrQuestionMarkY").text("?»"),f.find("#ltrQuestionMN").text("?»")):r!==undefined&&r!==null&&r=="wzsStepReviewAndSubmit"&&ns.Language=="es-US"&&f.find("#ltrLiteralQuestionMark").text("?"),r!==undefined&&r!==null&&r=="wzsStepEmpInfo"))if(f.find("#txtPopUpForName").val()!=""&&f.find("#txtPopUpForName").val()=="true"&&iblnCheckvalue==!1){var y=$('<div><span>Wages have been reported under this SSN with a different name. Please review in Wage Lookup.<\/span><br><div><button class="button" id="YesBtn" onclick="javascript:$(\'#Ok\').trigger(\'click\');nsUserFunctions.ClosePopup(this);">OK<\/button><\/div><\/div>'),p=MVVM.Controls.Dialog.CreateInstance(y,i.context.activeDivID,{title:"",close:function(){this.destroy()},deactivate:"empty",width:450});setTimeout(p.open(),300);iblnCheckvalue=!0}else f.find("#txtPopUpForName").val()!=""&&f.find("#txtPopUpForName").val()=="false"&&(iblnCheckvalue=!1);u=function(){nsUserFunctions.fnShowHideClaimPresentlyState(e,n);nsUserFunctions.HideShowCountyOnInitialQuestion(e,n);nsUserFunctions.EmployeredInStateCheckBoxAndDoNotHaveResidentialAddres(e,n);nsUserFunctions.HideShowMailingDetailsOnGeneralInformation(e,n);nsUserFunctions.HideShowCorrPreferenceOnGeneralInformation(e,n);nsUserFunctions.ShowHideTelephoneNumberOnGeneralInformation(e,n);nsUserFunctions.ClearMilitaryText(e,n);nsUserFunctions.fnBackDate(e,n);nsUserFunctions.ShowHideCountyStar(e,n);nsUserFunctions.ShowHideThreeFourNumber(i,f);nsUserFunctions.ShowDependentWarningMsg(i,n)};setTimeout(u,0)}else i.context.activeDivID.indexOf("wfmDUAClaimApplicationWizard")===0||i.context.activeDivID.indexOf("wfmPUAClaimApplicationWizard")===0?(u=function(){nsUserFunctions.DoNotHavePhNoforDUA(i,n);nsUserFunctions.DUAClaimReviewAndEdit(i,n);nsUserFunctions.fnBackDate(e,n);nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0),r!==undefined&&r!==null&&r=="wzsDUAAnualIncomTax"&&ns.Language=="es-US"&&f.find("#ltrDo").css("display","none")):i.context.activeDivID.indexOf("wfmApplyTRABenefitsWizard")===0?(u=function(){nsUserFunctions.fnDoNotHavePhNoforTRA(e,n);nsUserFunctions.fnBackDate(e,n);nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0)):i.context.activeDivID.indexOf("wfmApplyRTAABenefitsWizard")===0?(setTimeout(function(){f.find("#chkDontHavePhNoRTAA").is(":visible")&&nsUserFunctions.DoNotHavePhNoforRTAABenefit(f.find("#chkDontHavePhNoRTAA")[0]);nsUserFunctions.fnBackDate(e,n);nsUserFunctions.fnEmployerAddress(e,n)},500),u=function(){nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0)):i.context.activeDivID.indexOf("wfmClaimExtensionWizard")===0?(t=$("#wizMain").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsEligibilityInfo"?(ShowHideReasonDropdownControl(f),$("#lblLabel44").text("FSS")):r!==undefined&&r!==null&&r=="wzsDetailedEmpInformation"?$("#lblLabel49").text("abc"):r!==undefined&&r!==null&&r=="wzsStepQuestionnaire"&&($("#lblLabel44").text()=="FSS"||$("#lblLabel49").text()=="abc")&&($("#rblDonotwanttoprovidestmtExt").css("display","block"),$("#ltrDonotwanttoprovidestmtExt").css("display","block"),$("#rblCompletestsmtLaterExt").css("display","block"),$("#ltrIwanttocompstmtlatterExt").css("display","block"),$("#ltrLiteral1").css("display","block"),$("#ltrLiteral8").css("display","block"),$("#lblLabel44").text(""),$("#lblLabel49").text("")),u=function(){nsUserFunctions.DoNotHavePhNoforClaimExtension(i,n);nsUserFunctions.fnBackDate(e,n);nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0))):i.context.activeDivID.indexOf("wfmPUAClaimExtensionWizard")===0?(t=$("#wizMain").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsEligibilityInfo"?(ShowHideReasonDropdownControl(f),$("#lblLabel44").text("FSS")):r!==undefined&&r!==null&&r=="wzsDetailedEmpInformation"?$("#lblLabel49").text("abc"):r!==undefined&&r!==null&&r=="wzsStepQuestionnaire"&&($("#lblLabel44").text()=="FSS"||$("#lblLabel49").text()=="abc")&&($("#rblDonotwanttoprovidestmtExt").css("display","block"),$("#ltrDonotwanttoprovidestmtExt").css("display","block"),$("#rblCompletestsmtLaterExt").css("display","block"),$("#ltrIwanttocompstmtlatterExt").css("display","block"),$("#ltrLiteral1").css("display","block"),$("#ltrLiteral8").css("display","block"),$("#lblLabel44").text(""),$("#lblLabel49").text("")),u=function(){nsUserFunctions.DoNotHavePhNoforClaimExtension(i,n);nsUserFunctions.fnBackDate(e,n);nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0))):i.context.activeDivID.indexOf("wfmClaimReopenWizard")===0?(t=$("#wizMain1").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsEligibilityInfo"?(ShowHideReasonDropdownControl(f),$("#lblLabel18").text("FSS")):r!==undefined&&r!==null&&r=="wzsDetailedEmpInfo"?$("#lblLabel21").text("abc"):r!==undefined&&r!==null&&r=="wzsDetailEmpInfoForNewEmp"?$("#lblLabel22").text("emp"):r!==undefined&&r!==null&&r=="wzsStepQuestionnaire"&&($("#lblLabel18").text()=="FSS"||$("#lblLabel21").text()=="abc"||$("#lblLabel22").text()=="emp")&&($("#rblDonotwanttoprovidestmtReopen").css("display","block"),$("#ltrDonotwanttoprovidestmtReopen").css("display","block"),$("#rblCompletestsmtLaterReopen").css("display","block"),$("#ltrIwanttocompstmtlatterReopen").css("display","block"),$("#ltrLiteral5").css("display","block"),$("#ltrLiteral9").css("display","block"),$("#lblLabel18").text(""),$("#lblLabel21").text(""),$("#lblLabel22").text(""))),u=function(){nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0)):i.context.activeDivID.indexOf("wfmReopenPUAClaimWizard")===0?(t=$("#wizMain1").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsEligibilityInfo"?(ShowHideReasonDropdownControl(f),$("#lblLabel18").text("FSS")):r!==undefined&&r!==null&&r=="wzsDetailedEmpInfo"?$("#lblLabel21").text("abc"):r!==undefined&&r!==null&&r=="wzsDetailEmpInfoForNewEmp"?$("#lblLabel22").text("emp"):r!==undefined&&r!==null&&r=="wzsStepQuestionnaire"&&($("#lblLabel18").text()=="FSS"||$("#lblLabel21").text()=="abc"||$("#lblLabel22").text()=="emp")&&($("#rblDonotwanttoprovidestmtReopen").css("display","block"),$("#ltrDonotwanttoprovidestmtReopen").css("display","block"),$("#rblCompletestsmtLaterReopen").css("display","block"),$("#ltrIwanttocompstmtlatterReopen").css("display","block"),$("#ltrLiteral5").css("display","block"),$("#ltrLiteral9").css("display","block"),$("#lblLabel18").text(""),$("#lblLabel21").text(""),$("#lblLabel22").text(""))),u=function(){nsUserFunctions.DoNotHavePhNoforClaimReopen(i,n);nsUserFunctions.ClearMilitaryText(i,n);nsUserFunctions.fnHideShowEmailAddressReopen(i,n);nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0)):i.context.activeDivID.indexOf("wfmContinueClaimWizard")===0?(t=$("#wizMain").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsInitialQues"&&$("#lblLabel94").text("abc"),r!==undefined&&r!==null&&r=="wzsAvailability"?$("#lblLabel95").text("FSS"):r!==undefined&&r!==null&&r=="wzsQuestionaire"&&($("#lblLabel94").text()=="abc"||$("#lblLabel95").text()=="FSS")&&($("#rblDonotwanttoprovidestmtWC").css("display","block"),$("#ltrDonotwanttoprovidestmtWC").css("display","block"),$("#rblCompletestsmtLaterWC").css("display","block"),$("#ltrCompletestsmtLaterWC").css("display","block"),$("#ltrLiteral33").css("display","block"),$("#ltrLiteral34").css("display","block"),$("#lblLabel94").text(""),$("#lblLabel95").text(""))),u=function(){nsUserFunctions.DoNotHavePhNoforClaimReopen(i,n);nsUserFunctions.ClearMilitaryText(i,n);nsUserFunctions.fnHideShowEmailAddressReopen(i,n);nsUserFunctions.fnHideShowMailingAddress(i,n)},setTimeout(u,0)):i.context.activeDivID.indexOf("wfmClaimEmploymentHistoryWizard")===0?(u=function(){var t,r;nsUserFunctions.ClearMilitaryText(i,n);t=$("#wizMain").data("smartWizard");t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsStepAddEmployment"&&RemoveValueFromControl(f))},setTimeout(u,0)):i.context.activeDivID.indexOf("wfmClaimantPaymentPlanRequestWizard")===0?(u=function(){nsUserFunctions.fnPaymentFrequency(i,n);nsUserFunctions.fnDownPaymentAmount(i,n)},setTimeout(u,0)):i.context.activeDivID.indexOf("wfmClaimantFileAppealWizard")===0?(t=$("#wizMain").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsReasonForAppeal"&&(u=function(){nsUserFunctions.fnHideLateAppeal(i,n)},setTimeout(u,0)))):i.context.activeDivID.indexOf("wfmClaimantFileHigherAppealWizard")===0&&(t=$("#wizMain").data("smartWizard"),t!=null&&(r=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id,r!==undefined&&r!==null&&r=="wzsReasonForAppeal"&&(u=function(){nsUserFunctions.fnHideHigherLateAppeal(i,n)},setTimeout(u,0))))},OpenAddressPopup:function(n){nsCommon.OpenAddressPopup(n)},GetActiveDomElement:function(n){var t=nsCommon.jQClosest(n,function(n){return n.tagName==="DIV"&&n.id!=undefined&&n.id.indexOf("wfm")===0});return t!=null?$(t):$()},NavigateToClaimantAddressTab:function(n){if(n.context.activeDivID.indexOf("wfmClaimantMaintenance")==0&&sessionStorage!=null&&sessionStorage.isCallfromMessageScreen!=undefined&&sessionStorage.isCallfromMessageScreen!=null){var t=JSON.parse(sessionStorage.getItem("isCallfromMessageScreen"));t!=null&&t!=undefined&&t!=""&&t.isCallfromMessageScreen!=null&&t.isCallfromMessageScreen!=""&&t.isCallfromMessageScreen=="true"&&$("#tshAddressSummary_Header")!==null&&$("#tshAddressSummary_Header")!=undefined&&($("#tshAddressSummary_Header").trigger("click"),sessionStorage.removeItem("isCallfromMessageScreen"))}},NavigateToParentWithSkippingDirtyData:function(n){$.isEmptyObject(ns.DirtyData)||ns.DirtyData[ns.viewModel.currentModel]!=undefined&&delete ns.DirtyData[ns.viewModel.currentModel];nsUserFunctions.NavigateToParentAndReload(n)},InitilizeUserDefinedEvents:function(){$(document).on("blur","#filesList",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#filesList",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#CommonPaymasterFile",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#CommonPaymasterFile",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#files",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#files",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#file",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#file",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#fluFileUpload_UserControlUdc3",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#fluFileUpload_UserControlUdc3",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#ActionItemFiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#ActionItemFiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#fluFileUpload",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#fluFileUpload",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#WarrantDocumentOut",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#WarrantDocumentOut",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#FileUpload",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#FileUpload",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#SDDSInvestigationFile",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#SDDSInvestigationFile",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#WarrantDocumentIn",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#WarrantDocumentIn",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#fluFileUploadChangLegEnt",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#fluFileUploadChangLegEnt",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#Successionfiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#Successionfiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#ReimbursableCollateralFiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#ReimbursableCollateralFiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#PotentialIssueFile",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#PotentialIssueFile",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#OOSODoc",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#OOSODoc",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#SupportingDocumentFiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#SupportingDocumentFiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#CivilActionLienFile",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#CivilActionLienFile",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#fluTranslationText",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#fluTranslationText",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#fluSupportingDocuments",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#fluSupportingDocuments",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#MassEmploymentFiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#MassEmploymentFiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#fluFileUploadSale",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#fluFileUploadSale",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#DependentFile",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#DependentFile",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#files1",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#files1",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#LaborDisputeFiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#LaborDisputeFiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#fluFileUploadPurchase",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#fluFileUploadPurchase",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#STCfiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#STCfiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#FileUpload",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#FileUpload",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("blur","#Appealfiles",function(){$(".s-file-button").removeClass("File-border-focus")});$(document).on("focus","#Appealfiles",function(){$(".s-file-button").addClass("File-border-focus")});$(document).on("click","#GridTable_grvOccupationResult .s-grid-check-row",function(){$("#chkWorkinformation").prop("checked",!0);$("#chkWorkinformation").trigger("change")});$(document).on("change","div[id^='wfmClaimantRegistrationWizard']  #rblRadioButtonList5",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblRadioButtonList5").find("input[type='radio']:checked").val()=="Y"?($("#rblRadioButtonList6").hide(),$("#ltrLiteral79").hide(),$("#ltrLiteral80").hide()):($("#rblRadioButtonList6").show(),$("#ltrLiteral79").show(),$("#ltrLiteral80").show());$("#btnExecuteRefreshFromObject")!==null&&$("#btnExecuteRefreshFromObject")!=undefined&&$("#btnExecuteRefreshFromObject").trigger("click")});$(document).on("click",".note-link-btn",function(){setTimeout(function(){$(".note-editable a").each(function(){$(this).attr("contentEditable","false")})},300)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard']  #rblRadioButtonList6, div[id^='wfmPUAClaimantRegistrationWizard']  #rblRadioButtonList6",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblRadioButtonList6").find("input[type='radio']:checked").val()=="Y"?($("#rblRadioButtonList5").hide(),$("#ltrLiteral78").hide(),$("#ltrLiteral81").hide()):($("#rblRadioButtonList5").show(),$("#ltrLiteral78").show(),$("#ltrLiteral81").show());$("#btnExecuteRefreshFromObject")!==null&&$("#btnExecuteRefreshFromObject")!=undefined&&$("#btnExecuteRefreshFromObject").trigger("click")});$(document).on("change","div[id^='wfmContinueClaimWizard']  #rblDonotwanttoprovidestmtWC",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblDonotwanttoprovidestmtWC").find("input[type='radio']:checked").val()=="Y"?($("#rblCompletestsmtLaterWC").hide(),$("#ltrCompletestsmtLaterWC").hide(),$("#ltrLiteral33").hide()):($("#rblCompletestsmtLaterWC").show(),$("#ltrCompletestsmtLaterWC").show(),$("#ltrLiteral33").show());$("#btnExecuteRefreshFromObjectWC")!==null&&$("#btnExecuteRefreshFromObjectWC")!=undefined&&$("#btnExecuteRefreshFromObjectWC").trigger("click")});$(document).on("change","div[id^='wfmContinueClaimWizard']  #rblCompletestsmtLaterWC",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblCompletestsmtLaterWC").find("input[type='radio']:checked").val()=="Y"?($("#rblDonotwanttoprovidestmtWC").hide(),$("#ltrDonotwanttoprovidestmtWC").hide(),$("#ltrLiteral34").hide()):($("#rblDonotwanttoprovidestmtWC").show(),$("#ltrDonotwanttoprovidestmtWC").show(),$("#ltrLiteral34").show());$("#btnExecuteRefreshFromObjectWC")!==null&&$("#btnExecuteRefreshFromObjectWC")!=undefined&&$("#btnExecuteRefreshFromObjectWC").trigger("click")});$(document).on("change","div[id^='wfmEmployerFileAppealWizard'] #rblRadioButtonList1, div[id^='wfmClaimantFileAppealWizard'] #rblRadioButtonList20004 ",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblRadioButtonList20004 ").find("input[type='radio']:checked").val()!=null&&$("#rblRadioButtonList20004 ").find("input[type='radio']:checked").val()=="Y"&&$("#lblClaimantFileAppeal").text()=="true"?n.find("#capLabel6").removeClass("HideControl"):n.find("#capLabel6").addClass("HideControl");$("#rblRadioButtonList1 ").find("input[type='radio']:checked").val()!=null&&$("#rblRadioButtonList1 ").find("input[type='radio']:checked").val()=="Y"&&$("#lblEmployerAppeal").text()=="true"?n.find("#capLabel1").removeClass("HideControl"):n.find("#capLabel1").addClass("HideControl")});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard']  #rblDonotwanttoprovidestmtRTAA",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblDonotwanttoprovidestmtRTAA").find("input[type='radio']:checked").val()=="Y"?($("#rblCompletestsmtLaterRTAA").hide(),$("#ltrIwanttocompstmtlatterRTAA").hide(),$("#ltrLiteral21").hide()):($("#rblCompletestsmtLaterRTAA").show(),$("#ltrIwanttocompstmtlatterRTAA").show(),$("#ltrLiteral21").show());$("#btnExecuteRefreshFromObjectRTAA")!==null&&$("#btnExecuteRefreshFromObjectRTAA")!=undefined&&$("#btnExecuteRefreshFromObjectRTAA").trigger("click")});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard']  #rblCompletestsmtLaterRTAA",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblCompletestsmtLaterRTAA").find("input[type='radio']:checked").val()=="Y"?($("#rblDonotwanttoprovidestmtRTAA").hide(),$("#ltrDonotwanttoprovidestmtRTAA").hide(),$("#ltrLiteral22").hide()):($("#rblDonotwanttoprovidestmtRTAA").show(),$("#ltrDonotwanttoprovidestmtRTAA").show(),$("#ltrLiteral22").show());$("#btnExecuteRefreshFromObjectRTAA")!==null&&$("#btnExecuteRefreshFromObjectRTAA")!=undefined&&$("#btnExecuteRefreshFromObjectRTAA").trigger("click")});$(document).on("change","div[id^='wfmClaimReopenWizard']  #rblDonotwanttoprovidestmtReopen",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblDonotwanttoprovidestmtReopen").find("input[type='radio']:checked").val()=="Y"?($("#rblCompletestsmtLaterReopen").hide(),$("#ltrIwanttocompstmtlatterReopen").hide(),$("#ltrLiteral5").hide()):($("#rblCompletestsmtLaterReopen").show(),$("#ltrIwanttocompstmtlatterReopen").show(),$("#ltrLiteral5").show());$("#btnExecuteRefreshFromObjectReopen")!==null&&$("#btnExecuteRefreshFromObjectReopen")!=undefined&&$("#btnExecuteRefreshFromObjectReopen").trigger("click")});$(document).on("change","div[id^='wfmClaimReopenWizard']  #rblCompletestsmtLaterReopen",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblCompletestsmtLaterReopen").find("input[type='radio']:checked").val()=="Y"?($("#rblDonotwanttoprovidestmtReopen").hide(),$("#ltrDonotwanttoprovidestmtReopen").hide(),$("#ltrLiteral9").hide()):($("#rblDonotwanttoprovidestmtReopen").show(),$("#ltrDonotwanttoprovidestmtReopen").show(),$("#ltrLiteral9").show());$("#btnExecuteRefreshFromObjectReopen")!==null&&$("#btnExecuteRefreshFromObjectReopen")!=undefined&&$("#btnExecuteRefreshFromObjectReopen").trigger("click")});$(document).on("change","div[id^='wfmReopenPUAClaimWizard']  #rblDonotwanttoprovidestmtReopen",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblDonotwanttoprovidestmtReopen").find("input[type='radio']:checked").val()=="Y"?($("#rblCompletestsmtLaterReopen").hide(),$("#ltrIwanttocompstmtlatterReopen").hide(),$("#ltrLiteral5").hide()):($("#rblCompletestsmtLaterReopen").show(),$("#ltrIwanttocompstmtlatterReopen").show(),$("#ltrLiteral5").show());$("#btnExecuteRefreshFromObjectReopen")!==null&&$("#btnExecuteRefreshFromObjectReopen")!=undefined&&$("#btnExecuteRefreshFromObjectReopen").trigger("click")});$(document).on("change","div[id^='wfmReopenPUAClaimWizard']  #rblCompletestsmtLaterReopen",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblCompletestsmtLaterReopen").find("input[type='radio']:checked").val()=="Y"?($("#rblDonotwanttoprovidestmtReopen").hide(),$("#ltrDonotwanttoprovidestmtReopen").hide(),$("#ltrLiteral9").hide()):($("#rblDonotwanttoprovidestmtReopen").show(),$("#ltrDonotwanttoprovidestmtReopen").show(),$("#ltrLiteral9").show());$("#btnExecuteRefreshFromObjectReopen")!==null&&$("#btnExecuteRefreshFromObjectReopen")!=undefined&&$("#btnExecuteRefreshFromObjectReopen").trigger("click")});$(document).on("change","div[id^='wfmClaimExtensionWizard']  #rblDonotwanttoprovidestmtExt",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblDonotwanttoprovidestmtExt").find("input[type='radio']:checked").val()=="Y"?($("#rblCompletestsmtLaterExt").hide(),$("#ltrIwanttocompstmtlatterExt").hide(),$("#ltrLiteral1").hide()):($("#rblCompletestsmtLaterExt").show(),$("#ltrIwanttocompstmtlatterExt").show(),$("#ltrLiteral1").show());$("#btnExecuteRefreshFromObjectExt")!==null&&$("#btnExecuteRefreshFromObjectExt")!=undefined&&$("#btnExecuteRefreshFromObjectExt").trigger("click")});$(document).on("change","div[id^='wfmClaimExtensionWizard']  #rblCompletestsmtLaterExt",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblCompletestsmtLaterExt").find("input[type='radio']:checked").val()=="Y"?($("#rblDonotwanttoprovidestmtExt").hide(),$("#ltrDonotwanttoprovidestmtExt").hide(),$("#ltrLiteral8").hide()):($("#rblDonotwanttoprovidestmtExt").show(),$("#ltrDonotwanttoprovidestmtExt").show(),$("#ltrLiteral8").show());$("#btnExecuteRefreshFromObjectExt")!==null&&$("#btnExecuteRefreshFromObjectExt")!=undefined&&$("#btnExecuteRefreshFromObjectExt").trigger("click")});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard']  #rblDonotwanttoprovidestmtExt",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblDonotwanttoprovidestmtExt").find("input[type='radio']:checked").val()=="Y"?($("#rblCompletestsmtLaterExt").hide(),$("#ltrIwanttocompstmtlatterExt").hide(),$("#ltrLiteral1").hide()):($("#rblCompletestsmtLaterExt").show(),$("#ltrIwanttocompstmtlatterExt").show(),$("#ltrLiteral1").show());$("#btnExecuteRefreshFromObjectExt")!==null&&$("#btnExecuteRefreshFromObjectExt")!=undefined&&$("#btnExecuteRefreshFromObjectExt").trigger("click")});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard']  #rblCompletestsmtLaterExt",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#rblCompletestsmtLaterExt").find("input[type='radio']:checked").val()=="Y"?($("#rblDonotwanttoprovidestmtExt").hide(),$("#ltrDonotwanttoprovidestmtExt").hide(),$("#ltrLiteral8").hide()):($("#rblDonotwanttoprovidestmtExt").show(),$("#ltrDonotwanttoprovidestmtExt").show(),$("#ltrLiteral8").show());$("#btnExecuteRefreshFromObjectExt")!==null&&$("#btnExecuteRefreshFromObjectExt")!=undefined&&$("#btnExecuteRefreshFromObjectExt").trigger("click")});$(document).on("click"," div[id^='wfmClaimantMessageDetailsMaintenance'] #btnNavigateToClaimantAddress",function(){MVVMGlobal.UpdateUrl("wfmClaimantMaintenance","0",!0);sessionStorage.setItem("isCallfromMessageScreen",JSON.stringify({isCallfromMessageScreen:"true"}));window.location.reload()});$(document).on("click","div[id^='wfmMSSHomeMaintenance'] #hypClaimantProfileLink",function(){for(s in ns.viewModel)s.indexOf("wfmClaimantMaintenance")==0&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"));window.localStorage.setItem("QuickAction","hypClaimantProfileLink")});$(document).on("click","div[id^='wfmMSSHomeMaintenance'] #hypClaimantProfileLinkAddress",function(){for(s in ns.viewModel)s.indexOf("wfmClaimantMaintenance")==0&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"));window.localStorage.setItem("QuickAction","hypClaimantProfileLinkAddress")});$(document).on("click","div[id^='wfmMSSHomeMaintenance'] #hypChangeCommunicationPref",function(){for(s in ns.viewModel)s.indexOf("wfmClaimantMaintenance")==0&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"));window.localStorage.setItem("QuickAction","hypChangeCommunicationPref")});$(document).on("click","div[id^='wfmMSSHomeMaintenance'] #hypChangePassword",function(){window.localStorage.setItem("QuickAction","hypChangePassword")});$(document).on("click","div[id^='wfmMSSHomeMaintenance'] #hypTaxWithholding",function(){for(s in ns.viewModel)s.indexOf("wfmDirectDepositMaintenance")==0&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"));window.localStorage.setItem("QuickAction","hypTaxWithholding")});$(document).on("click","div[id^='wfmMSSHomeMaintenance'] #hypChangePaymentMethod",function(){for(s in ns.viewModel)s.indexOf("wfmDirectDepositMaintenance")==0&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"));window.localStorage.setItem("QuickAction","hypChangePaymentMethod")});$(document).on("change"," div[id^='wfmClaimantRegistrationWizard'] #ddlGenInCountry, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlGenInCountry",function(){$("#ddlGenInCountry").val()=="1"&&($("#ddlGenInState").val("MD"),$("#ddlGenInState")!==null&&$("#ddlGenInState")!=undefined&&$("#ddlGenInState").trigger("change"));$("#ddlGenInCountry").val()=="38"&&($("#ddlGenInState").val(""),$("#ddlGenInState")!==null&&$("#ddlGenInState")!=undefined&&$("#ddlGenInState").trigger("change"))});$(document).on("change"," .RemoveSpaceCountry",function(){var n=$(" .RemoveSpaceCountry:visible").children()[0];n!=undefined&&n.innerText.length<2&&$(" .RemoveSpaceCountry:visible").children()[0].remove()});$(document).on("change"," .RemoveSpaceCountry1",function(){var n=$(" .RemoveSpaceCountry1:visible").children()[0];n!=undefined&&n.innerText.length<2&&$(" .RemoveSpaceCountry1:visible").children()[0].remove()});$(document).on("click"," .RemoveSpaceCountry",function(){$(" .RemoveSpaceCountry:visible").children().length>0&&$(" .RemoveSpaceCountry:visible").children()[0]!=undefined&&$(" .RemoveSpaceCountry:visible").children()[0].innerText.length<2&&$(" .RemoveSpaceCountry:visible").children()[0].remove()});$(document).on("click"," .RemoveSpaceCountry1",function(){$(" .RemoveSpaceCountry1:visible").children().length>0&&$(" .RemoveSpaceCountry1:visible").children()[0]!=undefined&&$(" .RemoveSpaceCountry1:visible").children()[0].innerText.length<2&&$(" .RemoveSpaceCountry1:visible").children()[0].remove()});$(document).on("keyup"," .ZipCodeNextTab",function(){$(" .ZipCodeNextTab:visible").val().length==5&&/^\d+$/.test($(" .ZipCodeNextTab:visible").val())&&$(" .zipExtCode").focus()});$(document).on("keyup"," .ZipCodeNextTab2",function(){$(" .ZipCodeNextTab2:visible").val().length==5&&/^\d+$/.test($(" .ZipCodeNextTab2:visible").val())&&$(" .zipExtCode2").focus()});$(document).on("keyup",".CheckAlphanumericOnly",function(){this.value.match(/[^a-zA-Z0-9]/)&&(this.value=this.value.replace(/[^a-zA-Z0-9]/,""))});$(document).on("click","div[id^='wfmClaimantRegistrationWizard'] input[id^=rblBybDate],div[id^='wfmClaimantRegistrationWizard'] #rdbWHWeekOne, div[id^='wfmPUAClaimantRegistrationWizard'] input[id^=rblBybDate],div[id^='wfmPUAClaimantRegistrationWizard'] #rdbWHWeekOne",function(){var n=nsUserFunctions.GetActiveDomElement(this),t,i;this.id.indexOf("rdbWHWeekOne")===0?(t=n.find("input[id^=rblBybDate]").first(),$(this).attr("name",t.attr("name"))):this.id.indexOf("rblBybDate")===0&&(i=n.find("input#rdbWHWeekOne"),i.attr("name",$(this).attr("name")))});$(document).on("click","div[id^='wfmClaimantRegistrationWizard']  #rblTwenty, div[id^='wfmPUAClaimantRegistrationWizard']  #rblTwenty",function(){$("#rblTwenty").find(":checked").val()=="N"});$(document).on("click","div[id^='wfmClaimEmploymentHistoryWizard']  #lblEmpName",function(){$("#btnEmployerName")!==null&&$("#btnEmployerName")!=undefined&&$("#btnEmployerName").trigger("click")});$(document).on("onchange","#ddlStatePnlChildSupport",function(){nsUserFunctions.ddlStatePnlChildSupportChange()});$(document).on("change","div[id^='wfmUpdateUserLoginCredentialsMaintenance'] #ddlFirstSecurityQuestion",function(){$("#txtFirstSecurityAnswer").val().length>0&&$("#txtConfirmFirstSecurityAnswer").val().length>0&&($("#txtFirstSecurityAnswer").val(""),$("#txtConfirmFirstSecurityAnswer").val(""),$("#txtFirstSecurityAnswer")!==null&&$("#txtFirstSecurityAnswer")!=undefined&&$("#txtFirstSecurityAnswer").trigger("change"),$("#txtConfirmFirstSecurityAnswer")!==null&&$("#txtConfirmFirstSecurityAnswer")!=undefined&&$("#txtConfirmFirstSecurityAnswer").trigger("change"))});$(document).on("change","div[id^='wfmUpdateUserLoginCredentialsMaintenance'] #ddlSecondSecurityQuestion",function(){$("#txtSecondSecurityAnswer").val().length>0&&$("#txtConfirmSecondSecurityAnswer").val().length>0&&($("#txtSecondSecurityAnswer").val(""),$("#txtConfirmSecondSecurityAnswer").val(""),$("#txtSecondSecurityAnswer")!==null&&$("#txtSecondSecurityAnswer")!=undefined&&$("#txtSecondSecurityAnswer").trigger("change"),$("#txtConfirmSecondSecurityAnswer")!==null&&$("#txtConfirmSecondSecurityAnswer")!=undefined&&$("#txtConfirmSecondSecurityAnswer").trigger("change"))});$(document).on("change","div[id^='wfmUpdateUserLoginCredentialsMaintenance'] #ddlThirdSecurityQuestion",function(){$("#txtThirdSecurityAnswer").val().length>0&&$("#txtConfirmThirdSecurityAnswer").val().length>0&&($("#txtThirdSecurityAnswer").val(""),$("#txtConfirmThirdSecurityAnswer").val(""),$("#txtThirdSecurityAnswer")!==null&&$("#txtThirdSecurityAnswer")!=undefined&&$("#txtThirdSecurityAnswer").trigger("change"),$("#txtConfirmThirdSecurityAnswer")!==null&&$("#txtConfirmThirdSecurityAnswer")!=undefined&&$("#txtConfirmThirdSecurityAnswer").trigger("change"))});$(document).on("change paste input","div[id^='wfmClaimantRegistrationWizard'] #txtDmvNumber, div[id^='wfmPUAClaimantRegistrationWizard'] #txtDmvNumber",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#txtDmvNumber").val().length>0?n.find("#capLabelIssuedByState").show():n.find("#capLabelIssuedByState").hide()});$(document).on("change","div[id^='wfmClaimantAddressMaintenance'] #ddlStateCodeValue",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryCodeValue").val()=="1"&&n.find("#ddlStateCodeValue").val()!="MD"&&(n.find("#txtAddressTypeValue").val()=="HOME"||n.find("#txtAddressTypeValue").val()==""||n.find("#txtAddressTypeValue").val()=="MAIL"&&n.find("#lblCommuteDisp").text()=="Y")?$("#pnlCommuteInformation").show():$("#pnlCommuteInformation").hide()});$(document).on("change","div[id^='wfmClaimantContactMaintenance'] #txtEmail",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#txtEmail").val();t.length>0?$("#lblLabel").show():$("#lblLabel").hide()});$(document).on("change","div[id^='wfmClaimantFileHigherAppealWizard'] #chkCheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkCheckBox").is(":checked");t&&(n.find("#ddlCountryTF").val()==undefined||n.find("#ddlCountryTF").val()=="")&&n.find("#ddlCountryTF").val("1")});$(document).on("change","div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegSelfEmployed",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkRegSelfEmployed").is(":checked");t?n.find("#pnlSelfEmp").removeClass("HideControl"):n.find("#pnlSelfEmp").addClass("HideControl")});$(document).on("change","div[id^='wfmClaimantFileAppealWizard'] #ddlWLCountryCodeValue,#rblRadioSub",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#rblRadioSub_0").is(":checked")!=undefined&&n.find("#rblRadioSub_0").is(":checked")==!0&&(n.find("#ddlWLCountryCodeValue").val()!="1"&&n.find("#ddlWLCountryCodeValue").val()!="38"?(t="#lblWLReqZip",nsUserFunctions.showHideControlsByActiveForm(n,t,!0)):nsUserFunctions.showHideControlsByActiveForm(n,"#lblWLReqZip",!1));(n.find("#rblRadioSub_0").is(":checked")==!1&&n.find("#rblRadioSub_1").is(":checked")==!1||n.find("#rblRadioSub_1").is(":checked")==!0)&&(t="#lblLabelReqCounty,#lblWLReqZip",nsUserFunctions.showHideControlsByActiveForm(n,t,!0))});$(document).on("change","div[id^='wfmClaimantFileAppealWizard'] #ddlWLStateCodeDescription,#rblRadioSub",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#rblRadioSub_0").is(":checked")!=undefined&&n.find("#rblRadioSub_0").is(":checked")==!0&&(n.find("#ddlWLCountryCodeValue").val()=="1"&&n.find("#ddlWLStateCodeDescription").val()=="MD"?nsUserFunctions.showHideControlsByActiveForm(n,"#lblLabelReqCounty",!1):nsUserFunctions.showHideControlsByActiveForm(n,"#lblLabelReqCounty",!0));(n.find("#rblRadioSub_0").is(":checked")==!1&&n.find("#rblRadioSub_1").is(":checked")==!1||n.find("#rblRadioSub_1").is(":checked")==!0)&&(t="#lblLabelReqCounty,#lblWLReqZip",nsUserFunctions.showHideControlsByActiveForm(n,t,!0))});$(document).on("change","div[id^='wfmClaimantFileHigherAppealWizard'] #chkCheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),r=n.find("#chkCheckBox").is(":checked"),t,i;r?n.find("#ddlCountryTF").val()==undefined||n.find("#ddlCountryTF").val==null||n.find("#ddlCountryTF").val()==""?(n.find("#ddlCountryTF").val("1"),n.find("#ddlCountryTF").trigger("change"),n.find("#ddlDropDownList1").val("MD"),n.find("#ddlDropDownList1").trigger("change")):n.find("#ddlCountryTF").val()=="1"?(n.find("#ddlCountryTF").trigger("change"),n.find("#ddlDropDownList1").val("MD"),n.find("#ddlDropDownList1").trigger("change")):(i="#txtTextStateOtherCountry,#txtTextZipOtherState",nsUserFunctions.showHideControlsByActiveForm(n,i,!1)):(t="#ddlDropDownList1, #txtTextZipUSA, #lblHyphen, #txtTextZipExtension,#txtTextStateOtherCountry, #txtTextZipOtherState,#Zips,#txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(n,t,!0))});$(document).on("change","div[id^='wfmClaimantFileHigherAppealWizard'] #ddlCountryTF",function(){var n=nsUserFunctions.GetActiveDomElement(this),r=n.find("#chkCheckBox").is(":checked"),t,i;r?n.find("#ddlCountryTF").val()!="1"&&n.find("#ddlCountryTF").val()!="38"?(i="#txtTextStateOtherCountry, #txtTextZipOtherState",nsUserFunctions.showHideControlsByActiveForm(n,i,!1),t="#Zips,#ddlDropDownList1, #txtTextZipUSA, #lblHyphen, #txtTextZipExtension, #txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(n,t,!0)):n.find("#ddlCountryTF").val()=="1"?(i="#Zips,#ddlDropDownList1, #txtTextZipUSA, #lblHyphen, #txtTextZipExtension",nsUserFunctions.showHideControlsByActiveForm(n,i,!1),t="#txtTextStateOtherCountry, #txtTextZipOtherState,#txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(n,t,!0)):n.find("#ddlCountryTF").val()=="38"&&(i="#Zips,#ddlDropDownList1, #txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(n,i,!1),t="#txtTextStateOtherCountry, #txtTextZipOtherState,#txtTextZipUSA, #lblHyphen, #txtTextZipExtension",nsUserFunctions.showHideControlsByActiveForm(n,t,!0)):(t="#ddlDropDownList1, #txtTextZipUSA, #lblHyphen, #txtTextZipExtension,#txtTextStateOtherCountry, #txtTextZipOtherState,#Zips,#txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(n,t,!0))});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmClaimantRegistrationWizard'] #chkGICheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmPUAClaimantRegistrationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,#ltrLiteral76").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq,#ltrLiteral76").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide()):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq,#ltrLiteral76").show()))});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkIDoNotHaveResidentialAddres, div[id^='wfmPUAClaimantRegistrationWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),t;i?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen,#lblOtherState").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq,#ltrLiteral76").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#capZipCodeReqForOther").hide(),n.find("#ddlGenInState").val()!="MD"&&(n.find("#ddlCountyCodeValueGI").hide(),n.find("#countyReq,#ltrLiteral76").hide())):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#capZipCodeReqForOther").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#capZipCodeReqForOther").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#capLabelZipreq").hide(),n.find("#txtTextCanada").hide(),n.find("#ddlGenInState").hide(),n.find("#ddlGenInState").val()!="MD"&&(n.find("#ddlCountyCodeValueGI").hide(),n.find("#countyReq,#ltrLiteral76").hide()),n.find("#txtOtherStateGeneral").show())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#capZipCodeReqForOther").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#capZipCodeReqForOther").hide(),n.find("#ddlGenInState").val()!="MD"&&(n.find("#ddlCountyCodeValueGI").hide(),n.find("#countyReq,#ltrLiteral76").hide())):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#capZipCodeReqForOther").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada").hide(),n.find("#ddlGenInState").val()!="MD"&&(n.find("#ddlCountyCodeValueGI").hide(),n.find("#countyReq,#ltrLiteral76").hide())));t=function(){var t={};t.context={idomActiveDiv:n,activeDivID:n[0].id};nsUserFunctions.ShowHideThreeFourNumber(t,n)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimReopenWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension").hide(),n.find("#txtTextCanada,#ddlGenInState,#ddlCountyCodeValueGI,#capLabelZipreq,#lblOtherState").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada").hide()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"))});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension").hide(),n.find("#txtTextCanada,#ddlGenInState,#ddlCountyCodeValueGI,#capLabelZipreq,#lblOtherState").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada").hide()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"))});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen,#OtherState").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#ddlGenInState").val()=="MD"&&n.find("#countyReq").show()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#ddlGenInState").val()=="MD"&&n.find("#countyReq").show()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada,#ddlGenInState").hide(),n.find("#txtOtherStateGeneral").show()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"))});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen,#OtherState").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#ddlGenInState").val()=="MD"&&n.find("#countyReq").show()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#ddlGenInState").val()=="MD"&&n.find("#countyReq").show()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada,#ddlGenInState").hide(),n.find("#txtOtherStateGeneral").show()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"))});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen,#lblOtherState").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension").hide(),n.find("#txtTextCanada").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada").hide()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"))});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen,#lblOtherState").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension").hide(),n.find("#txtTextCanada").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada").hide()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"))});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen,#lblOtherStateGen").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension").hide(),n.find("#txtTextCanada").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada").hide()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"))});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked");t?(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyValue,#lblHyphenGen,#lblOtherStateGen").hide(),n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension").hide(),n.find("#txtTextCanada").hide())):(n.find("#chkGICheckBox,#ltrLiteral109,#lblLabel37,#lblLabel61,#lblLabel60,#lblLabel90,#lblLabel28,#lblLabel82,#ltrLiteral120,#lblCountyValue,#txtTextZipForUSA,#txtTextUSAExtension,#ddlDropDownCounty,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq").show(),n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextCanada").hide()),n.find("#chkGICheckBox").prop("checked",!1),n.find("#chkGICheckBox")!==null&&n.find("#chkGICheckBox")!=undefined&&n.find("#chkGICheckBox").trigger("change"));n.find("#ddlCountyCodeValueGI").val()==""||(StateAndCountySelectedValue.SelectedCounty=n.find("#ddlCountyCodeValueGI").val());!n.find("#ddlGenInState").val()==""&&(StateAndCountySelectedValue.SelectedState=n.find("#ddlGenInState").val());n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show();n.find("#chkGICheckBox").is(":checked")?n.find("#ddlStateReOpen").val()==="MD"?(n.find("#ltrLiteral76").show(),n.find("#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq").hide()):n.find("#ltrLiteral76,#lblMACountyDesc,#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq").hide():n.find("#ddlGenInState").val()==="MD"?(n.find("#ltrLiteral76").show(),n.find("#countyReq").show(),StateAndCountySelectedValue.SelectedCounty!=""&&n.find("#ddlCountyCodeValueGI").val(StateAndCountySelectedValue.SelectedCounty),n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?(n.find("#countyReq").show(),n.find("#ltrLiteral76").show()):n.find("#lblCountyStr").hide(),n.find("#ddlCountyCodeValueGI,#lblReqCountyGen").show(),n.find("#lblMACountyDesc").hide()):(n.find("#ltrLiteral76,#lblMACountyDesc,#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq").hide(),n.find("#ddlCountyCodeValueGI").val()!==undefined&&n.find("#ddlCountyCodeValueGI")!=""&&(n.find("#ddlCountyCodeValueGI").val("").trigger("change"),StateAndCountySelectedValue.SelectedCounty=""))});$(document).on("change","div[id^='wfmClaimantPaymentWizard'] #IsCancelRecurringPayment",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#IsCancelRecurringPayment").is(":checked");t?n.find("#lblReqIsAgreeRecurringPayment").hide():n.find("#lblReqIsAgreeRecurringPayment").show()});$(document).on("copy cut paste drop","div[id^='wfmPUAClaimExtensionWizard'] #txtExtensionConfirmEmailID",function(){return!1});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkDontHavePhNoRTAA",function(){nsUserFunctions.DoNotHavePhNoforRTAABenefit(this)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkGICheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,  #capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries,#capZipCodeReqForOther, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHYPHEN1").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#capZipCodeReqForOther").hide(),n.find("##countyReq").hide()):t!=null&&t!="38"&&t!="1"?(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#capZipCodeReqForOther").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide()):(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#capZipCodeReqForOther").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr,#lblOtherState").hide())});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkGICheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #chkCheckBox7",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkCheckBox7").is(":checked");t?n.find("#ltrLiteralPhonenumber,#txtPhoneNum").hide():n.find("#ltrLiteralPhonenumber,#txtPhoneNum").show()});$(document).on("click","div[id^='wfmOutofStateOverpaymentsMaintenance'] #btnAddAgency",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#pnlOtherStateAgencyAddressDetails").removeClass("HideControl");n.find("div #pnlOtherStateAgencyAddressDetails").removeClass("HideControl");n.find("#lblAddAgencySelected").val=!0});$(document).on("click","div[id^='wfmOutofStateOverpaymentsMaintenance'] #btnAddressPanel",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#pnlOtherStateAgencyAddressDetails").addClass("HideControl");n.find("div #pnlOtherStateAgencyAddressDetails").addClass("HideControl")});$(document).on("change.changecountry","[id^='wfmClaimantRegistrationWizard'] #ddlGenInCountry, [id^='wfmPUAClaimantRegistrationWizard'] #ddlGenInCountry",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),r=t.find("#chkInitQueCheckBox").is(":checked"),i;r&&(t.find("#chkInitQueCheckBox").attr("checked",!1),t.find("#chkGICheckBox").attr("checked",!0));i=t.find("#ddlGenInCountry").val();i!=null&&i=="38"&&t.find("#chkGICheckBox").is(":checked")==!1?(t.find("#txtTextCanada").show(),t.find("#txtTextZipForUSA").hide(),t.find("#txtTextUSAExtension").hide(),t.find("#ddlGenInState").show(),t.find("#capZipCodeReqForOther").hide(),t.find("#lblHYPHEN1").hide()):i!=null&&i=="1"&&t.find("#chkGICheckBox").is(":checked")==!1?(t.find("#txtTextCanada").hide(),t.find("#txtTextZipForUSA").show(),t.find("#txtTextUSAExtension").show(),t.find("#ddlGenInState").show(),t.find("#lblHYPHEN1").show(),t.find("#capZipCodeReqForOther").hide()):i!=null&&t.find("#chkGICheckBox").is(":checked")==!1?(t.find("#txtOtherStateGeneral").show(),t.find("#txtTextZipForOtherCountries").show(),t.find("#capZipCodeReqForOther").show(),t.find("#ddlGenInState").hide(),t.find("#capLabelZipreq").hide(),t.find("#txtTextZipForUSA").hide(),t.find("#txtTextUSAExtension").hide()):t.find("#chkGICheckBox").is(":checked")==!0&&t.find("#capZipCodeReqForOther").hide()};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblGender, div[id^='wfmPUAClaimantRegistrationWizard'] #rblGender",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlClaimPresentlyState,#ltrClaimPresentlyState3,#lblStar,#ltrClaimPresentlyState3MilitaryClaimant,#ltrMilitaryQ3Hours,#ltrMilitaryQ5Hours,#ltrMilitaryQ4Week,#ltrMilitaryQ6Week").hide();n.find("#ltrMilitaryQ4Hours,#ltrMilitaryQ5Week").show()});$(document).on("change","#rblDPATerms0",function(){var t=$("#rblDPATerms0").is(":checked"),n;t&&($("#ddlClaimPresentlyState").hide(),$("#ltrClaimPresentlyState3").hide(),$("#lblStar").hide(),$("#ltrClaimPresentlyState3MilitaryClaimant").hide(),n=$("#lblClaimantPortal").text(),n=="true"?($("#ltrMilitaryQ3Hours").show(),$("#ltrMilitaryQ4Week").show(),$("#ltrMilitaryQ4Hours").hide(),$("#ltrMilitaryQ5Hours").hide(),$("#ltrMilitaryQ5Week").hide(),$("#ltrMilitaryQ6Week").hide()):($("#ltrMilitaryQ4Hours").show(),$("#ltrMilitaryQ5Week").show(),$("#ltrMilitaryQ3Hours").hide(),$("#ltrMilitaryQ5Hours").hide(),$("#ltrMilitaryQ4Week").hide(),$("#ltrMilitaryQ6Week").hide()))});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkRegNotWorkedLastYearCheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegNotWorkedLastYearCheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find(this).is(":checked")&&(n.find("#chkRegEmployedInStateCheckBox").is(":checked")&&n.find("#chkRegEmployedInStateCheckBox")!==null&&n.find("#chkRegEmployedInStateCheckBox")!=undefined&&n.find("#chkRegEmployedInStateCheckBox").trigger("click"),n.find("#chkRegEmployedInOtherStateCheckBox").is(":checked")&&n.find("#chkRegEmployedInOtherStateCheckBox")!==null&&n.find("#chkRegEmployedInOtherStateCheckBox")!=undefined&&n.find("#chkRegEmployedInOtherStateCheckBox").trigger("click"),n.find("#chkRegEmployedAsMilitaryCheckBox").is(":checked")&&n.find("#chkRegEmployedAsMilitaryCheckBox")!==null&&n.find("#chkRegEmployedAsMilitaryCheckBox")!=undefined&&n.find("#chkRegEmployedAsMilitaryCheckBox").trigger("click"),n.find("#chkRegEmployedAsFederalCheckBox").is(":checked")&&n.find("#chkRegEmployedAsFederalCheckBox")!==null&&n.find("#chkRegEmployedAsFederalCheckBox")!=undefined&&n.find("#chkRegEmployedAsFederalCheckBox").trigger("click"))});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkDontHavePhNo, div[id^='wfmPUAClaimantRegistrationWizard'] #chkDontHavePhNo",function(){var n=nsUserFunctions.GetActiveDomElement(this);$("#chkDontHavePhNo").is(":checked")?(n.find("#ltrPhoneNumberTitle,#lblPhoneNumberRequired,#txtPhoneNumber,#ltrPhoneNote,#lblPhnStar").hide(),n.find("#txtPhoneNumber")!==null&&n.find("#txtPhoneNumber")!=undefined&&n.find("#txtPhoneNumber").val("").trigger("change"),n.find("#ltrPhoneInfo").show()):(n.find("#ltrPhoneNumberTitle,#lblPhoneNumberRequired,#txtPhoneNumber,#ltrPhoneNote,#lblPhnStar").show(),n.find("#ltrPhoneInfo").hide())});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkGICheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCounty(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimReopenWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimReopenWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkGICheckBox",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyForPrograms(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlGenInState, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlGenInState",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCounty(i,t)};setTimeout(t,250)});$(document).on("change","#rblDPATerms0",function(){var t=$("#rblDPATerms0").is(":checked"),n;t&&($("#ddlClaimPresentlyState").hide(),$("#ltrClaimPresentlyState3").hide(),$("#lblStar").hide(),$("#ltrClaimPresentlyState3MilitaryClaimant").hide(),n=$("#lblClaimantPortal").text(),n=="true"&&($("#ltrMilitaryQ3Hours").show(),$("#ltrMilitaryQ4Week").show(),$("#ltrMilitaryQ4Hours").hide(),$("#ltrMilitaryQ5Hours").hide(),$("#ltrMilitaryQ5Week").hide(),$("#ltrMilitaryQ6Week").hide()))});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkRegEmployedAsMilitaryCheckBox, div[id^='wfmClaimantRegistrationWizard'] #rblHomeState, div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegEmployedAsMilitaryCheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #rblHomeState",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkRegEmployedAsMilitaryCheckBox").is(":checked"),r=n.find("#rblHomeState_0").is(":checked"),f=n.find(this)[0].type,t,u;(i===!0||i==="true"||i==="on")&&(r===!0||r==="true"||r==="on")?(n.find("#ddlClaimPresentlyState, #lblStar").show(),t=n.find("#lblClaimantPortal").text(),t=="true"?(n.find("#ltrClaimPresentlyState3MilitaryClaimant, #ltrMilitaryQ4Hours, #ltrMilitaryQ5Week").show(),n.find("#ltrClaimPresentlyState3,#ltrMilitaryQ3Hours,#ltrMilitaryQ5Hours,#ltrMilitaryQ4Week,#ltrMilitaryQ6Week").hide()):(n.find("#ltrClaimPresentlyState3,#ltrMilitaryQ5Hours,#ltrMilitaryQ6Week").show(),n.find("#ltrClaimPresentlyState3MilitaryClaimant,#ltrMilitaryQ3Hours,#ltrMilitaryQ4Hours,#ltrMilitaryQ4Week,#ltrMilitaryQ5Week").hide())):(n.find("#ltrClaimPresentlyState3,#ddlClaimPresentlyState,#lblStar,#ltrClaimPresentlyState3MilitaryClaimant").hide(),t=n.find("#lblClaimantPortal").text(),t=="true"?(n.find("#ltrMilitaryQ3Hours,#ltrMilitaryQ4Week").show(),n.find("#ltrMilitaryQ4Hours,#ltrMilitaryQ5Hours,#ltrMilitaryQ5Week,#ltrMilitaryQ6Week").hide()):(n.find("#ltrMilitaryQ4Hours,#ltrMilitaryQ5Week").show(),n.find("#ltrMilitaryQ3Hours,#ltrMilitaryQ5Hours,#ltrMilitaryQ4Week,#ltrMilitaryQ6Week").hide()));u=function(){var t={};t.context={idomActiveDiv:n,activeDivID:n[0].id};nsUserFunctions.ShowHideThreeFourNumber(t,n)};setTimeout(u,250)});$(document).on("keydown",".NumericRegistrationSSN",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t<=13||t===46||t===37||t===39||t>=96&&t<=105?!0:(i=String.fromCharCode(t),r=/[0-9]/,r.test(i))});$(document).on("keypress",".NumericRegistrationSSN",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t<=13?!0:(i=String.fromCharCode(t),r=/[0-9]/,r.test(i))});$(document).on("contextmenu",".NumericRegistrationSSN",function(){return!1});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblWorkersCompInd0,div[id^='wfmClaimantRegistrationWizard'] #rblWorkersCompInd_0, div[id^='wfmPUAClaimantRegistrationWizard'] #rblWorkersCompInd0,div[id^='wfmPUAClaimantRegistrationWizard'] #rblWorkersCompInd_0",function(){var n=nsUserFunctions.GetActiveDomElement(this),f,e,t,r,u;for(n.find("#pnlMostRecentAddressRegClmt").show(),n.find("#pnlJobtitleRegClmt").show(),i=0;i<9;i++)if(f="#rblSeperationCode_",f+=i,e=$(f).is(":checked"),e===!0||e==="true"){n.find("#pnlNewPanel9").show();break}t=n.find("#rblSeperationCode_4").is(":checked",!1);(t===!0||t==="true"||t==!0||t=="true")&&n.find("#pnlQuitReason").show();r=n.find("#rblSeperationCode_5").is(":checked",!1);(r===!0||r==="true"||r==!0||r=="true")&&n.find("#pnlDischargeReason").show();u=n.find("#rblSeperationCode_6").is(":checked",!1);(u===!0||u==="true"||u==!0||u=="true")&&n.find("#pnlReasonReasonableAssurance").show()});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblWorkersCompInd1,div[id^='wfmClaimantRegistrationWizard'] #rblWorkersCompInd_1, div[id^='wfmPUAClaimantRegistrationWizard'] #rblWorkersCompInd1,div[id^='wfmPUAClaimantRegistrationWizard'] #rblWorkersCompInd_1",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#pnlMostRecentAddressRegClmt").hide();n.find("#pnlJobtitleRegClmt").hide();n.find("#pnlQuitReason").hide();n.find("#pnlReasonReasonableAssurance").hide();n.find("#pnlDischargeReason").hide();n.find("#pnlNewPanel9").hide()});ShowHideOptionInDropDown("ddlSecurityQuestion");$(document).on("change","div[id^='wfmClaimReopenWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmClaimReopenWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide()):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide())});$(document).on("change","div[id^='wfmClaimReopenWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,#ddlDropDownCounty,#txtTextZipForOtherCountries, #txtTextCanada, #txtOtherStateGeneral,#ddlGenInState,#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq,#countyReq").hide(),$("#ddlGenInState").hide(),$("#txtTextZipForUSA").hide(),$("#txtTextUSAExtension").hide(),$("#lblHYPHEN1").hide(),$("#capLabelZipreq").hide(),$("#countyReq").hide(),$("#txtOtherStateGeneral").hide(),$("#txtTextZipForOtherCountries").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHyphenGen").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide(),n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlCountyCodeValueGI,#countyReq").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr,#lblOtherState").hide()))});$(document).on("change","div[id^='wfmClaimReopenWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmClaimReopenWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?(n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show(),n.find("#ddlCountyCodeValueGI").hide()):n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmClaimReopenWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmClaimReopenWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("keyup","div[id^='wfmClaimReopenWizard'] #txtEmailIDReopen",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowEmailOnGeneralInfoReopen(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimReopenWizard'] #ddlCorrPreferenceReopen",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowEmailOnGeneralInfoReopen(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmReopenPUAClaimWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide()):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide())});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,#ddlDropDownCounty,#txtTextZipForOtherCountries, #txtTextCanada, #txtOtherStateGeneral,#ddlGenInState,#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq,#countyReq").hide(),$("#ddlGenInState").hide(),$("#txtTextZipForUSA").hide(),$("#txtTextUSAExtension").hide(),$("#lblHYPHEN1").hide(),$("#capLabelZipreq").hide(),$("#countyReq").hide(),$("#txtOtherStateGeneral").hide(),$("#txtTextZipForOtherCountries").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHyphenGen").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("#countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide(),n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlCountyCodeValueGI,#countyReq").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr,#lblOtherState").hide()))});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?(n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show(),n.find("#ddlCountyCodeValueGI").hide()):n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("keyup","div[id^='wfmReopenPUAClaimWizard'] #txtEmailIDReopen",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowEmailOnGeneralInfoReopen(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #ddlCorrPreferenceReopen",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowEmailOnGeneralInfoReopen(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmClaimExtensionWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHYPHEN1").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#OtherState").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide()))});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#OtherState").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,#capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHYPHEN1").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("##countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide(),n.find("#lblHYPHEN1").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr,#lblnOtherState").hide()))});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmClaimExtensionWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmPUAClaimExtensionWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHYPHEN1").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#OtherState").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide()))});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#OtherState").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,#capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHYPHEN1").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("##countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide(),n.find("#lblHYPHEN1").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr,#lblnOtherState").hide()))});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmPUAClaimExtensionWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmDUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide()))});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,  #capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHyphenGen").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("##countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr").hide()))});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmDUAClaimApplicationWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmPUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide()))});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherState").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,  #capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHyphenGen").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("##countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr").hide()))});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmPUAClaimApplicationWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmApplyTRABenefitsWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherStateGen").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide()))});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherStateGen").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,  #capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHyphenGen").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("##countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr").hide()))});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmApplyTRABenefitsWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkIDoNotHaveResidentialAddres,div[id^='wfmApplyRTAABenefitsWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#chkIDoNotHaveResidentialAddres").is(":checked"),i=n.find("#chkGICheckBox").is(":checked");t===!1||i===!1?(n.find("#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#txtGenInZip,#txtGenZipExtension,#ddlCountyCodeValueGI,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen").show(),n.find("#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherStateGen,#lblMACountyDesc").hide(),n.find("#txtGenZipExtension").val(""),n.find("#txtGenZipExtension")!==null&&n.find("#txtGenZipExtension")!=undefined&&n.find("#txtGenZipExtension").trigger("change"),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide())):(n.find("#chkGICheckBox").prop("checked",!1),n.find("#ddlGenInState").val()=="MD"&&n.find("#ddlGenInCountry").val()=="1"&&(n.find("#ddlCountyCodeValueGI").show(),n.find("#countyReq").show()),n.find("#ddlGenInCountry").val()=="1"&&n.find("#txtOtherStateGeneral").hide(),(n.find("#ddlGenInState").val()!="MD"||n.find("#ddlGenInCountry").val()=="38")&&n.find("#ddlCountyCodeValueGI").hide(),n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries,#txtOtherStateGeneral").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#capLabelZipreq").hide(),n.find("#txtTextCanada,#ddlGenInState").hide()))});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),i=n.find("#chkGICheckBox").is(":checked"),t;i?(n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblOtherStateGen").show(),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#lblHyphenGen,  #capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(t=n.find("#ddlGenInCountry").val(),t!=null&&t=="38"?(n.find("#txtTextCanada").show(),n.find("#capLabelZipreq").show(),n.find("#ddlGenInState").show(),n.find("#txtGenInZip").hide(),n.find("#lblGenInZip").hide(),n.find("#txtGenZipExtension").hide(),n.find("#lblHyphenGen").hide(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide(),n.find("##countyReq").hide()):(t!=null&&t=="1"?(n.find("#txtTextCanada").hide(),n.find("#txtTextZipForUSA").show(),n.find("#txtTextUSAExtension").show(),n.find("#lblHYPHEN1").show(),n.find("#lblGenInZip").hide(),n.find("#ddlGenInState").show(),n.find("#ddlDropDownCounty").show(),n.find("#capLabelZipreq").show(),n.find("#txtOtherStateGeneral").hide(),n.find("#txtTextZipForOtherCountries").hide()):(n.find("#txtOtherStateGeneral").show(),n.find("#txtTextZipForOtherCountries").show(),n.find("#ddlGenInState").hide(),n.find("#capLabelZipreq").hide(),n.find("#lblGenInZip").hide(),n.find("#txtTextZipForUSA").hide(),n.find("#txtTextUSAExtension").hide()),n.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo").show(),n.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry,#lblCountyStr").hide()))});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkGICheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#btnRefreshMailingAddress")!==null&&n.find("#btnRefreshMailingAddress")!=undefined&&(t=n.find("#btnRefreshMailingAddress"),t.trigger("click"))});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlGenInCountry").val()=="1"?(n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").show(),n.find("#txtTextCanada").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()=="38"?(n.find("#txtTextCanada").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1").hide(),n.find("#txtTextZipForOtherCountries").hide()):n.find("#ddlGenInCountry").val()!="1"&&n.find("#ddlGenInCountry").val()!="38"&&(n.find("#txtTextZipForOtherCountries").show(),n.find("#txtTextZipForUSA,#txtTextUSAExtension,#lblHYPHEN1,#ddlGenInState").hide(),n.find("#txtTextCanada").hide())});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #ddlStateReOpen,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCountryReOpen").val()==null||n.find("#ddlCountryReOpen").val()!="1"||n.find("#ddlStateReOpen").val()=="MD"||n.find("#ddlStateReOpen").val()==null||n.find("#ddlStateReOpen").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#ddlGenInState").val()!=""?n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():n.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show()});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlState,#ddlGenInState, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlState,#ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#ddlCountry").val()!=null&&n.find("#ddlCountry").val()=="1"&&n.find("#ddlState").val()!="MD"&&n.find("#ddlState").val()!=null&&n.find("#ddlState").val()!=""?n.find("#chkIDoNotHaveResidentialAddres").is(":checked")||n.find("#pnlCommuteInfo").show():n.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null?n.find("#pnlCommuteInfo").show():n.find("#pnlCommuteInfo").hide();t={};t.context={idomActiveDiv:n,activeDivID:n[0].id};nsUserFunctions.HideShowCountyOnInitialQuestion(t,n)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlCountry, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlCountry",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowCountyOnInitialQuestion(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkRegEmployedInStateCheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegEmployedInStateCheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find(this).is(":checked")?n.find("#ddlCountry").val()==null||n.find("#ddlCountry").val()!="1"||n.find("#ddlState").val()=="MD"||n.find("#ddlState").val()==null||n.find("#ddlState").val()==""||n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#pnlCommuteInfo").hide():n.find("#pnlCommuteInfo").show():n.find("#pnlCommuteInfo").hide()});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkIDoNotHaveResidentialAddres, div[id^='wfmPUAClaimantRegistrationWizard'] #chkIDoNotHaveResidentialAddres",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find(this).is(":checked")?n.find("#pnlCommuteInfo").hide():(n.find("#ddlCountry").val()!=null&&n.find("#ddlCountry").val()=="1"&&n.find("#ddlState").val()!="MD"&&n.find("#ddlState").val()!=null&&n.find("#ddlState").val()!=""&&n.find("#pnlCommuteInfo").show(),n.find("#ddlGenInCountry").val()!=null&&n.find("#ddlGenInCountry").val()=="1"&&n.find("#ddlGenInState").val()!="MD"&&n.find("#ddlGenInState").val()!=null&&n.find("#chkIDoNotHaveResidentialAddres").is(":checked")?n.find("#pnlCommuteInfo").show():n.find("#pnlCommuteInfo").hide())});$(document).on("change","#ddlAddressUpdateSource",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlAddressUpdateSource").val()=="OTHR"?(n.find("#lblNotes").removeClass("HideControl"),n.find("#capNotesRequired").removeClass("HideControl"),n.find("#pnlNotesPanel").removeClass("HideControl")):(n.find("#lblNotes").addClass("HideControl"),n.find("#capNotesRequired").addClass("HideControl"),n.find("#pnlNotesPanel").addClass("HideControl"))});$(document).on("change","div[id^='wfmClaimantMaintenance'] #ddlCommPreference",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCommPreference").val()=="USML"?n.find("#ltrText,#txtText,#lblReqText,#lblReqEmail ,#ltrConfirmEmailID,#lblReqConfirmEmail ,#txtConfirmEmailID,#lblEmail,#ltrEmailInfoMsg ,#ltrPhoneInfoMsg,#ltrTextMsg,#lblTextNum,#txtEmailID,#ltrEmailID").hide():n.find("#ddlCommPreference").val()=="MAIL"?(n.find("#ltrText,#txtText,#lblReqText,#lblEmail,#lblTextNum,#ltrTextMsg,#ltrPhoneInfoMsg").hide(),n.find("#ltrEmailID,#lblReqEmail ,#txtEmailID,#ltrConfirmEmailID,#lblReqConfirmEmail ,#txtConfirmEmailID,#ltrEmailInfoMsg ").show(),n.find("#txtConfirmEmailID")!==null&&n.find("#txtConfirmEmailID")!=undefined&&n.find("#txtConfirmEmailID").val("").trigger("change")):n.find("#ddlCommPreference").val()=="TEXT"&&(n.find("#ltrText,#txtText,#lblReqText,#ltrPhoneInfoMsg,#ltrTextMsg").show(),n.find("#lblReqEmail ,#ltrConfirmEmailID,#lblReqConfirmEmail ,#txtConfirmEmailID,#lblEmail,#lblTextNum,#ltrEmailInfoMsg ,#txtEmailID,#ltrEmailID").hide(),n.find("#txtText")!==null&&n.find("#txtText")!=undefined&&n.find("#txtText").val("").trigger("change"))});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlCorrPreference, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlCorrPreference ,div[id^='wfmClaimExtensionWizard'] #ddlCorrPreference, div[id^='wfmApplyTABBenefitsWizard'] #ddlCorrPreference, div[id^='wfmDUAClaimApplicationWizard'] #ddlCorrPreference, div[id^='wfmPUAClaimApplicationWizard'] #ddlCorrPreference,div[id^='wfmCommunicationPreferenceMaintenance'] #ddlCorrPreference, div[id^='wfmApplyRTAABenefitsWizard'] #ddlCorrPreference, div[id^='wfmPUAClaimExtensionWizard'] #ddlCorrPreference",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ddlCorrPreference").val()=="MAIL"?(n.find("#txtEmailForCorr,#lblReqEmailAddress,#lblEmailAddress").hide(),n.find("#txtConfirmEmailID,#lblConfirmEmail,#lblConfirmEmailID").show()):n.find("#txtEmailForCorr,#txtConfirmEmailID,#lblReqEmailAddress,#lblConfirmEmail,#lblEmailAddress,#lblConfirmEmailID").hide()});$(document).on("keyup","div[id^='wfmClaimantRegistrationWizard'] #txtEmailID, div[id^='wfmPUAClaimantRegistrationWizard'] #txtEmailID",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowEmailOnGeneralInfo(i,t)};setTimeout(t,250)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlCorrPreference, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlCorrPreference",function(){var n=this,t=function(){var t=nsUserFunctions.GetActiveDomElement(n),i={};i.context={idomActiveDiv:t,activeDivID:t[0].id};nsUserFunctions.HideShowEmailOnGeneralInfo(i,t)};setTimeout(t,250)});$(document).on("change","#ddlHearingAction",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=document.getElementById("ddlHearingAction").value;if(t!=null&&t!=""){switch(t){case"CNHR":t="Continue Hearing";break;case"RSCD":t="Reschedule Hearing";break;case"RQPO":t="Request for Postponement"}n.find("#pnlRequestPostponement").removeClass("HideControl");t=="Continue Hearing"||t=="Reschedule Hearing"?n.find("#pnlUploadHearingDoc").addClass("HideControl"):t=="Request for Postponement"&&(n.find("#pnlRequestPostponement").addClass("HideControl"),n.find("#pnlRequestInPersonHearing").removeClass("HideControl"));n.find("#pnlRequestPostponement").find(".s-spnControlPanelbar").text(t);n.find("#btnTriggerHearingReason")!==null&&n.find("#btnTriggerHearingReason")!=undefined&&n.find("#btnTriggerHearingReason").trigger("click")}else n.find("#pnlRequestPostponement").addClass("HideControl"),n.find("#pnlRequestInPersonHearing").addClass("HideControl");return!0});$(document).on("click","#btnSaveCommuteInd",function(){var n=$("#lblIsAddressChange").text();n==1&&alert("You are required to register with job service.")});$(document).on("blur","#txtTRATrngCertAnswr4",function(){var t=new Date($("#txtTRATrngCertAnswr3").val()),i=new Date($("#txtTRATrngCertAnswr4").val()),r=new Date(i-t),n=r/864e5;n>15||n>30?(parseInt($("#lblPetitionId").text())>7e4||parseInt($("#lblPetitionId").text())<9e4)&&n>15?($("#lblTRATrngCertQstnsevan").show(),$("#lblTRATrngCertReqsevan").show(),$("#rblTRATrngCertAnswrFive").show()):(parseInt($("#lblPetitionId").text())<7e4||parseInt($("#lblPetitionId").text())>8e4)&&n>30&&($("#lblTRATrngCertQstnsevan").show(),$("#lblTRATrngCertReqsevan").show(),$("#rblTRATrngCertAnswrFive").show()):($("#lblTRATrngCertQstnsevan").hide(),$("#lblTRATrngCertReqsevan").hide(),$("#rblTRATrngCertAnswrFive").hide())});$(document).on("blur","div[id^='wfmClaimantPaymentPlanRequestWizard'] #txtDownpaymentAmt",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#txtDownpaymentAmt").val();t>"$0.00"?n.find("#capDownPmtDueDate,#lblDownPmtDueDt").show():n.find("#capDownPmtDueDate,#lblDownPmtDueDt").hide()});$(document).on("change",".check_row",function(){var e=$(this).attr("rowIndex"),u,n,r;if(ns.viewModel.currentModel.indexOf("Wizard")>0){if($(ns.viewModel.srcElement).closest('div[class="swMain"]')[0]!=null&&$(ns.viewModel.srcElement).closest('div[class="swMain"]')[0]!="undefined"){var f=$(ns.viewModel.srcElement).closest('div[class="swMain"]')[0].id,o=$("#"+f).data("smartWizard"),t=$(o.elmStepContainer.find(".content")[o.curStepIdx])[0].id;t=="wzsStepWorkInformation"&&f=="wizMain"&&(u=nsCommon.GetWidgetByActiveDivIdAndControlId(ns.viewModel.currentModel,"GridTable_grvOccupationResult"),u!=undefined&&(n=u.getData()),n!=undefined&&n!=null&&n.length>0&&(r=n[e].dt_OccupationTitle_0_0,$("#lblCustomaryOccupationValue").text(r),$("#lblCustomaryOccupationValue")!==null&&$("#lblCustomaryOccupationValue")!=undefined&&$("#lblCustomaryOccupationValue").trigger("change"),$("#ltrCustomaryOccupation").show(),$("#lblCustomaryOccupationValue").show()))}if(f=="wizMain"&&(t=="wzsDetailedEmpInfo"||t=="wzsDetailEmpInfoForNewEmp"||t=="wzsStepDetailOutStateEmp"||t=="wzsStepFederalEmployer"))for(i=0;i<=3;i++){var s="GridTable_grvEmpInfoOccupationResult"+i,u=nsCommon.GetWidgetByActiveDivIdAndControlId(ns.viewModel.currentModel,s);u!=undefined&&(n=u.getData(),n!=undefined&&n!=null&&n.length>0&&(r=n[e].dt_OccupationTitle_0_0,t=="wzsDetailedEmpInfo"&&($("#lblJobTitleEmployerValue").text(r),$("#lblJobTitleEmployerValue")!==null&&$("#lblJobTitleEmployerValue")!=undefined&&$("#lblJobTitleEmployerValue").trigger("change"),$("#ltrEmpInfoJobTitle").show(),$("#lblJobTitleEmployerValue").show()),t=="wzsDetailEmpInfoForNewEmp"&&($("#lblJobTitleEmployerValue01").text(r),$("#lblJobTitleEmployerValue01")!==null&&$("#lblJobTitleEmployerValue01")!=undefined&&$("#lblJobTitleEmployerValue01").trigger("change"),$("#ltrEmpInfoJobTitle01").show(),$("#lblJobTitleEmployerValue01").show()),t=="wzsStepDetailOutStateEmp"&&($("#lblJobTitleEmployerValue02").text(r),$("#lblJobTitleEmployerValue02")!==null&&$("#lblJobTitleEmployerValue02")!=undefined&&$("#lblJobTitleEmployerValue02").trigger("change"),$("#ltrEmpInfoJobTitle02").show(),$("#lblJobTitleEmployerValue02").show()),t=="wzsStepFederalEmployer"&&($("#lblJobTitleEmployerValue03").text(r),$("#lblJobTitleEmployerValue03")!==null&&$("#lblJobTitleEmployerValue03")!=undefined&&$("#lblJobTitleEmployerValue03").trigger("change"),$("#ltrEmpInfoJobTitle03").show(),$("#lblJobTitleEmployerValue03").show())))}}});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkRegEmployedInStateCheckBox, div[id^='wfmClaimantRegistrationWizard'] #chkRegEmployedInOtherStateCheckBox, div[id^='wfmClaimantRegistrationWizard'] #chkRegEmployedAsMilitaryCheckBox, div[id^='wfmClaimantRegistrationWizard'] #chkRegEmployedAsFederalCheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegEmployedInStateCheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegEmployedInOtherStateCheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegEmployedAsMilitaryCheckBox, div[id^='wfmPUAClaimantRegistrationWizard'] #chkRegEmployedAsFederalCheckBox",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find(this).is(":checked")&&n.find("#chkRegNotWorkedLastYearCheckBox").is(":checked")&&n.find("#chkRegNotWorkedLastYearCheckBox")!==null&&n.find("#chkRegNotWorkedLastYearCheckBox")!=undefined&&n.find("#chkRegNotWorkedLastYearCheckBox").trigger("click")});$(document).on("keypress",".OnlyAlpha",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t>64&&t<91||t>96&&t<123||t<=13?!0:(i=String.fromCharCode(t),r=/[a-zA-Z]/,r.test(i))});$(document).on("keypress",".OnlyAlphaNumericSingleQuote",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t>64&&t<91||t>96&&t<123||t<=13?!0:(i=String.fromCharCode(t),r=/[a-zA-Z0-9\s-'\.]/,r.test(i))});$(document).on("keypress",".OnlyAlphaNumeric",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t<=13?!0:(i=String.fromCharCode(t),r=/[a-zA-Z0-9]/,r.test(i))});$(document).on("keypress",".OnlyForAlphaNumeric",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t<=13?!0:(i=String.fromCharCode(t),r=/[a-zA-Z0-9\s]/,r.test(i))});$(document).on("keypress,paste",".AlphanumericAndSpecialChar",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t<=13?!0:(i=String.fromCharCode(t),r=/[a-zA-Z0-9\s-'./#]/,r.test(i))});$(document).on("keypress",".AlphanumericWithHypen",function(n){var u=window.event||n,t=n.which?n.which:u.keyCode,i,r;return t<=13?!0:(i=String.fromCharCode(t),r=/[a-zA-Z0-9\s-']/,r.test(i))});$(document).on("change","div[id^='wfmClaimReopenWizard'] #ChkCurrentWeekOne, div[id^='wfmClaimExtensionWizard'] #ChkCurrentWeekOne, div[id^='wfmDUAClaimApplicationWizard'] #ChkCurrentWeekOne,div[id^='wfmPUAClaimApplicationWizard'] #ChkCurrentWeekOne, div[id^='wfmApplyTRABenefitsWizard'] #ChkCurrentWeekOne, div[id^='wfmApplyRTAABenefitsWizard'] #ChkCurrentWeekOne, div[id^='wfmClaimantRegistrationWizard'] #ChkCurrentWeekOne, div[id^='wfmPUAClaimantRegistrationWizard'] #ChkCurrentWeekOne, div[id^='wfmPUAClaimExtensionWizard'] #ChkCurrentWeekOne",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ChkCurrentWeekOne").is(":checked")?(n.find("#ddlBackdateReeason").prop("disabled",!0),n.find("#ddlBackdateReeason")!==null&&n.find("#ddlBackdateReeason")!=undefined&&n.find("#ddlBackdateReeason").val("").trigger("change"),n.find("#txtBybDate").prop("disabled",!0),n.find("#txtBybDate").val(""),n.find("#txtBybDate").datepicker("disable"),n.find("#txtNotes").prop("disabled",!0),n.find("#txtNotes").val("")):(n.find("#ddlBackdateReeason").prop("disabled",!1),n.find("#txtBybDate").prop("disabled",!1),n.find("#txtBybDate").datepicker("enable"),n.find("#txtNotes").prop("disabled",!1))});$(document).on("change","div[id^='wfmReopenPUAClaimWizard'] #ChkCurrentWeekOne, div[id^='wfmClaimExtensionWizard'] #ChkCurrentWeekOne, div[id^='wfmDUAClaimApplicationWizard'] #ChkCurrentWeekOne,div[id^='wfmPUAClaimApplicationWizard'] #ChkCurrentWeekOne, div[id^='wfmApplyTRABenefitsWizard'] #ChkCurrentWeekOne, div[id^='wfmApplyRTAABenefitsWizard'] #ChkCurrentWeekOne, div[id^='wfmClaimantRegistrationWizard'] #ChkCurrentWeekOne, div[id^='wfmPUAClaimantRegistrationWizard'] #ChkCurrentWeekOne, div[id^='wfmPUAClaimExtensionWizard'] #ChkCurrentWeekOne",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#ChkCurrentWeekOne").is(":checked")?(n.find("#ddlBackdateReeason").prop("disabled",!0),n.find("#ddlBackdateReeason")!==null&&n.find("#ddlBackdateReeason")!=undefined&&n.find("#ddlBackdateReeason").val("").trigger("change"),n.find("#txtBybDate").prop("disabled",!0),n.find("#txtBybDate").val(""),n.find("#txtBybDate").datepicker("disable"),n.find("#txtNotes").prop("disabled",!0),n.find("#txtNotes").val("")):(n.find("#ddlBackdateReeason").prop("disabled",!1),n.find("#txtBybDate").prop("disabled",!1),n.find("#txtBybDate").datepicker("enable"),n.find("#txtNotes").prop("disabled",!1))});$(document).on("change","div[id^='wfmClaimSTCWeeklyBenefitWizard'] #rblAgreeForWorkHours",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#rblAgreeForWorkHours input:checked"),i;if(t.length>0)if(i=t.val(),i=="Y"){var r=n.find("#lblEmpOfferedHoursWSP").text()==""?"0.00":n.find("#lblEmpOfferedHoursWSP").text(),u=n.find("#lblEmpActualHoursWSP").text()==""?"0.00":n.find("#lblEmpActualHoursWSP").text(),f=n.find("#lblEmpPaidLeaveHoursWSP").text()==""?"0.00":n.find("#lblEmpPaidLeaveHoursWSP").text(),e=n.find("#lblEmpUnpaidLeaveHoursWSP").text()==""?"0.00":n.find("#lblEmpUnpaidLeaveHoursWSP").text(),o=n.find("#lblEmpReasonDescriptionWSP").text();n.find("#txtClmntOfferedHoursWSP")!==null&&n.find("#txtClmntOfferedHoursWSP")!=undefined&&n.find("#txtClmntOfferedHoursWSP").val(r).trigger("blur");n.find("#txtClmntActualHoursWSP")!==null&&n.find("#txtClmntActualHoursWSP")!=undefined&&n.find("#txtClmntActualHoursWSP").val(u).trigger("blur");n.find("#txtClmntPaidLeaveHoursWSP")!==null&&n.find("#txtClmntPaidLeaveHoursWSP")!=undefined&&n.find("#txtClmntPaidLeaveHoursWSP").val(f).trigger("blur");n.find("#txtClmntUnpaidLeaveHoursWSP")!==null&&n.find("#txtClmntUnpaidLeaveHoursWSP")!=undefined&&n.find("#txtClmntUnpaidLeaveHoursWSP").val(e).trigger("blur");n.find("#ddlClmntReasonValueWSP").val(n.find("#ddlClmntReasonValueWSP option").filter(function(){return this.text==o}).val());n.find("#ddlClmntReasonValueWSP")!==null&&n.find("#ddlClmntReasonValueWSP")!=undefined&&n.find("#ddlClmntReasonValueWSP").trigger("change");n.find("#txtClmntOfferedHoursWSP").attr("readonly","readonly");n.find("#txtClmntActualHoursWSP").attr("readonly","readonly");n.find("#txtClmntPaidLeaveHoursWSP").attr("readonly","readonly");n.find("#txtClmntUnpaidLeaveHoursWSP").attr("readonly","readonly");n.find("#ddlClmntReasonValueWSP").attr("disabled","true")}else n.find("#txtClmntOfferedHoursWSP")!==null&&n.find("#txtClmntOfferedHoursWSP")!=undefined&&n.find("#txtClmntOfferedHoursWSP").val("0.00").trigger("blur"),n.find("#txtClmntActualHoursWSP")!==null&&n.find("#txtClmntActualHoursWSP")!=undefined&&n.find("#txtClmntActualHoursWSP").val("0.00").trigger("blur"),n.find("#txtClmntPaidLeaveHoursWSP")!==null&&n.find("#txtClmntPaidLeaveHoursWSP")!=undefined&&n.find("#txtClmntPaidLeaveHoursWSP").val("0.00").trigger("blur"),n.find("#txtClmntUnpaidLeaveHoursWSP")!==null&&n.find("#txtClmntUnpaidLeaveHoursWSP")!=undefined&&n.find("#txtClmntUnpaidLeaveHoursWSP").val("0.00").trigger("blur"),n.find("#ddlClmntReasonValueWSP")!==null&&n.find("#ddlClmntReasonValueWSP")!=undefined&&n.find("#ddlClmntReasonValueWSP").trigger("change"),n.find("#txtClmntOfferedHoursWSP").removeAttr("readonly"),n.find("#txtClmntActualHoursWSP").removeAttr("readonly"),n.find("#txtClmntPaidLeaveHoursWSP").removeAttr("readonly"),n.find("#txtClmntUnpaidLeaveHoursWSP").removeAttr("readonly"),n.find("#ddlClmntReasonValueWSP").removeAttr("disabled")});$(document).on("click","#btnUpdateDependentInfo",function(){var n,t,i;(ns.viewModel.currentForm=="wfmClaimantRegistrationWizard"||ns.viewModel.currentForm=="wfmPUAClaimantRegistrationWizard")&&(n=$("#wizMain").data("smartWizard"),n!=null&&(t=$(n.elmStepContainer.find(".content")[n.curStepIdx])[0].id,t!==undefined&&t!==null&&t=="wzsDependentInformation"&&$("#GlobalMessageDiv")!==undefined&&(i={},i[0]=43797,$("#GlobalMessageDiv").text(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")))))});$(document).on("click","#btnDeleteDependent",function(){var n,t,i;(ns.viewModel.currentForm=="wfmClaimantRegistrationWizard"||ns.viewModel.currentForm=="wfmPUAClaimantRegistrationWizard")&&(n=$("#wizMain").data("smartWizard"),n!=null&&(t=$(n.elmStepContainer.find(".content")[n.curStepIdx])[0].id,t!==undefined&&t!==null&&t=="wzsDependentInformation"&&$("#GlobalMessageDiv")!==undefined&&(i={},i[0]=43797,$("#GlobalMessageDiv").text(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")))))});$(document).on("change","div[id^='wfmClaimEmploymentHistoryWizard'] .PaymentValidations",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find(this).val(),i=parseInt(t.substring(1,t.length));switch(n.find(this).attr("id")){case"txtMonthlyGrossAmt":lstrControlSelectors="#capEffectiveDate,#capContributeToPensionInd";break;case"txtGrossAmt":lstrControlSelectors="#capGrossWeeklyWageAmt,#capContributeLumpSumPensionInd";break;case"txtWagesGrossAmt":lstrControlSelectors="#capGrossWeeklyProfitWageAmt,#capContributeProfitSharingAmt";break;case"txtBonusGrossAmt":lstrControlSelectors="#capBonusPaymentPaidDate";break;case"txtSeveranceGrossAmt":lstrControlSelectors="#capGrossWeeklySvrnceWageAmt";break;case"txtVacationGrossAmt":lstrControlSelectors="#capVacationFromDate,#capVacationToDate";break;case"txtHolidayFirstAmt":lstrControlSelectors="#capHolidayDate";break;case"txtHoliday2GrossAmount":lstrControlSelectors="#capSecondHolidayDate";break;case"txtGrossWeeklyWage":lstrControlSelectors="#capLumpSumAmt";break;case"txtProfitGrossWeeklyWage":lstrControlSelectors="#capProfitSharingAmt";break;case"txtSeveranceGrossWeeklyWage":lstrControlSelectors="#capSeverancePayAmt"}i>0?n.find(lstrControlSelectors).removeClass("HideControl"):n.find(lstrControlSelectors).addClass("HideControl")});$(document).on("change","div[id^='wfmClaimEmploymentHistoryWizard'] .PaymentAmtValidations",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find(this).val(),i=Date.parse(t);switch(n.find(this).attr("id")){case"txtEffectiveDate":lstrControlSelectors="#capMothlyAmt";break;case"txtDatePaid":lstrControlSelectors="#capBonusOrSpecialAmt";break;case"txtVacationDateFrom":case"txtVacationDateTo":lstrControlSelectors="#capVacationPayAmt";break;case"txtHolidayPay1Date":lstrControlSelectors="#capHolidayPayAmt";break;case"txtSecondHolidaydate":lstrControlSelectors="#capSecondHolidayPayAmt"}i?n.find(lstrControlSelectors).removeClass("HideControl"):n.find(lstrControlSelectors).addClass("HideControl")});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkSameAsBusinessAddress",function(n){var t=nsUserFunctions.GetActiveDomElement(this);nsUserFunctions.fnEmployerAddress(n,t)});$(document).on("change","div[id^='wfmClaimantAddressMaintenance'] #txtAddress1,div[id^='wfmClaimantAddressMaintenance'] #txtAddress2,div[id^='wfmClaimantAddressMaintenance'] #txtCity,div[id^='wfmClaimantAddressMaintenance'] #ddlStateCodeValue,div[id^='wfmClaimantAddressMaintenance'] #txtZipCode,div[id^='wfmClaimantAddressMaintenance'] #txtZipExtension,div[id^='wfmClaimantAddressMaintenance'] #txtZip,div[id^='wfmClaimantAddressMaintenance'] #txtZipCanada",function(){var n=nsUserFunctions.GetActiveDomElement(this);n.find("#lblClaAddID").text()!=""&&n.find("#lblClaAddID").text()>0&&n.find("#lblInternaluser").text()!=""&&n.find("#lblInternaluser").text()=="I"&&(n.find("#txtAddress1").val()==n.find("#lblAddressOneOld").text()&&n.find("#txtAddress2").val()==n.find("#lblAddressTwoOld").text()&&n.find("#txtCity").val()==n.find("#lblCityOld").text()&&n.find("#ddlStateCodeValue").val()==n.find("#lblStateOld").text()&&(n.find("#lblZipUSA").text()==""||n.find("#lblZipUSA").text()==n.find("#txtZipCode").val())&&(n.find("#lblZipOld").text()==""||n.find("#lblZipOld").text()==n.find("#txtZip").val())&&(n.find("#lblZipCanada").text()==""||n.find("#lblZipCanada").text()==n.find("#txtZipCanada").val())&&(n.find("#lblZipUSA").text()==""||n.find("#lblZipExtension").text()==""||!n.find("#lblZipExtension").text()!=n.find("#txtZipExtension").val())?n.find("#lblAddUpdateSource").hide():n.find("#lblAddUpdateSource").show())})},HideShowCounty:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i;t.find("#ddlCountyCodeValueGI").val()==""||(StateAndCountySelectedValue.SelectedCounty=t.find("#ddlCountyCodeValueGI").val());!t.find("#ddlGenInState").val()==""&&(StateAndCountySelectedValue.SelectedState=t.find("#ddlGenInState").val());t.find("#chkGICheckBox").is(":checked")?(t.find("#ddlState").val()==="MD"?(t.find("#ltrLiteral76,#lblMACountyDesc").show(),t.find("#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq").hide()):t.find("#ltrLiteral76,#lblMACountyDesc,#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq").hide(),(n.context.activeDivID.indexOf("wfmClaimReopenWizard")===0||n.context.activeDivID.indexOf("wfmReopenPUAClaimWizard")===0)&&(i=$("#chkGICheckBox").is(":checked"),i&&($("#ddlGenInState").hide(),$("#txtTextZipForUSA").hide(),$("#txtTextUSAExtension").hide(),$("#lblHYPHEN1").hide(),$("#capLabelZipreq").hide(),$("#countyReq").hide(),$("#txtOtherStateGeneral").hide(),$("#txtTextZipForOtherCountries").hide()))):t.find("#ddlGenInState").val()==="MD"?(t.find("#ltrLiteral76").show(),t.find("#countyReq").show(),StateAndCountySelectedValue.SelectedCounty!=""&&t.find("#ddlCountyCodeValueGI").val(StateAndCountySelectedValue.SelectedCounty),t.find("#chkIDoNotHaveResidentialAddres").is(":checked")?(t.find("#countyReq").show(),t.find("#ltrLiteral76").show()):t.find("#lblCountyStr").hide(),t.find("#ddlCountyCodeValueGI,#lblReqCountyGen").show(),t.find("#lblMACountyDesc").hide()):(t.find("#ltrLiteral76,#lblMACountyDesc,#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq").hide(),t.find("#ddlCountyCodeValueGI").val()!==undefined&&t.find("#ddlCountyCodeValueGI")!=""&&(t.find("#ddlCountyCodeValueGI").val("").trigger("change"),StateAndCountySelectedValue.SelectedCounty=""))},HideShowCountyForPrograms:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#ddlCountyCodeValueGI").val()==""||(StateAndCountySelectedValue.SelectedCounty=t.find("#ddlCountyCodeValueGI").val());!t.find("#ddlGenInState").val()==""&&(StateAndCountySelectedValue.SelectedState=t.find("#ddlGenInState").val());t.find("#ddlCountryReOpen").val()==null||t.find("#ddlCountryReOpen").val()!="1"||t.find("#ddlStateReOpen").val()=="MD"||t.find("#ddlStateReOpen").val()==null||t.find("#ddlStateReOpen").val()==""||t.find("#chkIDoNotHaveResidentialAddres").is(":checked")?t.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&t.find("#ddlGenInCountry").val()!=null&&t.find("#ddlGenInCountry").val()=="1"&&t.find("#ddlGenInState").val()!="MD"&&t.find("#ddlGenInState").val()!=null?t.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():t.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide():t.find("#pnlCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show();t.find("#chkGICheckBox").is(":checked")?t.find("#ddlStateReOpen").val()==="MD"?(t.find("#ltrLiteral76").show(),t.find("#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq,#ddlGenInState,#capLabelZipreq,#txtTextZipForUSA,#txtTextUSAExtension,#txtTextCanada,#txtOtherStateGeneral,#txtTextZipForOtherCountries").hide()):t.find("#ltrLiteral76,#lblMACountyDesc,#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq,#ddlGenInState,#capLabelZipreq,#txtTextZipForUSA,#txtTextUSAExtension,#txtTextCanada,#txtOtherStateGeneral,#txtTextZipForOtherCountries").hide():t.find("#ddlGenInState").val()==="MD"?(t.find("#ltrLiteral76").show(),t.find("#countyReq").show(),StateAndCountySelectedValue.SelectedCounty!=""&&t.find("#ddlCountyCodeValueGI").val(StateAndCountySelectedValue.SelectedCounty),t.find("#chkIDoNotHaveResidentialAddres").is(":checked")?(t.find("#countyReq").show(),t.find("#ltrLiteral76").show()):t.find("#lblCountyStr").hide(),t.find("#ddlCountyCodeValueGI,#lblReqCountyGen").show(),t.find("#lblMACountyDesc").hide()):(t.find("#ltrLiteral76,#lblMACountyDesc,#ddlCountyCodeValueGI,#lblReqCountyGen,#countyReq").hide(),t.find("#ddlCountyCodeValueGI").val()!==undefined&&t.find("#ddlCountyCodeValueGI")!=""&&(t.find("#ddlCountyCodeValueGI").val("").trigger("change"),StateAndCountySelectedValue.SelectedCounty=""))},HideShowCountyOnInitialQuestion:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#ddlCountry").val()!=null&&t.find("#ddlCountry").val()=="1"&&t.find("#ddlState").val()!=null&&t.find("#ddlState").val()=="MD"?t.find("#ltrCountyIQ,#lblastCountyIQ,#ddlCountyValue1").show():t.find("#ltrCountyIQ,#lblastCountyIQ,#ddlCountyValue1").hide()},ShowHideTelephoneNumberOnGeneralInformation:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#chkDontHavePhNo").is(":checked")?(t.find("#ltrPhoneNumberTitle,#lblPhoneNumberRequired").hide(),t.find("#txtPhoneNumber")!==null&&t.find("#txtPhoneNumber")!=undefined&&t.find("#txtPhoneNumber").val("").trigger("change"),t.find("#txtPhoneNumber,#ltrPhoneNote,#lblPhnStar").hide(),t.find("#ltrPhoneInfo").show()):(t.find("#ltrPhoneNumberTitle,#lblPhoneNumberRequired,#txtPhoneNumber,#ltrPhoneNote,#lblPhnStar").show(),t.find("#ltrPhoneInfo").hide())},ShowHideCountyStar:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#chkIDoNotHaveResidentialAddres").is(":checked")?t.find("#lblCountyStr").show():t.find("#lblCountyStr").hide()},ShowHideThreeFourNumber:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i,r;t.find("#chkIDoNotHaveResidentialAddres").is(":checked")?(i=t.find("#chkRegEmployedAsMilitaryCheckBox").is(":checked"),r=t.find("#rblHomeState_0").is(":checked"),i==!0&&r==!0?(t.find("#ltrNumberFour").show(),t.find("#ltrNumberThree").hide()):(t.find("#ltrNumberThree").show(),t.find("#ltrNumberFour").hide())):t.find("#ltrNumberThree,#ltrNumberFour").hide()},ClearMilitaryText:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#Militaryfiles").val("")},ShowDependentWarningMsg:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),r=t.find("#lblDependentMsg").text(),i;r!=undefined&&r=="true"&&(i={},i[0]=4213,alert(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")))},ShowHideSelfEmpPanel:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i=$("#chkRegSelfEmployed").is(":checked");i?$("#pnlSelfEmp").removeClass("HideControl"):$("#pnlSelfEmp").addClass("HideControl")},fnHideShowEmailAddressReopen:function(n){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#ddlCorrPreferenceReopen").val()=="MAIL"?t.find("#txtEmailIDReopen").val()==null||t.find("#txtEmailIDReopen").val()==""?(lstrShowControls="#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd,#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen",nsUserFunctions.showHideControlsByActiveForm(t,lstrShowControls,!1),t.find("#txtEmailAdd").val(t.find("#lblEmailAddPref").text()),t.find("#txtConfirmEmailIDReopen").val(t.find("#lblConfirmEmailPref").text())):t.find("#txtEmailIDReopen").val()!=null&&t.find("#txtEmailIDReopen").val()!=""&&(lstrHideControl="#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd",nsUserFunctions.showHideControlsByActiveForm(t,lstrHideControl,!0),lstrShowControls="#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen",nsUserFunctions.showHideControlsByActiveForm(t,lstrShowControls,!1),t.find("#txtConfirmEmailIDReopen").val($("#lblConfirmEmailPref").text())):(lstrHideControl="#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd,#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen",nsUserFunctions.showHideControlsByActiveForm(t,lstrHideControl,!0))},fnHideShowMailingAddress:function(n){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),f=t.find("#chkGICheckBox").is(":checked"),r,u,i;f?(r="#ddlGenInCountry,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#txtOtherStateGeneral,#txtTextZipForUSA,#lblHYPHEN1,#txtTextCanada,#txtTextUSAExtension,#txtTextZipForOtherCountries,#txtTextZipForUSA,#txtTextUSAExtension,#ddlCountyCodeValueGI,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq,#countyReq,#lblHYPHEN1",nsUserFunctions.showHideControlsByActiveForm(t,r,!0),u="#lblGenInCountry,#lblGenInAddress,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblMACountyDesc,#lblOtherState,#OtherState,#lblOtherStateGen",nsUserFunctions.showHideControlsByActiveForm(t,u,!1)):(r="#lblGenInCountry,#lblGenInAddress,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblMACountyDesc,#lblHYPHEN1,#lblOtherState,#OtherState,#lblOtherStateGen",nsUserFunctions.showHideControlsByActiveForm(t,r,!0),u="#ddlGenInCountry,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState,#ddlCountyCodeValueGI,#lblReqCountryGen,#lblLabel95,#lblLabel108,#lblReqStateGen,#capLabelZipreq,#countyReq",nsUserFunctions.showHideControlsByActiveForm(t,u,!1),i=t.find("#ddlGenInCountry").val(),i!=null&&i=="38"?(t.find("#txtTextCanada").show(),t.find("#capLabelZipreq").show(),t.find("#ddlGenInState").show(),t.find("#txtGenInZip").hide(),t.find("#lblGenInZip").hide(),t.find("#txtGenZipExtension").hide(),t.find("#lblHyphenGen").hide(),t.find("#txtOtherStateGeneral").hide(),t.find("#txtTextZipForOtherCountries").hide(),t.find("##countyReq").hide()):i!=null&&i=="1"?(t.find("#txtTextCanada").hide(),t.find("#txtTextZipForUSA").show(),t.find("#txtTextUSAExtension").show(),t.find("#lblHYPHEN1").show(),t.find("#lblGenInZip").hide(),t.find("#ddlGenInState").show(),t.find("#ddlDropDownCounty").show(),t.find("#capLabelZipreq").show(),t.find("#txtOtherStateGeneral").hide(),t.find("#txtTextZipForOtherCountries").hide()):(t.find("#txtOtherStateGeneral").show(),t.find("#txtTextZipForOtherCountries").show(),t.find("#ddlGenInState").hide(),t.find("#capLabelZipreq").hide(),t.find("#lblGenInZip").hide(),t.find("#txtTextZipForUSA").hide(),t.find("#txtTextUSAExtension").hide()))},fnDoNotHavePhNoforTRA:function(n){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#chkCheckBox7").is(":checked")?t.find("#ltrLiteralPhonenumber,#txtPhoneNum").hide():t.find("#ltrLiteralPhonenumber,#txtPhoneNum").show()},fnBackDate:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#ChkCurrentWeekOne").is(":checked")?(t.find("#ddlBackdateReeason").prop("disabled",!0),t.find("#ddlBackdateReeason")!==null&&t.find("#ddlBackdateReeason")!=undefined&&t.find("#ddlBackdateReeason").val("").trigger("change"),t.find("#txtBybDate").prop("disabled",!0),t.find("#txtBybDate").val(""),t.find("#txtBybDate").datepicker("disable"),t.find("#txtNotes").prop("disabled",!0),t.find("#txtNotes").val("")):(t.find("#ddlBackdateReeason").prop("disabled",!1),t.find("#txtBybDate").prop("disabled",!1),t.find("#txtBybDate").datepicker("enable"),t.find("#txtNotes").prop("disabled",!1))},fnEmployerAddress:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i=t.find("#chkSameAsBusinessAddress").is(":checked"),r=t.find("#lblEmployerTypeValue");i!=undefined&&i?(t.find("#lblSameAsBusinessAdd1,#lblSameAsBusinessAdd2,#lblSameAsBusinessCity,#lblSameAsBusinessState,#lblSameAsBusinessZip,#lblSameAsBusinessCountry").show(),t.find("#txtTextBox29,#txtTextBox30,#txtTextBox31,#ddlLabel64,#txtTextBox32,#ddlDropDownList,#lblAdd1Require,#lblCityRequire,#lblStateRequire,#lblPhoneRequire,#lblLabel57").hide()):(t.find("#lblSameAsBusinessAdd1,#lblSameAsBusinessAdd2,#lblSameAsBusinessCity,#lblSameAsBusinessState,#lblSameAsBusinessZip,#lblSameAsBusinessCountry").hide(),t.find("#txtTextBox29,#txtTextBox30,#txtTextBox31,#ddlLabel64,#txtTextBox32,#ddlDropDownList,#lblAdd1Require, #lblCityRequire, #lblStateRequire, #lblPhoneRequire, #lblLabel57").show())},fnPaymentFrequency:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#ddlPaymentPeriodValue").prop("disabled",!0)},fnHideLateAppeal:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),r=document.getElementById("txtAppealFileDate");if(r.style.display=="none")t.find("#txtLateAppealChange").val()=="false"?(t.find("#pnlReasonForUntimeliness").hide(),t.find("#txtLateAppealChange").val(!1)):(t.find("#pnlReasonForUntimeliness").show(),t.find("#txtLateAppealChange").val(!0));else{var u=new Date(t.find("#lblCurrentDate").text()),i=new Date(t.find("#txtAppealFileDate").val()),f=new Date(t.find("#lblApFiDateChange").text());u!=i&&(i>f?(t.find("#pnlReasonForUntimeliness").show(),t.find("#txtLateAppealChange").val(!0)):(t.find("#pnlReasonForUntimeliness").hide(),t.find("#txtLateAppealChange").val(!1)),t.find("#txtLateAppealChange").val()!=null&&t.find("#txtLateAppealChange").val()!=undefined&&t.find("#txtLateAppealChange").val()!=""&&t.find("#txtLateAppealChange").trigger("change"))}},fnHideHigherLateAppeal:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),r=document.getElementById("txtBoardAppealFiledDate");if(r.style.display=="none")t.find("#txtLateAppealChangeBoard").val()=="false"?(t.find("#pnlReasonForUntimelinessBoard").hide(),t.find("#txtLateAppealChangeBoard").val(!1)):(t.find("#pnlReasonForUntimelinessBoard").show(),t.find("#txtLateAppealChangeBoard").val(!0));else{var u=new Date(t.find("#lblCurrentDateBoard").text()),i=new Date(t.find("#txtBoardAppealFiledDate").val()),f=new Date(t.find("#lblApFiDateChangeBoard").text());u!=i&&(i>f?(t.find("#pnlReasonForUntimelinessBoard").show(),t.find("#txtLateAppealChangeBoard").val(!0)):(t.find("#pnlReasonForUntimelinessBoard").hide(),t.find("#txtLateAppealChangeBoard").val(!1)),t.find("#txtLateAppealChangeBoard")!==null&&t.find("#txtLateAppealChangeBoard")!=undefined&&t.find("#txtLateAppealChangeBoard").trigger("change"))}},fnDownPaymentAmount:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i=t.find("#txtDownpaymentAmt").val();i>"$0.00"?t.find("#capDownPmtDueDate,#lblDownPmtDueDt").show():t.find("#capDownPmtDueDate,#lblDownPmtDueDt").hide()},DoNotHavePhNoforDUA:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#chkDontHavePhNoDUA").is(":checked")?(t.find("#ltrPhoneNumberTitleDUA,#lblPhoneNumberRequiredDUA,#txtPhoneNumberDua,#ltrPhoneNoteDUA").hide(),t.find("#txtPhoneNumberDua").val("")):t.find("#ltrPhoneNumberTitleDUA,#txtPhoneNumberDua,#lblPhoneNumberRequiredDUA,#ltrPhoneNoteDUA").show()},DUAClaimReviewAndEdit:function(n,t){t.find("input[name=cblSelectedEmployer]").each(function(){$(this).attr("disabled","disabled")})},DoNotHavePhNoforRTAABenefit:function(n){var t=nsUserFunctions.GetActiveDomElement(n);t.find("#chkDontHavePhNoRTAA").is(":checked")?(t.find("#ltrPhoneNumberTitleRTAA").hide(),t.find("#lblPhoneNumberRequiredRTAA").hide(),t.find("#txtPhoneNumberRTAA").hide(),t.find("#ltrSecondaryPhoneTitleRTAA").hide(),t.find("#txtSecondaryPhoneNumberRTAA").hide(),t.find("#ltrPhoneNoteRTAA").hide(),t.find("#txtPhoneNumberRTAA")!==null&&t.find("#txtPhoneNumberRTAA")!=undefined&&t.find("#txtPhoneNumberRTAA").val("").trigger("change"),t.find("#txtSecondaryPhoneNumberRTAA")!==null&&t.find("#txtSecondaryPhoneNumberRTAA")!=undefined&&t.find("#txtSecondaryPhoneNumberRTAA").val("").trigger("change")):(t.find("#ltrPhoneNumberTitleRTAA").show(),t.find("#txtPhoneNumberRTAA").show(),t.find("#lblPhoneNumberRequiredRTAA").show(),t.find("#ltrSecondaryPhoneTitleRTAA").show(),t.find("#txtSecondaryPhoneNumberRTAA").show(),t.find("#ltrPhoneNoteRTAA").show())},DoNotHavePhNoforClaimExtension:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#chkDontHavePhNoClaimExten").is(":checked")?(t.find("#ltrPhoneNumberTitleClaimExten,#lblPhoneNumberRequiredClaimExten,#txtPhoneNumberClaimExten,#ltrPhoneNoteClaimExten,#ltrLiteral10").hide(),t.find("#txtPhoneNumberClaimExten").val("")):t.find("#ltrPhoneNumberTitleClaimExten,#txtPhoneNumberClaimExten,#lblPhoneNumberRequiredClaimExten,#ltrPhoneNoteClaimExten,#ltrLiteral10").show()},DoNotHavePhNoforClaimReopen:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#chkDontHavePhNo").is(":checked")?(t.find("#ltrPhoneNumberTitle,#lblPhoneNumberRequired,#txtPhoneNumber,#ltrPhoneNote").hide(),t.find("#txtPhoneNumber").val("")):t.find("#ltrPhoneNumberTitle,#txtPhoneNumber,#lblPhoneNumberRequired,#ltrPhoneNote").show()},EmployeredInStateCheckBoxAndDoNotHaveResidentialAddres:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("#ddlCountry").val()!=null&&t.find("#ddlCountry").val()=="1"&&t.find("#ddlState").val()!="MD"&&t.find("#ddlState").val()!=null?(t.find("#chkRegEmployedInStateCheckBox").is(":checked")&&!t.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&t.find("#pnlCommuteInfo").show(),t.find("#ltrCountyIQ,#lblastCountyIQ,#ddlCountyValue1").hide()):t.find("#ddlCountry").val()!=null&&t.find("#ddlCountry").val()=="1"&&t.find("#ddlState").val()=="MD"&&t.find("#ddlState").val()!=null?(t.find("#pnlCommuteInfo").hide(),t.find("#ltrCountyIQ,#lblastCountyIQ,#ddlCountyValue1").show(),t.find("#ddlCountyValue1").val(t.find("#lblInitCounty").text())):t.find("#pnlCommuteInfo").hide()},HideShowMailingDetailsOnGeneralInformation:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),r=t.find("#chkGICheckBox").is(":checked"),i;r?(t.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry").show(),t.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInState, #ddlGenInStateOld, #txtGenInZip,#txtGenZipExtension,#txtGenInAlphnumericZip,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr,#txtOtherStateGeneral,#capLabelZipreq,#ddlDropDownCounty,#countyReq, #txtTextZipForOtherCountries, #txtTextUSAExtension, #lblHYPHEN1, #txtTextCanada, #txtOtherStateGeneral, #txtTextZipForUSA").hide()):(i=t.find("#ddlGenInCountry").val(),i!=null&&i=="38"?(t.find("#txtTextCanada").show(),t.find("#capLabelZipreq").show(),t.find("#ddlGenInState").show(),t.find("#txtGenInZip").hide(),t.find("#lblGenInZip").hide(),t.find("#txtGenZipExtension").hide(),t.find("##lblHYPHEN1").hide(),t.find("#txtOtherStateGeneral").hide(),t.find("#txtTextZipForOtherCountries").hide(),t.find("#capZipCodeReqForOther").hide(),t.find("##countyReq").hide()):i!=null&&i!="38"&&i!="1"?(t.find("#txtOtherStateGeneral").show(),t.find("#txtTextZipForOtherCountries").show(),t.find("#ddlGenInState").hide(),t.find("#capLabelZipreq").hide(),t.find("#lblGenInZip").hide(),t.find("##lblHYPHEN1").hide(),t.find("#txtTextZipForUSA").hide(),t.find("#txtTextUSAExtension").hide()):(t.find("#txtTextCanada").hide(),t.find("#txtTextZipForUSA").show(),t.find("#txtTextUSAExtension").show(),t.find("#lblHYPHEN1").show(),t.find("#lblGenInZip").hide(),t.find("#ddlGenInState").show(),t.find("#ddlDropDownCounty").show(),t.find("#capLabelZipreq").show(),t.find("#txtOtherStateGeneral").hide(),t.find("#txtTextZipForOtherCountries").hide(),t.find("#capZipCodeReqForOther").hide()),t.find("#lblLabel95,#lblLabel108,#lblLabelzipstr,#lblReqStateGen,#lblReqCountryGen,#txtGenInAddress,#txtGenInAddresslinetwo,#txtGenInCity,#ddlGenInCountry,#btnValidateGenInfo,#lblCountyStr").show(),t.find("#lblGenInAttention,#lblUSFullAddress,#lblGenInAddress,#lblUSFullAddress2,#lblGenInAddress2,#lblGenInCity,#lblGenInState,#lblGenInZip,#lblGenInZipExt,#lblMACountyDesc,#lblGenInCountry").hide())},HideShowCorrPreferenceOnGeneralInformation:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i,r;t.find("#chkIDoNotHaveResidentialAddres").is(":checked")&&t.find("#ltrLiteral120,#chkGICheckBox").hide();t.find("#ddlCorrPreference").val()=="MAIL"?t.find("#lblStaffPortal").text()!=""&&t.find("#lblStaffPortal").text()=="true"||t.find("#lblStaffSubseqPortal").text()!=""&&t.find("#lblStaffSubseqPortal").text()=="true"?t.find("#txtEmailID").val()==null||t.find("#txtEmailID").val()==""?(r="#txtEmailForCorr,#txtConfirmEmailID,#lblReqEmailAddress,#lblConfirmEmail,#lblEmailAddress,#lblConfirmEmailID",nsUserFunctions.showHideControlsByActiveForm(t,r,!1)):t.find("#txtEmailID").val()!=null&&t.find("#txtEmailID").val()!=""&&(i="#txtEmailForCorr,#lblReqEmailAddress,#lblEmailAddress",nsUserFunctions.showHideControlsByActiveForm(t,i,!0),r="#txtConfirmEmailID,#lblConfirmEmail,#lblConfirmEmailID",nsUserFunctions.showHideControlsByActiveForm(t,r,!1)):(i="#txtEmailForCorr,#lblReqEmailAddress,#lblEmailAddress",nsUserFunctions.showHideControlsByActiveForm(t,i,!0),r="#txtConfirmEmailID,#lblConfirmEmail,#lblConfirmEmailID",nsUserFunctions.showHideControlsByActiveForm(t,r,!1),t.find("#txtConfirmEmailID").val($("#lblConfirmEmailPref").text())):(i="#txtEmailForCorr,#txtConfirmEmailID,#lblReqEmailAddress,#lblConfirmEmail,#lblEmailAddress,#lblConfirmEmailID",nsUserFunctions.showHideControlsByActiveForm(t,i,!0))},HideShowEmailOnGeneralInfo:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i,r;t.find("#ddlCorrPreference").val()=="MAIL"?t.find("#lblStaffPortal").text()!=""&&t.find("#lblStaffPortal").text()=="true"||t.find("#lblStaffSubseqPortal").text()!=""&&t.find("#lblStaffSubseqPortal").text()=="true"?t.find("#txtEmailID").val()==null||t.find("#txtEmailID").val()==""?(r="#txtEmailForCorr,#txtConfirmEmailID,#lblReqEmailAddress,#lblConfirmEmail,#lblEmailAddress,#lblConfirmEmailID",nsUserFunctions.showHideControlsByActiveForm(t,r,!1),t.find("#txtEmailID")!==null&&t.find("#txtEmailID")!=undefined&&t.find("#txtEmailID").val("").trigger("change")):t.find("#txtEmailID").val()!=null&&t.find("#txtEmailID").val()!=""&&(i="#txtEmailForCorr,#lblReqEmailAddress,#lblEmailAddress",nsUserFunctions.showHideControlsByActiveForm(t,i,!0),r="#txtConfirmEmailID,#lblConfirmEmail,#lblConfirmEmailID",nsUserFunctions.showHideControlsByActiveForm(t,r,!1),t.find("#txtEmailForCorr")!==null&&t.find("#txtEmailForCorr")!=undefined&&t.find("#txtEmailForCorr").val("").trigger("change")):(i="#txtEmailForCorr,#lblReqEmailAddress,#lblEmailAddress",nsUserFunctions.showHideControlsByActiveForm(t,i,!0)):(i="#txtEmailForCorr,#txtConfirmEmailID,#lblReqEmailAddress,#lblConfirmEmail,#lblEmailAddress,#lblConfirmEmailID",nsUserFunctions.showHideControlsByActiveForm(t,i,!0),t.find("#txtEmailForCorr")!==null&&t.find("#txtEmailForCorr")!=undefined&&t.find("#txtEmailForCorr").val("").trigger("change"),t.find("#txtConfirmEmailID")!==null&&t.find("#txtConfirmEmailID")!=undefined&&t.find("#txtConfirmEmailID").val("").trigger("change"))},HideShowEmailOnGeneralInfoReopen:function(n,t){var t=t!=undefined?t:n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i,r;t.find("#lblIsStaffUser").text()!=""&&(t.find("#lblIsStaffUser").text()==!0||t.find("#lblIsStaffUser").text()=="true")?t.find("#ddlCorrPreferenceReopen").val()=="MAIL"?t.find("#txtEmailIDReopen").val()==null||t.find("#txtEmailIDReopen").val()==""?(r="#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd,#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen",nsUserFunctions.showHideControlsByActiveForm(t,r,!1),t.find("#txtEmailIDReopen").val("").trigger("change")):t.find("#txtEmailIDReopen").val()!=null&&t.find("#txtEmailIDReopen").val()!=""&&(i="#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd",nsUserFunctions.showHideControlsByActiveForm(t,i,!0),r="#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen",nsUserFunctions.showHideControlsByActiveForm(t,r,!1),t.find("#txtEmailAdd").val("").trigger("change")):(i="#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen,#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd",nsUserFunctions.showHideControlsByActiveForm(t,i,!0),t.find("#txtEmailForCorr")!==null&&t.find("#txtEmailForCorr")!=undefined&&t.find("#txtEmailForCorr").val("").trigger("change"),t.find("#txtConfirmEmailIDReopen")!==null&&t.find("#txtConfirmEmailIDReopen")!=undefined&&t.find("#txtConfirmEmailIDReopen").val("").trigger("change")):t.find("#ddlCorrPreferenceReopen").val()=="MAIL"?(r="#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen",nsUserFunctions.showHideControlsByActiveForm(t,r,!1),i="#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd",nsUserFunctions.showHideControlsByActiveForm(t,i,!0)):(i="#lblConfirmEmailIDReopen,#lblRequiredConfirmEmailReopen,#txtConfirmEmailIDReopen,#lblEmailAdd,#lblEmailAddReq,#txtEmailAdd",nsUserFunctions.showHideControlsByActiveForm(t,i,!0))},ClearReassignTreeNode:function(){var n=ns.tabsTreeView.getNodeDataByDivID("wfmBpmReassignWorkMaintenance0");return n!=undefined&&MVVMGlobal.RemoveForm([],n),!0},DownLoadPirAttachment:function(n){var t;ns.activityStart();var i=nsCommon.GetFormNameFromDivID(n.context.activeDivID),r=n.text,u=ns.SiteName+"/api/Neo/DownLoadAttachment?astrFormID="+i+"&aintPirattachmentId="+r;return $.download(u,n.context,"post"),t={},t[0]=43857,nsCommon.DispalyMessage(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),ns.activityComplete(),!1},OnUcsChangeRefreshChart:function(n){var t=n.context.value;return $("#"+n.context.activeDivID+" #btnRefreshChart").trigger("click"),!0},BeforeAssignUTCToPir:function(n){var t=$("#"+n.context.activeDivID+" #txtUnitTestcase").val();return($.isNumeric(t)||(t="0"),t=parseInt(t),t<=0)?(nsCommon.DispalyError("Unit Testcase ID is not valid.",n.context.activeDivID),!1):!0},BeforeSaveFileForm:function(n){var i=$("#"+n.context.activeDivID+" #txtFileId").val(),t;return $.isNumeric(i)?(i=parseInt(i),i<=0)?(t={},t[0]=43859,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!1):!0:(t={},t[0]=43858,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!1)},BeforeSaveCodeForm:function(n){var i=$("#"+n.context.activeDivID+" #txtCodeID").val(),t;return $.isNumeric(i)?(i=parseInt(i),i<=0)?(t={},t[0]=43861,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!1):!0:(t={},t[0]=43860,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!1)},BeforeSaveMessageForm:function(n){var i=$("#"+n.context.activeDivID+" #lblValuemessage_id").val(),t;return $.isNumeric(i)?(i=parseInt(i),i<=0)?(t={},t[0]=43863,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!1):!0:(t={},t[0]=43862,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!1)},ReloadAlertsAndMessage:function(){var n=$("#ClaimantPortalName").val();return $("#DivAlertsAndMessages").load("/"+n+"/Home/AlertsAndMessage"),localStorage.setItem("MultilingualReload",!0),!0},ReloadPartialView:function(){var n=$("#ClaimantPortalName").val();return $("#DivMyAccount").load("/"+n+"/Home/MyAccountItems"),$("#DivAlertsAndMessages").load("/"+n+"/Home/AlertsAndMessage"),!0},ReloadLeftNavigationMenu:function(){var t=$("#ClaimantPortalName").val(),n;$.ajaxSetup({cache:!1});n=$("#lblLatestClaimIDToLoad").text()==""?0:$("#lblLatestClaimIDToLoad").text();$("#MyaccountPartial").load("/"+t+"/Home/MyAccountPartial?aintClaim_id="+n+"&ablnCalledFromWeeksUpdate=true");nsCommon.InitializeMVVMResources(ns.Language);setTimeout(function(){var n={MenuTemplate:ns.istrMenuTemplate},t;$("#cssmenu").html(n.MenuTemplate);t=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"})},100)},ReloadPreviousClaimPartialView:function(n,t){var i=$("#ClaimantPortalName").val();return $.ajaxSetup({cache:!1}),$("#DivMyAccount").load("/"+i+"/Home/PreviousClaim?aintclaimID="+n+"&aintClaimNumber="+t+""),$.ajaxSetup({cache:!1}),$("#DivAlertsAndMessages").load("/"+i+"/Home/AlertsAndMessage"),nsCommon.InitializeMVVMResources(ns.Language),setTimeout(function(){var n={MenuTemplate:ns.istrMenuTemplate},t;$("#cssmenu").html(n.MenuTemplate);t=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"})},100),!0},ReloadUpdateClaimantName:function(n){var t=$("#"+n.context.activeDivID),r,i,u;if(t.find("#lblRecentClaimId").text()!=null)return r=t.find("#lblRecentClaimId").text(),$("#DivBox").load("/NeosuranceClaimant/Home/ClaimantName"),nsCommon.InitializeMVVMResources(ns.Language),i={MenuTemplate:ns.istrMenuTemplate},$("#cssmenu").html(i.MenuTemplate),u=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"}),!0},ReloadLeftNavigationMenuforDUA:function(n){var t=$("#"+n.context.activeDivID),i,r;t.find("#lblRecentClaimId").text()!=null&&(i=t.find("#lblRecentClaimId").text(),r=$("#ClaimantPortalName").val(),$("#MyaccountPartial").load("/"+r+"/Home/MyAccountPartial?aintClaim_id="+i),nsCommon.InitializeMVVMResources(ns.Language),$($(".Wtxt")[1]).text("Claimant Name: "+t.find("#txtFirstName").val()+(t.find("#txtMI").val()!=null?" "+t.find("#txtMI").val():null)+" "+t.find("#txtLastName").val()+" "+t.find("#ddlSuffix option:selected").text()),setTimeout(function(){var n={MenuTemplate:ns.istrMenuTemplate},t;$("#cssmenu").html(n.MenuTemplate);t=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"})},100))},NavigateToPartialView:function(n){var i=$(n).attr("rowIndex"),t=$(n).parents('[id^="GridTable_grv"]').attr("id");t=t.replace("GridTable_","");var r=ns.viewModel[ns.viewModel.currentModel].DetailsData[t].Records[i].dt_ClaimID_0_0,u=ns.viewModel[ns.viewModel.currentModel].DetailsData[t].Records[i].dt_ClaimNumber_1_0,f=ns.viewModel[ns.viewModel.currentModel].DetailsData[t].Records[i].dt_ClaimantID_7_0;return nsUserFunctions.RemoveAllFormTabTree(n),nsUserFunctions.ReloadPreviousClaimPartialView(r,u),!0},NavigateToViewHigherAppeal:function(n){var t=n.context.activeDivID;for(s in ns.viewModel)s.indexOf("wfmAppealPartySubpoenaMaintenance")==0&&$("#lblHideAddressValidationPnl").text()=="true"&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"),window.location.reload());return!1},NavigateToViewHigherAppealRep:function(n){var t=n.context.activeDivID;for(s in ns.viewModel)s.indexOf("wfmRepresentativeAppealPartyMaintenance")==0&&$("#lblHideAddressValidationPnl").text()=="true"&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"),window.location.reload());return!1},RemoveAllFormTabTree:function(n){var i=document.getElementById("TabsTree"),f,t,e,o,u,r;if(i.childElementCount>0&&(f=i.childNodes["0"].childElementCount,f>0))for(t=0,e=0;e<f;e++)o=i.childNodes["0"].childElementCount==t+1?!0:!1,i.childNodes["0"].childNodes[t].id.indexOf($(n)[0].context.activeDivID)==-1?i.childNodes["0"].childNodes[t].id.indexOf("wfmMSSHomeMaintenance")==-1?(u=i.childNodes["0"].childNodes[t].id.replace("li_",""),r=$("[linkedto="+u+"]").closest("li").find("a.delete-link"),r.length>0?r.trigger("click"):t++):t++:o||(u=i.childNodes["0"].childNodes[t+1].id.replace("li_",""),r=$("[linkedto="+u+"]").closest("li").find("a.delete-link"),r.length>0&&r.trigger("click"));return nsUserFunctions.NavigateToParentAndReload(n),!0},ReloadWithRecentClaimDetails:function(n){var t=$("#"+n.context.activeDivID),r,e;if(t.find("#lblRecentClaimId").text()!=null){var u=t.find("#lblRecentClaimId").text(),f=n.context.activeDivID,i=$("[linkedto="+f+"]").closest("li").find("a.delete-link");return i.length>0&&i.trigger("click"),$("#DivMyAccount").load("/ReBEACONClaimant/Home/RefreshClaimantPortal?aintClaim_id="+u+""),nsCommon.InitializeMVVMResources(ns.Language),r={MenuTemplate:ns.istrMenuTemplate},$("#cssmenu").html(r.MenuTemplate),e=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"}),!1}},ReloadToHomeWithRecentClaimDetails:function(n){var t=$("#"+n.context.activeDivID),i,u,r,f,e;if(t.find("#lblRecentClaimId").text()!=null||t.find("#lblRecentClaimId1").text()!=null)return i=t.find("#lblRecentClaimId").text(),i==""&&(i=t.find("#lblRecentClaimId1").text()),u=n.context.activeDivID,r=$("[linkedto="+u+"]").closest("li").find("a.delete-link"),r.length>0&&r.trigger("click"),$.ajaxSetup({cache:!1}),$("#DivMyAccount").load("/ReBEACONClaimant/Home/RefreshClaimantPortal?aintClaim_id="+i+""),nsCommon.InitializeMVVMResources(ns.Language),f={MenuTemplate:ns.istrMenuTemplate},$("#cssmenu").html(f.MenuTemplate),e=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"}),setTimeout(function(){ns.HashChangedFormCode=!0;MVVMGlobal.UpdateUrl("wfmMSSHomeMaintenance","0",!0);window.location.reload()},300),!1},ReloadClaimDetailsforPreviousClaim:function(){var n={MenuTemplate:ns.istrMenuTemplate},t;return $("#cssmenu").html(n.MenuTemplate),t=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"}),!1},RefreshClaimDetailsforPreviousClaim:function(){var n={MenuTemplate:ns.istrMenuTemplate},t;return $("#cssmenu").html(n.MenuTemplate),t=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"}),!0},TriggerClaimantHomeIcon:function(n){var i=nsCommon.GetFormNameFromDivID(n.context.activeDivID),t;return i=="wfmPreviousClaimsMaintenance"&&(t=$("#ClaimantPortalName").val(),$("#DivMyAccount").load("/"+t+"/Home/ReturnToHomePage"),$("#DivAlertsAndMessages").load("/"+t+"/Home/AlertsAndMessage"),$("#A1")!==null&&$("#A1")!=undefined&&$("#A1").trigger("click")),!0},ChangeDisplayError:function(n){var t=n.context.Message,i=n.context.activeDivID,r;return t!=null&&t.indexOf(" [ Errors found. ]")>=0&&i.indexOf("wfmIssueFactFindingQuestionMaintenance")>=0?" [Errors found. Record not saved]. ":t!=null&&t!=""&&t.indexOf("xml not found.")>=0?(window.history.back(),"Development of the screen is in progress for future iteration."):(r=$("#"+i+"ErrorDiv").find("li").filter(function(){return $(this).html()=="Valid Routing Number is required"}).html(),r!==undefined&&t.indexOf("Errors found. Record not saved.")>=0&&(ns.viewModel[i].HeaderData.MaintenanceData.set("lblLabel117",""),ns.viewModel[i].HeaderData.MaintenanceData.set("lblRoutingBankNameRegClmt","")),t)},CanPositionCursor:function(n){if(n.indexOf("wfmClaimantRegistrationWizard")>=0){if($(n).find(".stepDesc").length>0)return $(n).find("#wzsInfoChecklist").trigger("scrollTop"),!1;if($(n).find("#txtUserName"))return!1}return ns.iblnVisuallyImpaired===!0?!1:!0},ClearSession:function(){return sessionStorage.clear(),!0},btnMap_Click:function(n){var r="",i="",f="",t,o=-1,e,u;(n!=undefined&&n.tagName==="A"?(t=$(n)[0],r="#"+$(n).closest('div[role="group"]')[0].id,i=$(n).closest('div[id^="wfm"]')[0].id,t=$(r+" #"+i+" #"+GetControlAttribute(t,"sfwRelatedControl",i))[0],o=n.getAttribute("rowIndex")):(t=ns.viewModel.srcElement,r="#"+$(t).closest('div[role="group"]')[0].id,i=$(t).closest('div[id^="wfm"]')[0].id),f=GetControlAttribute(t,"sfwRelatedControl",i),e=nsCommon.GetWidgetByActiveDivIdAndControlId(i,f),e!=undefined)&&(u=nsCommon.GetNavigationParams(t,n),i.lastIndexOf("wfmDesignSpecificationMaintenance",0)===0?(nsCommon.sessionSet("design_specification_bpm_map_id",u.lstrFirstID),window.open(ns.SiteName+"/BPMExecution/MapRender.html","_blank")):(nsCommon.sessionSet("CaseInstanceID",u.lstrFirstID),window.open(ns.SiteName+"/BPMExecution/BPMNMap.html","_blank")))},ClosePostponePanel:function(n){var t=$("#"+n.context.activeDivID);return n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")===0&&t.find("#pnlRequestPostponement").addClass("HideControl"),!0},ScheduleLaborDisputeAppeal:function(){if($("#lbIsAppellantWorItemPending").text()!=undefined&&$("#lbIsAppellantWorItemPending").text()!=""&&$("#lbIsAppellantWorItemPending").text()=="true"){var n={};n[0]=30848;alert(nsCommon.SyncPost("GetMessageText",n,undefined,"POST"))}return!0},OpenStaticPopupForExpeditedWeeklyCert:function(){var n={},t;return n[0]=43874,t=confirm(nsCommon.SyncPost("GetMessageText",n,undefined,"POST")),t?!0:!1},OpenStaticPopupForChildSupport:function(n){var r=n.context.idictParam.param0,u=n.context.idictParam.param1,t=$("#"+r),i;return t.find("#CloseButton").remove(),t.attr("DialogPanelClose","CloseButton").append("<input type='button' id='CloseButton' onclick='nsUserFunctions.CloseStaticPopup(this);' value ='Close' class='button'>"),i=document.createElement("DIV"),$(i).attr("role","group"),$("body").append($(i)),$(i).attr("id","ChildSupportPopupParent"),t.kendoWindow({animation:!1,title:u,visible:!1,minWidth:450,modal:!0,close:function(){setTimeout(function(){$("fieldset#"+ns.viewModel.currentModel).attr("id",r);$(".k-overlay").hide();var n=$("#ChildSupportPopupParent");n.find("fieldset#"+r).length==0&&n.remove()},100)},open:function(){$("html, body").css("overflow","auto")}}),t.attr("id",ns.viewModel.currentModel),$(i).append(t.parent()),t.show(),t.data("kendoWindow").center().open(),!1},ClearSession:function(){return sessionStorage.clear(),!0},OpenStaticPopup:function(n){var o,r,t,f,u;if(ns.iblnVisuallyImpaired!=undefined){var i=n.context.idictParam.param0,s=n.context.idictParam.param1,e=nsCommon.SyncPost("GetMultilingualOtherText",s,undefined,"POST");if(ns.iblnVisuallyImpaired==!1){if(o=n.context.activeDivID,r=n.context.idictParam.param2,r==undefined&&(r=450),t=$("#"+i).clone(!0),t.hasClass("HideControl"),t.removeClass("HideControl"),t.find(".s-spnControlPanelbar").remove(),f=MVVM.Controls.Dialog.CreateInstance(t,o,{title:e,close:function(){this.destroy()},deactivate:"empty",width:r}),t!=undefined&&(u=t.find("#btnCancel"),u!=undefined&&u.length>0))u.on("click",function(){f.destroy()});return f.open(),!1}$("#"+i).removeClass("HideControl");$("#"+i).find(".s-spnControlPanelbar")[0].innerText=e;$("#"+i).find(".s-spnControlPanelbar").css("font-size","unset")}},OpenStaticPopupForDebitCard:function(n){if(ns.iblnVisuallyImpaired!=undefined)if(ns.iblnVisuallyImpaired==!1){var h=n.context.idictParam.param1,c=nsCommon.SyncPost("GetMultilingualOtherText",h,undefined,"POST"),a=n.context.idictParam.param2,u=n.context.activeDivID,t=n.context.idictParam.param0,e;if(t.length>0)t=t;else return;var l=function(n){var t=$("#"+n).clone(!0),i;return t.attr("id","Clone_"+n),i=MVVM.Controls.Dialog.CreateInstance(t,u,{title:c,close:function(){this.destroy()},deactivate:"empty"}),t.hasClass("HideControl"),t.removeClass("HideControl"),e=t,i},f=l(t),i=$("#Clone_"+t).find("#btnexecuteCorrDisclosure"),o=$("#Clone_"+t).find("#ltrValidation"),r=$("#Clone_"+t).find("#btnDisclosurePrint");if(o.hide(),r.length>0){r.addClass("button");r.off("click");r.on("click",function(){return e.print(),!1})}if(i.length>0){i.addClass("button");i.off("click");i.on("click",function(){var n=$("#Clone_"+t).find("#chkDisclosureAgreement");return n.is(":checked")?($("#btnexecuteCorrDisclosure")!==null&&$("#btnexecuteCorrDisclosure")!=undefined&&$("#btnexecuteCorrDisclosure").trigger("click"),f.destroy(),!1):(o.show(),!1)})}ns.viewModel[u]!=undefined||ns.viewModel[u]!=undefined?f.open():f.destroy()}else{var i=$("#btnexecuteCorrDisclosure"),r=$("#btnDisclosurePrint"),s=$("#ltrValidation");$("#pnlDisclosure").removeClass("HideControl");$("#pnlDisclosure").removeClass("AgrrementPopupWizard");s.addClass("HideControl");$("#ltrDisAgreeLine1").addClass("labelfocus");$("#ltrDisAgreeLine1").focus();i.on("click",function(){$("#chkDisclosureAgreement").is(":checked")?$("#pnlDisclosure").addClass("HideControl"):s.removeClass("HideControl")});r.on("click",function(){return $("#pnlDisclosure").print(),!1})}},OpenStaticPopupForDirectDeposit:function(n){var s=n.context.idictParam.param1,h=nsCommon.SyncPost("GetMultilingualOtherText",s,undefined,"POST"),l=n.context.idictParam.param2,u=n.context.activeDivID,t=n.context.idictParam.param0,e;if(t.length>0)t=t;else return;var c=function(n){var t=$("#"+n).clone(!0),i;return t.attr("id","Clone_"+n),i=MVVM.Controls.Dialog.CreateInstance(t,u,{title:h,close:function(){this.destroy()},deactivate:"empty"}),t.hasClass("HideControl"),t.removeClass("HideControl"),e=t,i},f=c(t),i=$("#Clone_"+t).find("#btnexecuteCorrDirectDepositAgree"),o=$("#Clone_"+t).find("#ltrDirectDepositAgreeValidation"),r=$("#Clone_"+t).find("#btnDirectDepositAgreePrint");if(o.hide(),r.length>0){r.addClass("button");r.off("click");r.on("click",function(){e.print()})}if(i.length>0){i.addClass("button");i.off("click");i.on("click",function(){var n=$("#Clone_"+t).find("#chkDirectDepositAgreement");return n.is(":checked")?($("#btnexecuteCorrDirectDepositAgree")!==null&&$("#btnexecuteCorrDirectDepositAgree")!=undefined&&$("#btnexecuteCorrDirectDepositAgree").trigger("click"),f.destroy(),!1):(o.show(),!1)})}ns.viewModel[u]!=undefined||ns.viewModel[u]!=undefined?f.open():f.destroy()},OpenDisclosureAgreement:function(n){var e=n.context.idictParam.param0,o=n.context.idictParam.param1,s=nsCommon.SyncPost("GetMultilingualOtherText",o,undefined,"POST"),h=n.context.activeDivID,u=n.context.idictParam.param2,t,f,i,r;if(u==undefined&&(u=500),t=$("#"+e).clone(!0),t.hasClass("HideControl"),t.removeClass("HideControl"),f=MVVM.Controls.Dialog.CreateInstance(t,h,{title:s,close:function(){this.destroy()},deactivate:"empty",width:u}),t!=undefined){if(i=t.find("#btnexecuteCorrDisclosure"),r=t.find("#btnDisclosurePrint"),t.find("#ltrValidation").hide(),i!=undefined&&i.length>0)i.on("click",function(){var i=t.find("#chkDisclosureAgreement").is(":checked"),n;return i==!0?(t.find("#ltrValidation").hide(),n=t.find("#btnDisclosureOk"),n.click(),$("a.k-window-action.k-link").trigger("click"),!1):(t.find("#ltrValidation").show(),!1)});if(r!=undefined&&r.length>0)r.on("click",function(){t.print()})}return f.open(),!1},OpenDirectDepositAgreement:function(n){var e=n.context.idictParam.param0,o=n.context.idictParam.param1,s=nsCommon.SyncPost("GetMultilingualOtherText",o,undefined,"POST"),h=n.context.activeDivID,u=n.context.idictParam.param2,t,f,i,r;if(u==undefined&&(u=500),t=$("#"+e).clone(!0),t.hasClass("HideControl"),t.removeClass("HideControl"),f=MVVM.Controls.Dialog.CreateInstance(t,h,{title:s,close:function(){this.destroy()},deactivate:"empty",width:u}),t!=undefined){if(i=t.find("#btnexecuteCorrDirectDepositAgree"),r=t.find("#btnDirectDepositAgreePrint"),t.find("#ltrDirectDepositAgreeValidation").hide(),i!=undefined&&i.length>0)i.on("click",function(){var i=t.find("#chkDirectDepositAgreement").is(":checked"),n;return i==!0?(t.find("#ltrDirectDepositAgreeValidation").hide(),n=t.find("#btnDDOk"),n.click(),$("a.k-window-action.k-link").trigger("click"),!1):(t.find("#ltrDirectDepositAgreeValidation").show(),!1)});if(r!=undefined&&r.length>0)r.on("click",function(){t.print()})}return f.open(),!1},OpenLWAPopup:function(n){var f=n.context.idictParam.param0,e=n.context.idictParam.param1,o=nsCommon.SyncPost("GetMultilingualOtherText",e,undefined,"POST"),s=n.context.activeDivID,r=n.context.idictParam.param2,t,u,i;if(r==undefined&&(r=900),t=$("#"+f).clone(!0),t.hasClass("HideControl"),t.removeClass("HideControl"),u=MVVM.Controls.Dialog.CreateInstance(t,s,{title:o,close:function(){this.destroy()},deactivate:"empty",width:r}),t!=undefined&&($(".k-i-close").hide(),$(".k-link").css("cursor","none"),$(".k-link").css("pointer-events","none"),i=t.find("#btnSave"),t.find("#ltrValidation").hide(),i!=undefined&&i.length>0))i.on("click",function(){var n,i;return(t.find("#rblCertify_0").is(":checked")||t.find("#rblCertify_1").is(":checked"))&&(n=!0),n==!0?(t.find("#ltrValidation").hide(),i=t.find("#btnLWAOk"),i.click(),$("a.k-window-action.k-link").trigger("click"),iblnLWARefresh=!0,!1):(t.find("#ltrValidation").show(),!1)});return u.open(),!1},Open1099GPopup:function(n){var i=n.context.idictParam.param0,s=n.context.idictParam.param1,h=nsCommon.SyncPost("GetMultilingualOtherText",s,undefined,"POST"),c=n.context.activeDivID,e=n.context.idictParam.param2,o,r,u,f;e==undefined&&(e=900);var t=$("#"+i).clone(!0),l=$("#Clone_"+i).find("#btn1099GOk"),a=$("#Clone_"+i).find("#btn1099GSave"),v=$("#Clone_"+i).find("#rbl1099GCertify"),y=$("#Clone_"+i).find("#ltr1099GValidation"),p=$("#Clone_"+i).find("#ltrLiteral412"),w=$("#Clone_"+i).find("#lbl1099GCertify");if(t.hasClass("HideControl"),t.removeClass("HideControl"),o=MVVM.Controls.Dialog.CreateInstance(t,c,{title:h,close:function(){this.destroy()},deactivate:"empty",width:e}),t!=undefined){if($(".k-i-close").hide(),$(".k-link").css("cursor","none"),$(".k-link").css("pointer-events","none"),r=t.find("#btn1099GSave"),t.find("#ltr1099GValidation").hide(),r!=undefined&&r.length>0)r.on("click",function(){var n,i;return(t.find("#rbl1099GCertify_0").is(":checked")||t.find("#rbl1099GCertify_1").is(":checked"))&&(n=!0),n==!0?(t.find("#ltr1099GValidation").hide(),i=t.find("#btn1099GOk"),i.click(),$("a.k-window-action.k-link").trigger("click"),ibln1099GRefresh=!0,!1):(t.find("#ltr1099GValidation").show(),!1)});if(u=t.find("#rbl1099GCertify_0"),u!=undefined&&u.length>0)u.on("change",function(){var n=nsUserFunctions.GetActiveDomElement(this);$(this).prop("checked",!0);$(this).is(":checked")&&($(".LitHide1099G").addClass("HideControl"),$(".HideValidation").addClass("HideControl"))});if(f=t.find("#rbl1099GCertify_1"),f!=undefined&&f.length>0)f.on("change",function(){$(this).prop("checked",!0);var n=nsUserFunctions.GetActiveDomElement(this);$(this).is(":checked")&&($(".LitHide1099G").removeClass("HideControl"),$(".HideValidation").addClass("HideControl"))})}return o.open(),!1},CloseStaticPopup:function(n){var t=$(n);return t.length>0&&t.closest("[DialogPanelClose]").length==1&&t.closest("[DialogPanelClose]").data("kendoWindow")!=undefined&&t.closest("[DialogPanelClose]").data("kendoWindow").close(),!1},NavigateToHomePage:function(){return nsWizard.lastActiveWizardDivID!==""&&($("#"+nsWizard.lastActiveWizardDivID).length>0&&nsEvents.OnDeleteFormClick(nsWizard.lastActiveWizardDivID),nsWizard.lastActiveWizardDivID=""),MVVMGlobal.StoreTreeViewInSessionStore(),setTimeout(function(){ns.HashChangedFormCode=!0;MVVMGlobal.UpdateUrl("wfmMSSHomeMaintenance","0",!0);window.location.reload()},300),!1},NavigateToAnotherWeekCert:function(){window.location.reload()},ConfirmationMessageForCertifiedWeek:function(){return nsUserFunctions.ReloadLeftNavigationMenu(),!1},NavigateTochildmaster:function(n){MVVMGlobal.StoreTreeViewInSessionStore();window.location=ns.SiteName+"#/spa/wfmChildSupportSummaryMaintenance/0";window.location.reload();n.preventDefault()},NavigateToOverpaymentLookup:function(n){MVVMGlobal.StoreTreeViewInSessionStore();window.location=ns.SiteName+"#/spa/wfmOverpaymentRepaymentLookup/0";window.location.reload();n.preventDefault()},NavigateToResetPasswordScreen:function(){var n=location.href.split("/"),i="ReBEACONClaimant/home/wfmUserPasswordInfo#/spa/wfmUserPasswordInfoMaintenance/0".split("#"),r=n[0]+n[1]+"//"+n[2]+"/",t=localStorage.getItem("Language");return t==null&&(t="en-US"),window.location=r+i[0]+"?Language="+{"en-US":"en-US","es-US":"es-US"}[t]+"#"+i[1],!1},NavigateToParent:function(n){var i=n.context.activeDivID,t=$("[linkedto="+i+"]").closest("li").find("a.delete-link");return t.length>0&&t.trigger("click"),!1},NavigateToSSUIHomePage:function(){var n=location.href.split("/"),r=n[0]+n[1]+"//"+n[2]+"/",i=$("#ClaimantSSUIHomePage").val(),t;return t=ns.Language!="en-US"?i+"claimant-page-es.html":i+"claimant-page.html",window.location=r+t,location.replace(t),!1},IdentifyWeeksForCertificationForIncomingWIC:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);return t.find("#rblIncomingWIC_0").is(":checked")==!0&&t.find("#lblWICWeek").text()=="N"?($("#GlobalMessageDiv").text("No WIC found for claimant."),$("#GlobalMessageDiv").addClass("GlobalError"),$("#GlobalMessageDiv").css("display","block"),!1):!0},SubmitIdentifyWeekForCert:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);return $("#GlobalMessageDiv")[0].innerHTML="",$("#GridTable_grvBusRequestWeekOutSequence input[class='s-grid-check-row']:checked").length==0&&$("#GridTable_grvBusRequestWeekOutSequence input[class='GridCheckBox']:checked").length==0||t.find("#rblIncomingWIC_0").is(":checked")==!1&&t.find("#rblIncomingWIC_1").is(":checked")==!1?($("#GridTable_grvBusRequestWeekOutSequence input[class='s-grid-check-row']:checked").length==0&&$("#GridTable_grvBusRequestWeekOutSequence input[class='GridCheckBox']:checked").length==0&&($("#GlobalMessageDiv").text("Please select record(s)."),$("#GlobalMessageDiv").addClass("GlobalError")),t.find("#rblIncomingWIC_0").is(":checked")==!1&&t.find("#rblIncomingWIC_1").is(":checked")==!1&&($("#GlobalMessageDiv").text("Populate from incoming WIC screen is required."),$("#GlobalMessageDiv").addClass("GlobalError")),$("#GlobalMessageDiv").css("display","block"),!1):$("#GridTable_grvBusRequestWeekOutSequence input[class='GridCheckBox']:checked").length>0&&$("#GridTable_grvBusRequestWeekOutSequence input[class='GridCheckBox']:checked").length!=$("#GridTable_grvBusRequestWeekOutSequence input[class='s-grid-check-row']:checked").length?($("#GlobalMessageDiv").text("Invalid selection. Please select a corresponding Week Ending Date for which a Work Search is Required."),$("#GlobalMessageDiv").addClass("GlobalError"),$("#GlobalMessageDiv").css("display","block"),!1):confirm("You must use the Weekly Certification Link to complete the certifications for the weeks you are submitting.  Do you wish to proceed?")},IdentifyWeeksForCertificationCheck:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i=0;return($("#GlobalMessageDiv")[0].innerHTML="",i=$("#GridTable_grvBusRequestWeekOutSequence input[class='s-grid-check-row']:checked").length,i==0&&t.find("#rblIncomingWIC_0").is(":checked")==!1&&t.find("#rblIncomingWIC_1").is(":checked")==!0)?($("#GlobalMessageDiv").text("Select a week-ending date."),$("#GlobalMessageDiv").addClass("GlobalError"),$("#GlobalMessageDiv").css("display","block"),!1):t.find("#rblIncomingWIC_0").is(":checked")==!0&&t.find("#lblWICWeek").text()=="N"?($("#GlobalMessageDiv").text("No WIC found for claimant."),$("#GlobalMessageDiv").addClass("GlobalError"),$("#GlobalMessageDiv").css("display","block"),!1):!0},NavigateToParentAndReload:function(n){nsUserFunctions.NavigateToParent(n);window.location.reload()},NavigateToHome:function(){if(document.getElementById("lblSystemPath")!=undefined)return window.location=document.getElementById("lblSystemPath").innerText,!1},NavigateToParentAndReloadActionItems:function(n){nsUserFunctions.NavigateToParent(n);setTimeout(function(){$("#btnRefreshGridData")!==null&&$("#btnRefreshGridData")!=undefined&&$("#btnRefreshGridData").trigger("click")},500);ReloadAlertsAndMessages()},NavigateToOverpaymentSummaryMaintenance:function(){return window.location=ns.SiteName+"#/spa/wfmManageClaimantDebtWizard/0",window.location.reload(),!1},NavigateToAddDependentParent:function(n){var t,i,r;$("#lblSameDependentSSN").text()=="true"&&(t={},t[0]=4213,alert(nsCommon.SyncPost("GetMessageText",t,undefined,"POST")));$("#lblStaffMsgForAuthenticationFailed").text()=="true"?(t={},t[0]=4212,alert(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"))):$("#lblClaimantMsgForAuthenticationFailed").text()=="true"&&(i=$(document).find("#lblDueDate").text(),alert("We are not able to verify the information that you have provided. Verify the information that you have entered is correct. Proof of your dependent must be received by "+i+". If you need additional assistance, contact 410-949-0022."));r=n.context.activeDivID;for(s in ns.viewModel)s.indexOf("wfmDependentInformationDetailsMaintenance")==0&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"),setTimeout(function(){$("#btnRefreshData")!==null&&$("#btnRefreshData")!=undefined&&$("#btnRefreshData").trigger("click")},500));return!1},NavigateToParentWithLoad:function(n){var t,i,r,u;if(ns.viewModel.previousForm=="wfmCreateNewIssueWizard"&&ns.viewModel.currentForm=="wfmCreateNewIssueWizard"){delete ns.DirtyData.wfmCreateNewIssueWizard;for(s in ns.viewModel)s.indexOf("wfmCreateNewIssueWizard")==0&&(i=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,i.trigger("click"));return MVVMGlobal.UpdateUrl("wfmClaimantIssueSearch","0",!0),window.location.reload(),!1}return ReloadAlertsAndMessages(),t=n.context.activeDivID,i=$("[linkedto="+t+"]").closest("li").find("a.delete-link"),i.length>0&&i.trigger("click"),nsCommon.InitializeMVVMResources(ns.Language),r={MenuTemplate:ns.istrMenuTemplate},$("#cssmenu").html(r.MenuTemplate),u=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"}),t.indexOf("wfmIssueFactFindingQuestionMaintenance")!=-1&&window.location.reload(),t.indexOf("wfmClaimantMessageDetailsMaintenance")!=-1&&(localStorage.removeItem("MultilingualReload"),window.location.reload()),t.indexOf("wfmClaimantAddressMaintenance")!=-1&&location.reload(),t.indexOf("wfmClaimantContactMaintenance")!=-1&&location.reload(),!1},NavigateToClaimantHomePage:function(){var n;return ns.Language!="en-US"?(localStorage.setItem("Language",ns.Language),n=$("#lblSystemURL").text()+"claimant-page-spanish.html"):n=$("#lblSystemURL").text()+"claimant-page.html",window.location=n,window.open(n,"_self"),!1},NavigateToClaimantLoginPage:function(){var t=$("#ClaimantPortalName").val(),n=$("#lblClaimantLogin").text()+t+"/Account/Login";return window.location=n,window.open(n,"_self"),!1},NavigateToAllReadyLoginPage:function(){var t=$("#lblPortalName").text(),n=$("#lblDomainName").text()+t+"/Account/Login";return window.location=n,window.open(n,"_self"),!1},NavigateToRegisterLoginPage:function(){var t=$("#lblPortalName1").text(),n=$("#lblDomainName1").text()+t+"/Account/Login";return window.location=n,window.open(n,"_self"),!1},NavigateToClaimantActivation:function(){var t=$("#lblClaimantPortalName").text(),n=$("#lblClaimantDomainname").text()+t+"/Account/ClaimantAccountActivation";return window.location=n,window.open(n,"_self"),!1},NavigateToClaimantHomePortal:function(n){MVVMGlobal.StoreTreeViewInSessionStore();window.location=ns.SiteName+"#/spa/wfmMSSHomeMaintenance/0";window.location.reload();n.preventDefault()},NavigateToClaimantcontinueRegistration:function(){var n=location.href.split("/"),i="ReBEACONClaimant/home/wfmContinueRegister#/spa/wfmClaimantContinueRegistrationMaintenance/0".split("#"),r=n[0]+n[1]+"//"+n[2]+"/",t=localStorage.getItem("Language");return t==null&&(t="en-US"),window.location=r+i[0]+"?Language="+{"en-US":"en-US","es-US":"es-US"}[t]+"#"+i[1],!1},NavigateToVariousPortal:function(n){var f=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i=f.find("#lblLoggedInAs").text(),t;if(i=="Registration_Through_Guest")return t=f.find("#lblSysURL").text()+"claimant-page.html",window.location=t,window.open(t,"_self"),!1;if(i=="Login_As_Staff_To_Claimant_Portal")MVVMGlobal.StoreTreeViewInSessionStore(),window.location=ns.SiteName+"#/spa/wfmMSSHomeMaintenance/0",window.location.reload(),n.preventDefault();else{if(i=="Login_As_Claimant")return MVVMGlobal.StoreTreeViewInSessionStore(),t=ns.SiteName+"/Account/Login",window.location=t,window.open(t,"_self"),!1;if(i=="Complete Unemployment Insurance Claim"){var r=location.href.split("/"),e="ReBEACONClaimant/home/wfmContinueRegister#/spa/wfmClaimantContinueRegistrationMaintenance/0".split("#"),o=r[0]+r[1]+"//"+r[2]+"/",u=localStorage.getItem("Language");return u==null&&(u="en-US"),window.location=o+e[0]+"?Language="+{"en-US":"en-US","es-US":"es-US"}[u]+"#"+e[1],!1}}},NavigateToPage:function(n){var r=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i,t;if(n.context.activeDivID.indexOf("wfmClaimantModifyPaymentWizard")>-1||n.context.activeDivID.indexOf("wfmTransferPaymentToSuspenseWizard")>-1){i=n.context.activeDivID;t=$("[linkedto="+i+"]").closest("li").find("a.delete-link");t.length>0&&(ns.blnShowConfirmMsgForChildNodeDelete=!1,t.trigger("click"));for(s in ns.viewModel)s.indexOf("wfmOverpaymentRepaymentDetailMaintenance")==0&&(t=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),ns.blnShowConfirmMsgForChildNodeDelete=!1,t.trigger("click"))}return ns.blnShowConfirmMsgForChildNodeDelete=!0,!1},OpenStateUILink:function(n){if(n!=undefined&&n.text!=undefined&&$.trim(n.text)!=""){var t=$.trim(n.text);window.open(t)}return!1},ReloadCurrentPage:function(){return window.location.reload(),!1},ReloadwfmLockAccountorClaimMaintenance:function(){return delete ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance,delete ns.DirtyData.wfmLockAccountorClaimMaintenance,window.location.reload(),!1},ddlStatePnlChildSupportChange:function(){var n=$("#ddlStatePnlChildSupport").val();$("#txtStateVisibility")[0].value=n!==""?"Y":"N";$("#txtStateVisibility")!==null&&$("#txtStateVisibility")!=undefined&&$("#txtStateVisibility").trigger("change")},AddEvrInDirtyData:function(n,t){ns.viewModel[n]!=undefined&&ns.viewModel[n].ListControlData!=undefined&&ns.viewModel[n].ListControlData[t]!=undefined&&ns.viewModel[n].ListControlData[t].istrEV!=undefined&&(ns.DirtyData[n].HeaderData.MaintenanceData[t+"_istrEV"]=ns.viewModel[n].ListControlData[t].istrEV);var i=$(["#",n].join("")).find("#"+t);i.data("istrEV")!=undefined&&(ns.DirtyData[n].HeaderData.MaintenanceData[t+"_istrEV"]=i.data("istrEV"))},UploadDocument:function(n){var t=nsCommon.GetFormNameFromDivID(n.context.activeDivID),i;ns.DirtyData[n.context.activeDivID]={HeaderData:{},istrFormName:t,KeysData:{}};ns.DirtyData[n.context.activeDivID].HeaderData={MaintenanceData:{}};ns.DirtyData[n.context.activeDivID].HeaderData.MaintenanceData=ns.viewModel[n.context.activeDivID].HeaderData.MaintenanceData;ns.DirtyData[n.context.activeDivID].KeysData=ns.viewModel[n.context.activeDivID].KeysData;for(i in ns.DirtyData[n.context.activeDivID].HeaderData.MaintenanceData)nsUserFunctions.AddEvrInDirtyData(n.context.activeDivID,i);switch(t){case"wfmMSSMEHPInsuranceApplicationWizard":ns.DirtyData[n.context.activeDivID].HeaderData.MaintenanceData.PersonId=$("#"+n.context.activeDivID).find("#lblApplicantPersonId").text();break;case"wfmRefundApplicationWizard":ns.DirtyData[n.context.activeDivID].HeaderData.MaintenanceData.ddlRefundFileDesc=$("select#ddlRefundFileDesc option:selected").val()}return!0},AfterADALoadFormData:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);t.find("table").not(function(){return this.querySelector("thead")!=null}).each(function(){var n=$(this).find("tr:first").first().find("td").length,t="";n>1&&(t="colspan='"+(n-1)+"'");$(this).prepend('<thead style="display:none;"><tr><th '+t+' scope="col"  >ADA Test<\/th><\/tr><\/thead>');this.getAttribute("role")==undefined&&this.setAttribute("role","table");this.getAttribute("aria-describedby")==undefined&&this.setAttribute("aria-describedby","defaultareadescribedby")});t.find("input[type='image'][imagebutton='true'][src*='lack-of-work-notification.jpg'][alt=''], input[type='image'][imagebutton='true'][src*='lack-of-work-notification.jpg']:not([alt])").attr("alt","Notification");t.find("input[type='image'][imagebutton='true'][src*='employer-search.png'][alt=''], input[type='image'][imagebutton='true'][src*='employer-search.png']:not([alt])").attr("alt","Lookup Search");t.find("input[type='image'][imagebutton='true'][src*='Lookup.jpg'][alt=''], input[type='image'][imagebutton='true'][src*='Lookup.jpg']:not([alt])").attr("alt","Retrieval");t.find("table").not(function(){return this.querySelector("caption")!=null}).prepend('<caption style="display:none;">ADA<\/caption>');t.find("[style*='transition']").css("transition","");$("[style*='transition']").css("transition","");t.find("table:not([role])").attr("role","table");t.find("table:not([aria-describedby])").attr("aria-describedby","defaultareadescribedby")},IsAsteriskPresent:function(n){var r,i,u,t;if(n.indexOf("Lookup")>=0)return!1;if(n.indexOf("Maintenance")>=0){if(r=nsCommon.GetActiveDivId(),$("#"+r).length>0&&(t=$("#"+r)[0].getElementsByClassName("ReqInformation"),t.length>0))return!0}else if(n.indexOf("Wizard")>=0&&(i=$("#wizMain").data("smartWizard"),i!=null&&(u=$(i.elmStepContainer.find(".content")[i.curStepIdx])[0].id,t=$("#"+u)[0].getElementsByClassName("ReqInformation"),t.length>0)))return!0;return!1},NavigateToOtherPortal:function(n){var s,i={},r,f,u,o,e;i[0]=8;s=nsCommon.SyncPost("GetMessageText",i,undefined,"POST");var f="",r="",t,h=-1;if(n!=undefined&&n.tagName==="A"?(t=$(n)[0],f="#"+$(n).closest('div[role="group"]')[0].id,r=$(n).closest('div[id^="wfm"]')[0].id,t=$(f+" #"+r+" #"+GetControlAttribute(t,"sfwRelatedControl",r))[0],h=n.getAttribute("rowIndex")):(t=ns.viewModel.srcElement,f="#"+$(t).closest('div[role="group"]')[0].id,r=$(t).closest('div[id^="wfm"]')[0].id),setRequestingForm(t),Object.keys(ns.DirtyData).length===ns.intUnsavedFromsLimit){i={};i[0]=43815;nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",i,undefined,"POST"));return}if(u=""===n.type?nsCommon.GetNavigationParams(t,n):nsCommon.GetNavigationParams(t),u.larrRows.length==0){i={};i[0]=4246;nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",i,undefined,"POST"),r);return}var l=u.lstrActiveForm,c=u.lstrFirstID,a=u.larrRows;ns.SessionStorePageState("scroll",null,$("#CenterSplitter").scrollTop());o=ns.SiteName;e="";r.indexOf("Claim")>0&&(e="ClaimantID");nsCommon.IncrementPortalCount();window.name="";sessionStorage.removeItem("LoginWindowName");window.location=o+"/Account/SSOEntryPoint?ID="+c+"&SessionParamName="+e+"&Language="+ns.Language+"&SwitchClaimant=true"},AfterBindFormData:function(n){var v={},i=n.context.activeDivID,t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),b,s,y,o,u,l,a,h,r,f,e,c,p,w;if(nsUserFunctions.FindEmployerIdLabel(t),t!=undefined&&(t.find("a[class^='button']").each(function(){$(this).attr("tabindex","0")}),t.find(".buttonDisabled").each(function(){$(this).attr("tabindex","-1")}),t.find(".ui-datepicker-trigger").each(function(){$(this).attr("tabindex","0");$(this).attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)")}),t.find(".homelink").each(function(){$(this).attr("tabindex","0");$(this).attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)")}),t.find(".k-link").each(function(){$(this).attr("tabindex","0");$(this).attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)")}),t.find(".s-spnControlPanelbar").each(function(){$(this).attr("tabindex","-1")}),t.find(".s-fileupload-clear").each(function(){$(this).attr("tabindex","0");$(this).attr("onkeydown","nsUserFunctions.LinkButtonClick(event,this)")})),setTimeout(function(){t.find(".note-editing-area").each(function(){$(this).attr("tabindex","0")})},100),n.context.activeDivID.indexOf("wfmMSSHomeMaintenance")==0&&(iblnLWARefresh==!0?(setTimeout(function(){$("#btnRefreshData1").trigger("click")},50),iblnLWARefresh=!1):(u=t.find("#lblIsAlert"),u!=null&&u.text()!=null&&u.text()=="true"&&setTimeout(function(){$("#btnLnkBtnLWAPopup").trigger("click")},70))),n.context.activeDivID.indexOf("wfmMSSHomeMaintenance")==0&&(ibln1099GRefresh==!0?(setTimeout(function(){$("#btnRefreshData1099G").trigger("click")},50),ibln1099GRefresh=!1):(u=t.find("#lblIs1099GAlert"),u!=null&&u.text()!=null&&u.text()=="true"&&setTimeout(function(){$("#btnLnkBtn1099GPopup").trigger("click")},70))),ns.iblnVisuallyImpaired&&t.find("#ListViewContainer_rpvSharePointSearchData1").each(function(){t.find(".spnEmptyDataContainer").each(function(){$(this).attr("tabindex","0");$(this).attr("role","text")})}),ns.iblnVisuallyImpaired&&n.context.activeDivID.indexOf("wfmCenterLeftKnowtionSearchMaintenance")==0&&t.find(".ListViewLinks").each(function(){$(this).attr("tabindex","0");$(this).attr("role","text")}),i=n.context.activeDivID,i.indexOf("wfmResetClaimantRegistrationPasswordMaintenance")==0&&(s=!1,ns.viewModel!=undefined&&ns.viewModel[i]!=undefined&&ns.viewModel[i].OtherData!=undefined&&ns.viewModel[i].OtherData.IsinvalidAnswer!=undefined&&(s=ns.viewModel[i].OtherData.IsinvalidAnswer,s==!0&&($("#txtIstrAnswer1,#txtIstrAnswer2").val(""),$("#txtIstrAnswer1,#txtIstrAnswer2").trigger("change"),o={},o[0]=7203,setTimeout(function(){nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",o,undefined,"POST"),i);delete ns.viewModel[i].OtherData.IsinvalidAnswer},500)))),i.indexOf("wfmUserPasswordInfoMaintenance")==0&&(b=!1,ns.viewModel!=undefined&&ns.viewModel[i]!=undefined&&ns.viewModel[i].OtherData!=undefined&&ns.viewModel[i].OtherData.IsinvalidAnswer!=undefined&&(s=ns.viewModel[i].OtherData.IsinvalidAnswer,s==!0&&($("#txtIstrAnswer1,#txtIstrAnswer2").val(""),o={},o[0]=25034,setTimeout(function(){nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",o,undefined,"POST"),i);delete ns.viewModel[i].OtherData.iblnIsUserInfoInvalid},100)))),t.find(".note-editable a").length>0&&$(".note-editable a").each(function(){$(this).attr("contentEditable","false")}),nsCommon!=undefined&&(t.find("label:contains('Notes:')").length>0&&t.find("textarea[class*=HtmlEditor]").length>0||t.find(".NotesTitle").length>0)&&(v.FormTitle=ns.Templates[nsCommon.GetProperFormId(ns.viewModel.currentForm)].ExtraInfoFields.FormTitle,nsCommon.SyncPost!=undefined&&v.FormTitle.length>0&&nsCommon.SyncPost("GetFormTitleForNotes",v,undefined,"POST")),i.indexOf("wfmForgotPINMaintenance")==0){if(s=!1,y=!1,ns.viewModel!=undefined&&ns.viewModel[i]!=undefined&&ns.viewModel[i].OtherData!=undefined&&ns.viewModel[i].OtherData.IsAccountlock!=undefined&&(y=ns.viewModel[i].OtherData.IsAccountlock,y==!0))return delete ns.viewModel[i].OtherData.IsAccountlock,alert("Your account has been locked. Please try after 30 minutes."),$("#btnOpenActivation").trigger("click"),!1;ns.viewModel!=undefined&&ns.viewModel[i]!=undefined&&ns.viewModel[i].OtherData!=undefined&&ns.viewModel[i].OtherData.IsinvalidAnswer!=undefined&&(s=ns.viewModel[i].OtherData.IsinvalidAnswer,s==!0&&($("#txtIstrAnswer").val(""),o={},o[0]=7203,setTimeout(function(){nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",o,undefined,"POST"),i);delete ns.viewModel[i].OtherData.IsinvalidAnswer},500)))}if(n.context.activeDivID.indexOf("wfmRepresentativeAppealPartyMaintenance")==0&&(u=t.find("#ddlCatValue2"),u!=null&&(l=t.find("#ddlCatValue2").val(),(l=="AGAD"||l=="CLAD"||l=="EMAD")&&(t.find("#lblPrimary").addClass("HideControl"),t.find("#lblPrimaryAsterisk").addClass("HideControl"),t.find("#rblPrimary").addClass("HideControl"),t.find("#lblPrimary").css("display","none"),t.find("#lblPrimaryAsterisk").css("display","none"),t.find("#rblPrimary").css("display","none")))),n.context.activeDivID.indexOf("wfmMSSHomeMaintenance")>-1&&($(document).off("keydown.neoEvents","div[DefaultButtonID]"),t.find("#ltrPayingState").css("display")!=undefined&&t.find("#ltrPayingState").css("display")=="none"&&t.find("#ltrPayingState").closest("tr").css({display:"none"})),n.context.activeDivID.indexOf("wfmTransactionDetailsMaintenance")==0&&t.find("#lblrdfor_btnUpdateClaimantEarning")&&t.find("#lblrdfor_btnUpdateClaimantEarning").hide(),t.find("a[linkbutton='true']").each(function(){$(this).attr("tabindex","0")}),n.context.activeDivID.indexOf("wfmClaimantMaintenance")>-1){if("QuickAction"in window.localStorage){if(h=window.localStorage.getItem("QuickAction"),h!=undefined&&h!=null)switch(h){case"hypClaimantProfileLink":t.find("#tshPersonalInfo_Header")!==null&&t.find("#tshPersonalInfo_Header")!=undefined&&t.find("#tshPersonalInfo_Header").trigger("click");break;case"hypClaimantProfileLinkAddress":t.find("#tshAddressSummary_Header")!==null&&t.find("#tshAddressSummary_Header")!=undefined&&t.find("#tshAddressSummary_Header").trigger("click");break;case"hypChangeCommunicationPref":t.find("#tshNewPage5_Header")!==null&&t.find("#tshNewPage5_Header")!=undefined&&t.find("#tshNewPage5_Header").trigger("click")}window.localStorage.removeItem("QuickAction")}navigationthroughAccountMaintance!=undefined&&navigationthroughAccountMaintance==!0&&(a=t.find("#tshNotes_Header a"),a!=undefined&&a.length>0&&$(a[0]).trigger("click"),navigationthroughAccountMaintance=!1)}if(n.context.activeDivID.indexOf("wfmDirectDepositMaintenance")>-1&&"QuickAction"in window.localStorage){if(h=window.localStorage.getItem("QuickAction"),h!=undefined&&h!=null)switch(h){case"hypTaxWithholding":t.find("#tshTaxWithholding_Header")!==null&&t.find("#tshTaxWithholding_Header")!=undefined&&t.find("#tshTaxWithholding_Header").trigger("click");break;case"hypChangePaymentMethod":t.find("#tshNewPage_Header")!==null&&t.find("#tshNewPage_Header")!=undefined&&t.find("#tshNewPage_Header").trigger("click")}window.localStorage.removeItem("QuickAction")}if((n.context.activeDivID.indexOf("wfmClaimantRegistrationWizard")==0||n.context.activeDivID.indexOf("wfmPUAClaimantRegistrationWizard")==0)&&(($(t.find("#ddlGenInCountry").children()[0]).val()==""||$(t.find("#ddlGenInCountry").children()[0]).val()==undefined)&&$(t.find("#ddlGenInCountry").children()[0]).remove(),($(t.find("#ddlGenInState").children()[0]).val()==""||$(t.find("#ddlGenInState").children()[0]).val()==undefined)&&$(t.find("#ddlGenInState").children()[0]).remove()),n.context.activeDivID.indexOf("wfmClaimantMessageDetailsMaintenance")==0&&(t.find("#lblAccountActMessagePresent").text()=="true"?(t.find("#pnlMain").addClass("HideControl"),t.find("#pnlCustomMessage").removeClass("HideControl")):(t.find("#pnlMain").removeClass("HideControl"),t.find("#pnlCustomMessage").addClass("HideControl"))),n.context.activeDivID.indexOf("wfmClaimantFileHigherAppealWizard")===0&&(t.find("#chkCheckBox").is(":checked")?t.find("#ddlCountryTF").val()!="1"&&t.find("#ddlCountryTF").val()!="38"?(lstrShowControls="#txtTextStateOtherCountry, #txtTextZipOtherState",nsUserFunctions.showHideControlsByActiveForm(t,lstrShowControls,!1),lstrHideControl="#Zips,#ddlDropDownList1, #txtTextZipUSA, #lblHyphen, #txtTextZipExtension, #txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(t,lstrHideControl,!0)):t.find("#ddlCountryTF").val()=="1"?(lstrShowControls="#Zips,#ddlDropDownList1, #txtTextZipUSA, #lblHyphen, #txtTextZipExtension",nsUserFunctions.showHideControlsByActiveForm(t,lstrShowControls,!1),lstrHideControl="#txtTextStateOtherCountry, #txtTextZipOtherState,#txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(t,lstrHideControl,!0)):t.find("#ddlCountryTF").val()=="38"&&(lstrShowControls="#Zips,#ddlDropDownList1, #txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(t,lstrShowControls,!1),lstrHideControl="#txtTextStateOtherCountry, #txtTextZipOtherState,#txtTextZipUSA, #lblHyphen, #txtTextZipExtension",nsUserFunctions.showHideControlsByActiveForm(t,lstrHideControl,!0)):(lstrHideControl="#ddlDropDownList1, #txtTextZipUSA, #lblHyphen, #txtTextZipExtension,#txtTextStateOtherCountry, #txtTextZipOtherState,#Zips,#txtTextZipCanada",nsUserFunctions.showHideControlsByActiveForm(t,lstrHideControl,!0))),n.context.activeDivID.indexOf("wfmSuppotingDocumentationMaintenance")===0&&($(t.find("div").filter(" .s-grid-header-div")[0]).children().remove(),$(t.find("div").filter(" .s-grid-header-div")[0]).append("Select")),n.context.activeDivID.indexOf("wfmClaimantAddressMaintenance")>-1&&(t.find("#ddlCountryCodeValue").val()=="1"&&t.find("#ddlStateCodeValue").val()!="MD"&&t.find("#txtAddressTypeValue").val()=="HOME"?t.find("#pnlCommuteInformation").show():t.find("#pnlCommuteInformation").hide()),n.context.activeDivID.indexOf("wfmClaimWithdrawalMaintenance")>-1&&(ns.viewModel[ns.viewModel.currentModel].HeaderData.MaintenanceData.ddlWithdrawalReason=="OTHR"?(t.find("#lblExplanation").show(),t.find("#txtExplanation").parent().show()):(t.find("#lblExplanation").hide(),t.find("#txtExplanation").parent().hide())),n.context.activeDivID.indexOf("wfmClaimantAddressMaintenance")>-1&&(ns.viewModel[ns.viewModel.currentModel].HeaderData.MaintenanceData.ddlAddressUpdateSource=="OTHE"?(t.find("#lblNotes").removeClass("HideControl"),t.find("#capNotesRequired").removeClass("HideControl"),t.find("#pnlNotesPanel").removeClass("HideControl")):(t.find("#lblNotes").addClass("HideControl"),t.find("#capNotesRequired").addClass("HideControl"),t.find("#pnlNotesPanel").addClass("HideControl"))),n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")>=0)if(r=t.find("#ddlHearingAction").val(),r!=null&&r!=""){switch(r){case"CNHR":r="Continue Hearing";break;case"RSCD":r="Reschedule Hearing";break;case"RQPO":r="Request for Postponement"}t.find("#pnlRequestPostponement").removeClass("HideControl");r=="Continue Hearing"||r=="Reschedule Hearing"?t.find("#pnlUploadHearingDoc").addClass("HideControl"):r=="Request for Postponement"&&t.find("#pnlUploadHearingDoc").removeClass("HideControl");t.find("#pnlRequestPostponement").find(".s-spnControlPanelbar").text(r)}else t.find("#pnlRequestPostponement").addClass("HideControl");n.context.activeDivID.indexOf("wfmClaimantMaintenance")>-1&&(f=t.find("#lblIsUserClaimantPortal").text(),e=t.find("#lblCitizenInd").text(),e=="Yes"&&f=="True"?t.find("#pnlWorkAuthInfo").hide():e=="No"&&f=="True"&&t.find("#pnlWorkAuthInfo").show(),t.find("#lblEmail").text()!=""&&t.find("#ddlCommPreference").val()=="MAIL"?(t.find("#lblEmail,#ltrEmailID,#ltrEmailInfoMsg ").show(),t.find("#txtConfirmEmailID").val(""),t.find("#ltrText,#txtText,#lblReqText,#lblReqEmail ,#txtEmailID,#ltrConfirmEmailID,#lblReqConfirmEmail ,#txtConfirmEmailID,#lblTextNum,#ltrPhoneInfoMsg,#ltrTextMsg").hide()):t.find("#ddlCommPreference").val()=="USML"?t.find("#lblEmail,#ltrText,#txtText,#lblReqText,#ltrEmailID,#lblReqEmail ,#txtEmailID,#ltrConfirmEmailID,#lblReqConfirmEmail ,#txtConfirmEmailID,#lblTextNum,#ltrEmailInfoMsg ,#ltrPhoneInfoMsg,#ltrTextMsg").hide():t.find("#lblTextNum").text()!=""&&t.find("#ddlCommPreference").val()=="TEXT"&&(t.find("#lblEmail,#txtText,#lblReqText,#ltrEmailID,#lblReqEmail ,#txtEmailID,#ltrConfirmEmailID,#lblReqConfirmEmail ,#txtConfirmEmailID,#ltrEmailInfoMsg ").hide(),t.find("#ltrText,#ltrPhoneInfoMsg,#lblTextNum,#ltrTextMsg").show()),c=t.find("#lblWorkAuthCode").text(),c=="ADRF"&&f=="True"&&e=="No"?(t.find("#ltrcardNoI94,#lblReadCardNo").show(),t.find("#ltrDocName,#lblReqDocName,#lblReadDocName,#lblReqCardNo,#ltrCardNo1,#ltrPassportNo,#lblReqPassportNo,#lblReadPassNum,#ltrExpdate,#ltrPassExpDate,#lblReqExpdate,#lblReadPassExpDate,#ltrAlienIdenficationNo,#ltrUSCInum,#lblReqAlienIdnNo,#lblReadAleinDocId,#ltrCountry,#lblReqCountryOfIssuance,#lblCountryOfIssuance").hide()):c=="ADRU"&&f=="True"&&e=="No"?(t.find("#ltrcardNoI94,#lblReadCardNo,#ltrPassportNo,#lblReadPassNum,#ltrPassExpDate,#lblReadPassExpDate,#ltrCountry,#lblCountryOfIssuance").show(),t.find("#ltrExpdate,#ltrCardNo1,#ltrAlienIdenficationNo,#ltrUSCInum,#lblReadAleinDocId,#ltrDocName,#lblReadDocName,#lblReqDocName,#lblReqCardNo,#lblReqPassportNo,#lblReqExpdate,#lblReqAlienIdnNo,#lblReqCountryOfIssuance").hide()):c=="MRIV"&&f=="True"&&e=="No"?(t.find("#ltrUSCInum,#lblReadAleinDocId,#ltrPassportNo,#lblReadPassNum,#ltrPassExpDate,#lblReadPassExpDate,#lblCountryOfIssuance,#ltrCountry").show(),t.find("#ltrDocName,#lblReadDocName,#ltrcardNoI94,#ltrCardNo1,#lblReadCardNo,#ltrExpdate,#ltrAlienIdenficationNo,#lblReqDocName,#lblReqCardNo,#lblReqPassportNo,#lblReqExpdate,#lblReqAlienIdnNo,#lblReqCountryOfIssuance").hide()):c=="STMP"&&f=="True"&&e=="No"?(t.find("#ltrUSCInum,#lblReadAleinDocId").show(),t.find("#ltrDocName,#lblReadDocName,#ltrcardNoI94,#ltrCardNo1,#lblReadCardNo,#ltrPassportNo,#lblReadPassNum,#ltrExpdate,#ltrPassExpDate,#lblReadPassExpDate,#ltrAlienIdenficationNo,#ltrCountry,#lblReqDocName,#lblReqCardNo,#lblReqPassportNo,#lblReqExpdate,#lblReqAlienIdnNo,#lblReqCountryOfIssuance,#lblCountryOfIssuance").hide()):c=="PERC"&&f=="True"&&e=="No"?(t.find("#ltrUSCInum,#lblReadAleinDocId,#ltrCardNo1,#lblReadCardNo").show(),t.find("#ltrDocName,#lblReadDocName,#ltrcardNoI94,#ltrPassportNo,#lblReadPassNum,#ltrExpdate,#ltrPassExpDate,#lblReadPassExpDate,#ltrAlienIdenficationNo,#ltrCountry,#lblReqDocName,#lblReqCardNo,#lblReqPassportNo,#lblReqExpdate,#lblReqAlienIdnNo,#lblReqCountryOfIssuance,#lblCountryOfIssuance").hide()):c=="EMAC"&&f=="True"&&e=="No"?(t.find("#ltrUSCInum,#lblReadAleinDocId,#ltrCardNo1,#lblReadCardNo,#ltrExpdate,#lblReadPassExpDate").show(),t.find("#ltrDocName,#lblReadDocName,#ltrcardNoI94,#ltrPassportNo,#lblReadPassNum,#ltrPassExpDate,#ltrAlienIdenficationNo,#ltrCountry,#lblReqDocName,#lblReqCardNo,#lblReqPassportNo,#lblReqExpdate,#lblReqAlienIdnNo,#lblReqCountryOfIssuance,#lblCountryOfIssuance").hide()):c=="OTHR"&&f=="True"&&e=="No"&&(t.find("#ltrDocName,#lblReadDocName,#ltrAlienIdenficationNo,#lblReadAleinDocId,#ltrExpdate,#lblReadPassExpDate").show(),t.find("#ltrcardNoI94,#ltrCardNo1,#lblReadCardNo,#ltrPassportNo,#lblReadPassNum,#ltrPassExpDate,#ltrUSCInum,#ltrCountry,#lblReqDocName,#lblReqCardNo,#lblReqPassportNo,#lblReqExpdate,#lblReqAlienIdnNo,#lblReqCountryOfIssuance,#lblCountryOfIssuance").hide()));n.context.activeDivID.indexOf("wfmClaimWithdrawalMaintenance")>-1&&(t.find("#ddlWithdrawalReasons").val(""),t.find("#ddlWithdrawalReasons")!==null&&t.find("#ddlWithdrawalReasons")!=undefined&&t.find("#ddlWithdrawalReasons").trigger("change"));n.context.activeDivID.indexOf("wfmClaimReopenWizard")>-1&&(t.find("#ddlCountryReOpen").val()!=null&&t.find("#ddlCountryReOpen").val()=="1"&&t.find("#ddlStateReOpen").val()!="MD"&&t.find("#ddlStateReOpen").val()!=undefined&&t.find("#ddlStateReOpen").val()!=""?t.find("#ltrCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():t.find("#ltrCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide());n.context.activeDivID.indexOf("wfmReopenPUAClaimWizard")>-1&&(t.find("#ddlCountryReOpen").val()!=null&&t.find("#ddlCountryReOpen").val()=="1"&&t.find("#ddlStateReOpen").val()!="MD"&&t.find("#ddlStateReOpen").val()!=undefined&&t.find("#ddlStateReOpen").val()!=""?t.find("#ltrCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").show():t.find("#ltrCommuteInfo,#ltrCommuteToStateInd,#lblCommuteToStateInd,#rblCommuteToStateInd,#ltrSeekingWorkInStateInd,#lblSeekingWorkInStateInd,#rblSeekingWorkInStateInd").hide());n.context.activeDivID.indexOf("wfmEmployerRegistrationWizard")==0&&(p=$("#"+n.context.activeDivID+" #lblIstrEmployerTermsAndCondition"),p.after("<a href='"+p.text()+"' target='_blank'>Terms and Condition<\/a>"));n.context.activeDivID.indexOf("wfmEmployerUnitMaintenance")==0&&nsUserFunctions.ReloadPartialView();n.context.activeDivID.indexOf("wfmClaimantMessageDetailsMaintenance")==0&&(localStorage.getItem("MultilingualReload")!="true"&&nsUserFunctions.ReloadAlertsAndMessage(),w=nsCommon.GetDataItemFromDivID(n.context.activeDivID),nsCommon.AddParentFormsinRefreshList(w));n.context.activeDivID.indexOf("wfmCreateNewIssueWizard")==0&&(ns.oldChildIdx=null,ns.oldParentIdx=null)},ChangeDispalyMessage:function(n){var i=n.context.Message,t=n.context.activeDivID,u=n.context.MessageID,o=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),r,f,e;return nsUserFunctions.IsAsteriskPresent(t)?$("#divx").show():$("#divx").hide(),(t.indexOf("wfmResetClaimantRegistrationPasswordMaintenance")==0||t.indexOf("wfmUserPasswordInfoMaintenance")==0)&&((u==7||u==8)&&(i=""),r=!1,ns.viewModel!=undefined&&ns.viewModel[t]!=undefined&&ns.viewModel[t].OtherData!=undefined&&ns.viewModel[t].OtherData.IsinvalidAnswer!=undefined&&(r=ns.viewModel[t].OtherData.IsinvalidAnswer,r==!0&&(i=""))),t.indexOf("wfmForgotPINMaintenance")==0?(u==7&&(i=""),r=!1,ns.viewModel!=undefined&&ns.viewModel[t]!=undefined&&ns.viewModel[t].OtherData!=undefined&&ns.viewModel[t].OtherData.IsinvalidAnswer!=undefined&&(r=ns.viewModel[t].OtherData.IsinvalidAnswer,r==!0&&(i=""))):(u==7||i.indexOf("[]")==0||u==8||i.indexOf("[ ]")>-1||i.indexOf(" [  ]")>-1)&&(i=""),(t.indexOf("wfmClaimantRegistrationWizard")==0||t.indexOf("wfmPUAClaimantRegistrationWizard")==0)&&ns.settings.data.action.indexOf("FinishDialogData")==0&&(f=$("#"+t+" #lblPopupFName").text(),f=="Y"&&(e=$("#"+t+" #btnpopupwiz"),setTimeout(function(n){n.trigger("click")},0,e))),i},DownloadDocument:function(n){var t;return ns.DirtyData[n.context.activeDivID]===undefined?(t=nsCommon.GetFormNameFromDivID(n.context.activeDivID),ns.DirtyData[n.context.activeDivID]={HeaderData:{},istrFormName:t},ns.DirtyData[n.context.activeDivID].HeaderData={MaintenanceData:{}},ns.DirtyData[n.context.activeDivID].HeaderData.MaintenanceData=ns.viewModel[n.context.activeDivID].HeaderData.MaintenanceData):(t=nsCommon.GetFormNameFromDivID(n.context.activeDivID),ns.DirtyData[n.context.activeDivID].HeaderData.istrFormName=t),!0},DownloadQuestionnaireAnswerSetDetail:function(n){ns.activityStart();var t=$("#lblAnswerSetID").text(),i=$("#lblFactFindingId").text();return nsCommon.SyncPost("GenerateAnswerSetDetailPDF",{SenderForm:ns.viewModel.currentForm,iintAnswerSetID:t,iintFactFindingID:i},null,"POST"),nsUserFunctions.NavigateToParentWithLoad(n),ns.activityComplete(),!1},DownloadQuestionnaireAnswerSetDetailRegistration:function(){ns.activityStart();var n=$("#lblPrintProceedToNextWeek").text();return n||(n=0),nsCommon.SyncPost("GenerateAnswerSetDetailPDFRegistrationForClaimant",{SenderForm:ns.viewModel.currentForm,iintClaimantID:n},null,"POST"),ns.activityComplete(),!0},Downloadandreload:function(n){nsUserFunctions.DownloadQuestionnaireAnswerSetDetailRegistration(n);nsUserFunctions.ReloadToHomeWithRecentClaimDetails(n)},PrintScreen:function(){if(ns.viewModel.currentModel.indexOf("Wizard")>0){var i=$(ns.viewModel.srcElement).closest('div[class="swMain"]')[0].id,t=$("#"+i).data("smartWizard"),n=$(t.elmStepContainer.find(".content")[t.curStepIdx])[0].id;(n=="wzsFinalStep"||n=="wzsTempUidAndPwd"||n=="wzsTABWeeklyCertConfirmation"||n=="wzsRTAAInitialQues"||n=="wzsFinalStepProceedToNextWeek")&&$("#"+n).jqprint({debug:!1})}},PrintScreenNew:function(n){if(ns.viewModel.currentModel.indexOf("Wizard")>0){var t=$("#"+n.context.activeDivID);lstrHideControl=".actionBar,.PrintButton,.ProgressBar,.anchor";t.find(lstrHideControl).hide();nsEvents.btnPrintPage_Click(n);t.find(lstrHideControl).show()}else nsEvents.btnPrintPage_Click(n)},KillClaimantCorTrackingMaintenance:function(n){var t=n.context.activeDivID;for(s in ns.viewModel)s.indexOf("wfmClaimantCorTrackingMaintenance")==0&&(elmToDelete=$("[linkedto="+s+"]").closest("li").find("a.delete-link"),delete ns.DirtyData[s],ns.blnShowConfirmMsgForChildNodeDelete=!1,elmToDelete.trigger("click"));$("#btnOpenLookupclaimant")!==null&&$("#btnOpenLookupclaimant")!=undefined&&$("#btnOpenLookupclaimant").trigger("click")},EvaluateHtml:function(n){var o=nsCommon.GetFormNameFromDivID(n.context.activeDivID),t=$("#"+n.context.activeDivID),f="",u="",e="",i="",r="",s=new DOMParser;switch(o){case"wfmClaimantNotesLookup":f=t.find("#GridTable_dgrResult #Table_GridTable_dgrResult tr");u="Notes";i=t.find("#GridTable_dgrResult #Pager_dgrResult ul li a");r=t.find("#GridTable_dgrResult #Table_GridTable_dgrResult tr th");break;case"wfmClaimantMaintenance":f=t.find("#GridTable_grvBusNotes1 #Table_GridTable_grvBusNotes1 tr");u="Notes";i=t.find("#GridTable_grvBusNotes1 #Pager_grvBusNotes1 ul li a");r=t.find("#GridTable_grvBusNotes1 #Table_GridTable_grvBusNotes1 tr th")}f!=undefined&&u!=undefined&&u!=""&&f.each(function(){var f=$(this).find('td[data-th="Html Notes"]'),n=$(this).find('td[data-th="'+u+'"]'),t,i,r;e=f.text();e!=undefined&&e!=""&&(t=s.parseFromString(e,"text/html"),n.html(t.firstChild),i=n.find("html body").html(),n.html(i),r=n.find("a"),r.each(function(){$(this).addClass("Link_Notes")}))});r!=undefined&&r!=""&&r.length>0&&r.each(function(){$(this).on("click",function(){setTimeout(function(){nsUserFunctions.EvaluateHtml(n)},100)})});i!=undefined&&i!=""&&i.length>0&&i.each(function(){$(this).on("click",function(){setTimeout(function(){nsUserFunctions.EvaluateHtml(n)},100)})})},ValidateBirthDate:function(n){var t;return(n.context.activeDivID.indexOf("wfmClaimantRegistrationWizard")>-1||n.context.activeDivID.indexOf("wfmPUAClaimantRegistrationWizard")>-1)&&($("#txtBirthDate").val()!==undefined||$("#txtBirthDate").val()!="")?(t=new Date($("#txtBirthDate").val()),nsUserFunctions.ValidateDateOfBirth(t)):n.context.activeDivID.indexOf("wfmClaimantMaintenance")>-1&&($("#txtDateOfBirth").val()!==undefined||$("#txtDateOfBirth").val()!="")?(t=new Date($("#txtDateOfBirth").val()),nsUserFunctions.ValidateDateOfBirth(t)):void 0},OpenOrDeleteWaiver:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),r=nsUserFunctions.getGridSelectedRow(n),i;return r[0].dt_ExemptionReason_1_0==="TRA Training Break"||r[0].dt_ExemptionReason_1_0==="TRA Training"?(i={},i[0]=23699,t.find("#GlobalMessageDiv").text(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")),t.find("#GlobalMessageDiv").addClass("GlobalError"),t.find("#GlobalMessageDiv").css("display","block"),!1):(t.find("#GlobalMessageDiv").text(""),t.find("#GlobalMessageDiv").addClass("GlobalError"),t.find("#GlobalMessageDiv").css("display","none"),!0)},getGridSelectedRow:function(n){var t,u,f,h,e,o;t=n.context.activeDivID.indexOf("wfmClaimantMaintenance")===0?nsUserFunctions.GetEventInfoForButton(n):nsCommon.GetEventInfo(n);var i=t.ActiveDivID,s=t.lbtnSelf,c=t.lintSelectedIndex,r=MVVMGlobal.GetControlAttribute(s,"GetAllAttr",i,!0);return(r=r!=null?r:{},u="",u=$(s).attr(nsConstants.SFW_RELATED_CONTROL)||r[nsConstants.SFW_RELATED_CONTROL],h=!1,u!=null&&((e=nsCommon.CheckGridOrListView(i,u),e.NotFound)||(h=e.blnIsListView,f=nsCommon.GetWidgetByActiveDivIdAndControlId(i,e.RelatedControlId),f==undefined||f.jsObject==undefined)))?!1:(o=f.getSelectedRows(c,!0),o.length<1&&n.context.activeDivID.indexOf("wfmClaimantMaintenance")===0&&nsCommon.DispalyError("Please select record(s).",i),o)},GetEventInfoForButton:function(n){var t={};return t.FormContainerID="",t.ActiveDivID="",t.lbtnSelf,t.lintSelectedIndex=-1,t.lbtnSelf=n.srcElement,$(t.lbtnSelf).closest(nsConstants.FORMCONTAINER_SELECTOR).length>0&&(t.FormContainerID=[nsConstants.HASH,$(t.lbtnSelf).closest(nsConstants.FORMCONTAINER_SELECTOR)[0].id].join("")),t.ActiveDivID=nsCommon.GetActiveDivId(t.lbtnSelf),t.lintSelectedIndex===-1&&t.lbtnSelf.getAttribute("NoRowIndexForSelect")==undefined&&(t.lintSelectedIndex=t.lbtnSelf.getAttribute("rowIndex")),t.lintSelectedIndex==null&&(t.lintSelectedIndex=-1),t},RequiredNonMonDoc:function(n){var t,i;return(ns.activityStart(),t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),t.find("#GlobalMessageDiv").text(""),t.find("#GlobalMessageDiv").css("display","none"),t.find("#GlobalMessageDiv").removeClass("GlobalError"),i=nsUserFunctions.getGridSelectedRow(n),i[0].dt_AppealType_7_0=="NDET"&&i[0].dt_Referencevalue_8_0=="")?(t.find("#GlobalMessageDiv").text("To file an appeal on this determination, please contact the Lower Appeals Division at 410-767-2421."),t.find("#GlobalMessageDiv").addClass("GlobalError"),t.find("#GlobalMessageDiv").css("display","block"),ns.activityComplete(),!1):(ns.activityComplete(),!0)},ValidateDateOfBirth:function(n){var u=new Date,i=u.getFullYear()-n.getFullYear(),f=u.getMonth()-n.getMonth(),t,r;return((f<0||f===0&&u.getDate()<n.getDate())&&i--,parseInt(i)<0)?(t={},t[0]=43817,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),ns.viewModel.currentModel),!1):parseInt(i)<14?(t={},t[0]=43841,t[1]=i,r=confirm(nsCommon.SyncPost("GetMessageText",t,undefined,"POST")),r?(t={},t[0]=43875,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),ns.viewModel.currentModel),!1):!1):parseInt(i)<=17||parseInt(i)>99?(t={},t[0]=43818,r=confirm(nsCommon.SyncPost("GetMessageText",t,undefined,"POST")),r?!0:!1):!0},ValidateLastWorkDate:function(){var t,n,i;if($("#txtLastWorkDate").val()!==undefined||$("#txtBirthDate").val()!="")return(t=$("#txtLastWorkDate").val(),t=="true")?(n={},n[0]=20735,i=confirm(nsCommon.SyncPost("GetMessageText",n,undefined,"POST")),i?!0:!1):!0},CloseBanner:function(){var n=$("#BannerMessage").data("kendoWindow");n!=undefined&&n.close()},SetType:function(n){if(ns.viewModel.currentModel.indexOf("Wizard")>0){var t=$("#"+n.context.activeDivID),i=t.find("#ddlCatValueOne").val();(i=="AGAD"||i=="CLAD"||i=="EMAD")&&(t.find("#lblPrimary").addClass("HideControl"),t.find("#lblPrimaryAsteriskR").addClass("HideControl"),t.find("#rblPrimary").addClass("HideControl"))}else nsEvents.btnPrintPage_Click(n)},OpenStaticPopupForClaimant:function(n){var u=document.getElementById("lblIstrStaffportal").innerText,i,r,t;return u.toString()==="Claimant"&&(i=n.context.idictParam.param0),r=n.context.idictParam.param1,t=$("#"+i),t.find("#CloseButton").remove(),t.attr("DialogPanelClose","CloseButton").append("<input type='button' id='CloseButton' onclick='nsUserFunctions.CloseStaticPopup(this);' value ='Close' class='button'>"),t.kendoWindow({animation:!1,title:r,visible:!1,minWidth:450,modal:!0,open:function(){$("html, body").css("overflow","auto")}}),t.show(),t.data("kendoWindow").center().open(),!1},CheckCountrySelected:function(){var n,i,t;if($("#ddlCountry").val()!==undefined){if(n=parseInt($("#ddlCountry").val()),i=$("#ddlCountry").val(),i==null)return!0;if(n!==1&&n!==38)return t={},t[0]=43816,alert(nsCommon.SyncPost("GetMessageText",t,undefined,"POST")),!1}return!0},WithdrawalReasonChange:function(n){n.context.value=="OTHR"?($("#lblExplanation").show(),$("#txtExplanation").parent().show()):($("#lblExplanation").hide(),$("#txtExplanation").parent().hide())},OpenPopupEmployerWageDetailGrid:function(){var u=document.getElementById("lblWageEmployer").innerText,f=$("#pnlEmployerWageDetails"),t=$(document.createElement("div")),n=document.getElementById("pnlEmployerWageDetails"),i,r;return n.style.display=="none"&&(n.style.display="block"),i=n.cloneNode(!0),$(t).append(i),r=$(t).kendoWindow({animation:!1,title:"Wage detail information for "+u,visible:!0,width:"600px",modal:!0,close:function(){}}).data("kendoWindow"),r.open().center(),n.style.display="none",!1},CheckEmployerRequired:function(n){var t=!1,i=n.context.control[0].selectedIndex,r=$("#"+n.context.control.attr("sfwparentcontrol"))[0].selectedIndex;i!=null&&r!=null&&(ns.oldChildIdx==null||ns.oldChildIdx==i?ns.oldParentIdx!=r&&(t=!0):t=!0);t==!0&&n.context.control[0].selectedIndex>=1&&(ns.oldChildIdx=i,ns.oldParentIdx=r,$("#btnCheckEmployerReq")!==null&&$("#btnCheckEmployerReq")!=undefined&&$("#btnCheckEmployerReq").trigger("click"))},OpenTab:function(n){n.innerText.indexOf("http")>-1&&window.open(n.innerText)},NavigateToContinueClaimWizard:function(){return window.location.reload(!1),!1},ShowMostRecentAddressPanelforEmployer:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID),i=t.find("#lblIsWagesSubmitted").text(),r=t.find("#lblWorkedInd").text(),u=t.find("#lblEmploymentType").text();return i!=undefined&&i=="false"&&u!="MLTR"?(t.find("#pnlMostRecentAddressRegClmt").show(),t.find("#pnlJobtitleRegClmt").show()):i=="true"&&r=="Y"&&u!="MLTR"?(t.find("#pnlMostRecentAddressRegClmt").show(),t.find("#pnlJobtitleRegClmt").show()):(i=="true"&&r=="N"&&u!="MLTR"||i=="true"&&(r==""||r==undefined)&&u!="MLTR")&&(t.find("#pnlMostRecentAddressRegClmt").hide(),t.find("#pnlJobtitleRegClmt").hide()),!1},AddNewFictitiousEmployer:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);return t.find("#pnlMostRecentAddressRegClmt").show(),t.find("#pnlJobtitleRegClmt").show(),!1},KnowtionSearchByFormId:function(n){if(n!="wfmCenterLeftKnowtionSearchMaintenance"&&n!=undefined){var t=nsCommon.sessionGet("EKSFormId"),i=!(n==t);nsCommon.sessionSet("EKSFormId",n);i&&n!=undefined&&$("#KnowtionQuickSearch #wfmCenterLeftKnowtionSearchMaintenance").length>0&&setTimeout(function(){ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance={};ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance.DetailsData={};ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance.HeaderData={};ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance.HeaderData.MaintenanceData={txtIstrFormId:n};ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance.QuestionairreData={};$("#KnowtionQuickSearch #wfmCenterLeftKnowtionSearchMaintenance #btnSearchByFormId")!==null&&$("#KnowtionQuickSearch #wfmCenterLeftKnowtionSearchMaintenance #btnSearchByFormId")!=undefined&&$("#KnowtionQuickSearch #wfmCenterLeftKnowtionSearchMaintenance #btnSearchByFormId").trigger("click")},1e3)}},BuildKnowtionForm:function(n,t,i){var f,b,k,u,d,r,a,g,h,c,nt,v,y;try{var e=ns.SenderKey,o=ns.viewModel.currentModel,s=ns.viewModel.currentForm;if(ns.viewModel.currentModel=n,f=nsRequest.getTemplate(n,!0),f.ExtraInfoFields.AccessDenied!=undefined&&f.ExtraInfoFields.AccessDenied==nsConstants.TRUE){ns.ReassignCurrentModel(s,o,e);return}var l=f.ExtraInfoFields.FormId,p=ns.Templates[n].ExtraInfoFields.DefaultButtonID,w="";if(p!==undefined&&(w=[" DefaultButtonID='",p,"' "].join("")),b=["<div "+w+" id='"+n+"'><div id='",n,"ErrorDiv' class='ErrorDiv'><\/div>",f.Template,"<\/div>"].join(""),t!==undefined&&t!==null&&t.ValidationSummary.length>0){ns.ReassignCurrentModel(s,o,e);return}if($([nsConstants.HASH,n,nsConstants.ERROR_DIV].join("")).hide(),u=$([nsConstants.HASH,n].join("")),u.length>0&&(k=u.parent()),k===undefined&&($("#KnowtionQuickSearch").append(b),u=$([nsConstants.HASH,n].join(""))),d=0,ns.blnDataFromServer=!0,t===undefined){var tt={ActivityCopyParams:{},NavigationParams:d},it={SenderKey:ns.viewModel[n]!=undefined&&ns.viewModel[n].SenderKey!=undefined?ns.viewModel[n].SenderKey:"",SenderForm:n,SenderID:"CenterLeft"};r=nsRequest.SyncPost(["GetFormForOpen?astrFormID=",nsCommon.GetProperFormName(n)].join(""),tt,null,"POST",it)}else r=t;if(r==undefined)return ns.ReassignCurrentModel(s,o,e),!1;if(r!=null&&r!=""&&r.ExtraInfoFields!=undefined&&r.ExtraInfoFields.AccessDenied!=undefined)return r=null,nsCommon.localStorageRemove([l,"_Template_",ns.Language].join("")),delete ns.viewModel[n],delete ns.Templates[l],!1;a=nsCommon.GetDataItemFromDivID(n);a==undefined?(g={title:"Knowtion Form",divID:n,formID:ns.viewModel.currentForm,modelID:n,items:[],expanded:!0,PrimaryKey:r.DomainModel.KeysData.PrimaryKey,ChildItemsHistory:{},navParams:r.DomainModel.OtherData.navParams},ns.tabsTreeView.push(g)):a.navParams=r.DomainModel.OtherData.navParams;h=nsCommon.getExistingWidgetControls(n,u);c={};h!=undefined&&(c=h.WidgetControls,nt=h.DetailData);ns.viewModel[n]={HeaderData:{},DetailsData:{},ListControlData:{},ExtraInfoFields:{},ControlsHaveingVisibility:{},KeysData:{}};r.DomainModel.HeaderData.ClientVisibility=ns.Templates[l].ClientVisibility;ns.viewModel[n].HeaderData=MVVM.ServiceLoad.GetObservable(r.DomainModel.HeaderData);ns.viewModel[n].DetailsData=MVVM.ServiceLoad.GetObservable(r.DomainModel.DetailsData);nsCommon.ResetDetailData(n,nt);ns.viewModel[n].ExtraInfoFields=MVVM.ServiceLoad.GetObservable(r.ExtraInfoFields);ns.viewModel[n].KeysData=r.DomainModel.KeysData;ns.viewModel[n].ListControlData=r.DomainModel.ListControlData;ns.viewModel[n].SenderKey=encodeURIComponent(r.DomainModel.OtherData.SenderKey);ns.viewModel[n].WidgetControls=c;ns.viewModel[n].OtherData=r.DomainModel.OtherData;v=nsCommon.GetApplyUIData(n,n,n,n);ns.applyKendoUI("#KnowtionQuickSearch",n,n,u,c,v);ns.viewModel[n].HeaderData.checkBoxListener=function(n){MVVMGlobal.inspectCheckBox(n.target)};nsVisi.AddClientVisibilityAttributes(["#KnowtionQuickSearch",nsConstants.SPACE_HASH,n].join(""),ns.viewModel[n].HeaderData.ClientVisibility,u);nsCommon.ApplyBindingToForm(u,ns.viewModel[n].HeaderData);nsVisi.BindChangeEventForClientCicibility(n,u);r.DomainModel.HeaderData!=null&&r.DomainModel.HeaderData.ControlList!=null&&r.DomainModel.HeaderData.ControlList.HiddenControls!=undefined&&(y=r.DomainModel.HeaderData.ControlList.HiddenControls);nsCommon.BindDetailData(r,"#KnowtionQuickSearch",n,u,v,r.DomainModel.DetailsData,y,!0,!0);nsVisi.ApplyClientVisibilityToAllControls(n,null,u);nsVisi.ExecuteClientEnablityForForm(n,null,u);y!=null&&nsCommon.ApplyVisiblityRules(r.DomainModel.HeaderData.ControlList,n,u);ns.ReassignCurrentModel(s,o,e);setTimeout(function(){$("#KnowtionQuickSearch").scrollTop(0)},0);ns.activityComplete();i==!0&&nsUserFunctions.KnowtionSearchByFormId(n)}catch(rt){console.log(rt.message)}},SetUnSavedFormIcon:function(n){return n.context.activeDivID.indexOf("wfmCenterLeftKnowtionSearchMaintenance")===0?!1:!0},KnowtionHelpCenterLeftTitleClick:function(n){var u,l,s,f,a,c,t;try{var v=nsCommon.GetFormNameFromDivID(n.context.activeDivID),e="",r=nsCommon.GetEventInfo(n),y=r.FormContainerID,i=r.ActiveDivID,h=r.lbtnSelf,p=r.lintSelectedIndex,o=MVVMGlobal.GetControlAttribute(h,nsConstants.SFW_RELATED_CONTROL,i);return o==null?(alert(DefaultMessages.GridNotFound),!1):(u=nsCommon.CheckGridOrListView(i,o),u.NotFound)?!1:(l=u.blnIsListView,s=nsCommon.GetWidgetByActiveDivIdAndControlId(i,u.RelatedControlId),s==undefined||s.jsObject==undefined)?!1:(f=nsCommon.GetNavigationParams(h,n),f.larrRows.length==0&&o!=undefined)?(t={},t[0]=4246,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),i),!1):(a=f.larrRows,e=f.larrRows[0].astrHelpUrl,e!==""?(c=ns.ReportPagePath+"AspxPages/wfmAuthenticateKnowtion.aspx?doSSO=true&Url="+e,window.open(c)):(t={},t[0]=43820,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),i)),!1)}catch(n){console.log(n.message)}},KnowtionMoreResults:function(n){var r="",i;try{if(ns.Language!=undefined&&(r=ns.Language),r=="es-US"){var u=$("#KnowtionSpanishSearchUrl").val(),f=$("#UserSerialIdForKnowtion").val(),t="";t=$("#lbllstrSearchKeyword").text();i=ns.ReportPagePath+"AspxPages/wfmAuthenticateKnowtion.aspx?doSSO=true&Url="+u+t+"&SId="+f}else{var u=$("#KnowtionSearchUrl").val(),f=$("#UserSerialIdForKnowtion").val(),t="";t=$("#lbllstrSearchKeyword").text();i=ns.ReportPagePath+"AspxPages/wfmAuthenticateKnowtion.aspx?doSSO=true&Url="+u+t+"&SId="+f}return window.open(i),!1}catch(n){console.log(n.message)}},KnowtionAskaQuestion:function(n){var t="",i="",f=$("#ClaimantPortalName").val();if(ns.SiteName==f&&(t="Claimant"),ns.Language!=undefined&&(i=ns.Language),i=="es-US")var r=$("#KnowtionSpanishAskQuestionUrl").val(),u=$("#UserSerialIdForKnowtion").val(),e=ns.ReportPagePath+"AspxPages/wfmAuthenticateKnowtion.aspx?doSSO=true&Url="+r+"?LOBPortal="+t+"&SId="+u;else var r=$("#KnowtionAskQuestionUrl").val(),u=$("#UserSerialIdForKnowtion").val(),e=ns.ReportPagePath+"AspxPages/wfmAuthenticateKnowtion.aspx?doSSO=true&Url="+r+"?LOBPortal="+t+"&SId="+u;try{return window.open(e),!1}catch(n){console.log(n.message)}},ResetSearchKeyword:function(){var n=nsUserFunctions.GetActiveDomElement(this);return n.find("#txtIstrSearchKeyword").val(""),!1},OpenKnowtion:function(){try{var n=$("#OpenKnowtionUrl").val(),t=$("#UserSerialIdForKnowtion").val(),i=ns.ReportPagePath+"AspxPages/wfmAuthenticateKnowtion.aspx?doSSO=true&Url="+n+"&SId="+t;return window.open(i),!1}catch(r){console.log(r.message)}},FocusKnowtionPanel:function(){return $("#uppAccordian").focus(),!1},PopupOnWithDrawAppeal:function(n){var t=$("#"+n.context.activeDivID);if(n.context.activeDivID.indexOf("wfmViewEmployerLowerAppealMaintenance")===0||n.context.activeDivID.indexOf("wfmViewClaimantLowerAppealMaintenance")===0||n.context.activeDivID.indexOf("wfmViewMaintainLaborDisputeAppealsDetailMaintenance")===0||n.context.activeDivID.indexOf("wfmViewExternalUserAppealMaintenance")===0)return confirm("Are you sure you would like to withdraw this appeal?")},PopUpOnAppealAction:function(n){var t=$("#"+n.context.activeDivID),i,r;if(n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")===0||n.context.activeDivID.indexOf("wfmViewMaintainLaborDisputeAppealsDetailMaintenance")===0)if(t.find("#ddlAction").val()=="RSTR")if(i={},i[0]=43821,r=confirm(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")),r)t.find("#chkPopupDecision").prop("checked",!0),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change");else return t.find("#chkPopupDecision").prop("checked",!1),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change"),!1;else if(t.find("#ddlAction").val()=="CORC")if(i={},i[0]=43822,r=confirm(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")),r)t.find("#chkPopupDecision").prop("checked",!0),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change");else return t.find("#chkPopupDecision").prop("checked",!1),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change"),!1;else return!1;if(n.context.activeDivID.indexOf("wfmAppealMaintenance")===0)if(t.find("#ddlAppealAction").val()=="DSNA"||t.find("#ddlAppealAction").val()=="DSNP")if(i={},i[0]=43823,r=confirm(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")),r)t.find("#chkPopupDecision").prop("checked",!0),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change");else return t.find("#chkPopupDecision").prop("checked",!1),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change"),!1;else if(t.find("#ddlAppealAction").val()=="CORC")if(i={},i[0]=43822,r=confirm(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")),r)t.find("#chkPopupDecision").prop("checked",!0),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change");else return t.find("#chkPopupDecision").prop("checked",!1),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change"),!1;else if(t.find("#ddlAppealAction").val()=="ADMN")if(i={},i[0]=43824,r=confirm(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")),r)t.find("#chkPopupDecision").prop("checked",!0),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change");else return t.find("#chkPopupDecision").prop("checked",!1),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change"),!1;else if(t.find("#ddlAppealAction").val()=="ASJR")if(i={},i[0]=43825,r=confirm(nsCommon.SyncPost("GetMessageText",i,undefined,"POST")),r)t.find("#chkPopupDecision").prop("checked",!0),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change");else return t.find("#chkPopupDecision").prop("checked",!1),t.find("#chkPopupDecision")!==null&&t.find("#chkPopupDecision")!=undefined&&t.find("#chkPopupDecision").trigger("change"),!1;return!0},ShowBoardAppealHearingPanel:function(n){var t=$("#"+n.context.activeDivID);if(t!=null){if(n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")===0||n.context.activeDivID.indexOf("wfmViewMaintainLaborDisputeAppealsDetailMaintenance")===0||n.context.activeDivID.indexOf("wfmReviewAndProcessLaborDisputeAppealWizard")===0||n.context.activeDivID.indexOf("wfmReviewProcessHigherAppealWizard")===0||n.context.activeDivID.indexOf("wfmReviewExternalAppealWizard")===0)return t.find("#pnlBoardHearingDetailsHistory").removeClass("HideControl"),!0}else return!1},ShowLowerAppealHearingPanel:function(n){var t=$("#"+n.context.activeDivID);if(t!=null){if(n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")===0||n.context.activeDivID.indexOf("wfmViewMaintainLaborDisputeAppealsDetailMaintenance")===0||n.context.activeDivID.indexOf("wfmReviewAndProcessLaborDisputeAppealWizard")===0||n.context.activeDivID.indexOf("wfmReviewProcessHigherAppealWizard")===0||n.context.activeDivID.indexOf("wfmReviewExternalAppealWizard")===0)return t.find("#pnlLowerHearingDetailsHistory").removeClass("HideControl"),!0}else return!1},ShowHearingDetailsHistoryPanel:function(n){var t=$("#"+n.context.activeDivID);return t!=null&&(n.context.activeDivID.indexOf("wfmViewClaimantLowerAppealMaintenance")===0||n.context.activeDivID.indexOf("wfmViewEmployerLowerAppealMaintenance")===0)&&t.find("#pnlHearingDetailsHistory").removeClass("HideControl"),!1},ShowEditableSupportingDocument:function(n){var t=$("#"+n.context.activeDivID),i=undefined,r=t.find("#btnLoadSupportingDoc");return i=n.target===undefined?$(this)[0]:n.target,t!=null&&((n.context.activeDivID.indexOf("wfmViewClaimantLowerAppealMaintenance")===0||n.context.activeDivID.indexOf("wfmViewEmployerLowerAppealMaintenance")===0)&&(i.id==="btnEditClaimSuppDoc"&&(t.find("#pnlEditableClaimantSupportDoc").removeClass("HideControl"),t.find("#pnlClaimantAppealsSupportingDocuments").addClass("HideControl"),t.find(".HideLowerEditButton").addClass("HideControl"),t.find(".HideLowerDeleteButton").addClass("HideControl"),t.find("#btnSaveClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerEditClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteClaimSuppDoc").addClass("HideControl"),t.find("#btnCancelClaimantSuppDoc").removeClass("HideControl")),i.id==="btnEditEmployerSuppDoc"&&(t.find("#pnlEditableEmployerSuppDoc").removeClass("HideControl"),t.find("#pnlEmployerAppealsSupportingDocuments").addClass("HideControl"),t.find(".HideLowerDeleteButton").addClass("HideControl"),t.find(".HideLowerEditButton").addClass("HideControl"),t.find("#btnSaveEmployerSuppDoc").removeClass("HideControl"),t.find("#btnDeleteEditLowerEmpSuppDoc").removeClass("HideControl"),t.find("#btnDeleteEmployerSuppDoc").addClass("HideControl"),t.find("#btnCancelEmployerSuppDoc").removeClass("HideControl")),i.id==="btnEditFactSuppDoc"&&(t.find("#pnlEditableFactFinding").removeClass("HideControl"),t.find("#pnlFactFinding").addClass("HideControl"),t.find(".HideLowerDeleteButton").addClass("HideControl"),t.find(".HideLowerEditButton").addClass("HideControl"),t.find("#btnSaveFactSuppDoc").removeClass("HideControl"),t.find("#btnCancelFactFindSuppDoc").removeClass("HideControl")),i.id==="btnShowSavedClaimSuppDoc"&&(t.find("#pnlClaimantAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableClaimantSupportDoc").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl"),t.find("#btnSaveClaimSuppDoc").addClass("HideControl"),t.find("#btnDeleteLowerEditClaimSuppDoc").addClass("HideControl"),t.find("#btnCancelClaimantSuppDoc").addClass("HideControl")),i.id==="btnShowSavedEmployerSuppDoc"&&(t.find("#pnlEmployerAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableEmployerSuppDoc").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl"),t.find("#btnDeleteEditLowerEmpSuppDoc").addClass("HideControl"),t.find("#btnSaveEmployerSuppDoc").addClass("HideControl"),t.find("#btnCancelEmployerSuppDoc").addClass("HideControl")),i.id==="btnShowSavedFactSuppDoc"&&(t.find("#pnlFactFinding").removeClass("HideControl"),t.find("#pnlEditableFactFinding").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl"),t.find("#btnSaveFactSuppDoc").addClass("HideControl"),t.find("#btnCancelFactFindSuppDoc").addClass("HideControl")),i.id==="btnEditAgencySuppDoc"&&(t.find("#pnlEditableAgencySupportingDocs").removeClass("HideControl"),t.find("#pnlAgencySupportingDocuments").addClass("HideControl"),t.find(".HideLowerEditButton").addClass("HideControl"),t.find(".HideLowerDeleteButton").addClass("HideControl"),t.find("#btnSaveAgencySuppDoc").removeClass("HideControl"),t.find("#btnDeleteEditAgencySuppDoc").removeClass("HideControl"),t.find("#btnDeleteAgencySuppDoc").addClass("HideControl"),t.find("#btnCancelAgencySuppDoc").removeClass("HideControl")),i.id==="btnShowSavedAgencySuppDoc"&&(t.find("#pnlAgencySupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableAgencySupportingDocs").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl"),t.find("#btnDeleteEditAgencySuppDoc").addClass("HideControl"),t.find("#btnSaveAgencySuppDoc").addClass("HideControl"),t.find("#btnCancelAgencySuppDoc").addClass("HideControl"))),n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")===0&&(i.id==="btnEditLowerClaimSuppDoc"?(t.find("#pnlClaimantAppealsSupportingDocuments").addClass("HideControl"),t.find("#pnlEditableClaimantSupportDoc").removeClass("HideControl"),t.find("#btnDeleteLowerEditClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerClaimSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").addClass("HideControl"),t.find(".HideHigherDeleteButton").addClass("HideControl"),t.find("#btnSaveLowerClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerClaimSuppDoc").addClass("HideControl"),t.find("#btnCancelClaimantSuppDoc").removeClass("HideControl")):i.id==="btnEditLowerEmpSuppDoc"?(t.find("#pnlEmployerAppealsSupportingDocuments").addClass("HideControl"),t.find("#pnlEditableEmployerSuppDoc").removeClass("HideControl"),t.find("#btnDeleteEditLowerEmpSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerEmpSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").addClass("HideControl"),t.find(".HideHigherDeleteButton").addClass("HideControl"),t.find("#btnSaveLowerEmpSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerEmpSuppDoc").addClass("HideControl"),t.find("#btnCancelEmployerSuppDoc").removeClass("HideControl")):i.id==="btnEditBoardClaimSuppDoc"?(t.find("#pnlClaimantBoardAppealsSupportingDocuments").addClass("HideControl"),t.find("#pnlEditableClaimantBoardSupportDoc").removeClass("HideControl"),t.find("#btnDeleteBoardEditClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteBoardClaimSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").addClass("HideControl"),t.find(".HideHigherDeleteButton").addClass("HideControl"),t.find("#btnSaveBoardClaimSuppDoc").removeClass("HideControl"),t.find("#btnCancelBoardClaimSuppDoc").removeClass("HideControl")):i.id==="btnEditBoardEmpSuppDoc"?(t.find("#pnlEmployerBoardAppealsSupportingDocuments").addClass("HideControl"),t.find("#pnlEditableEmployerBoardSuppDoc").removeClass("HideControl"),t.find("#btnDeleteBoardEditEmpSuppDoc").removeClass("HideControl"),t.find("#btnDeleteBoardEmpSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").addClass("HideControl"),t.find(".HideHigherDeleteButton").addClass("HideControl"),t.find("#btnSaveBoardEmpSuppDoc").removeClass("HideControl"),t.find("#btnDeleteBoardEmpSuppDoc").addClass("HideControl"),t.find("#btnCancelBoardEmpSuppDoc").removeClass("HideControl")):i.id==="btnEditSuppDoc"?(t.find("#pnlEditableFactFinding").removeClass("HideControl"),t.find("#pnlFactFinding").addClass("HideControl"),t.find("#btnDeleteEditFFSuppDoc").removeClass("HideControl"),t.find("#btnDeleteFFSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").addClass("HideControl"),t.find(".HideHigherDeleteButton").addClass("HideControl"),t.find("#btnSaveSuppDoc").removeClass("HideControl"),t.find("#btnCancelFactFindSuppDoc").removeClass("HideControl")):i.id==="btnAgencyLowerAppealEdit"?(t.find("#pnlAgencyLowerAppealsSupportingDocuments").addClass("HideControl"),t.find("#pnlEditableAgencyLowerSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerEditableAgencySuppDoc").removeClass("HideControl"),t.find("#btnAgencyLowerAppealDelete").addClass("HideControl"),t.find(".HideHigherEditButton").addClass("HideControl"),t.find(".HideHigherDeleteButton").addClass("HideControl"),t.find("#btnAgencyLowerAppealSave").removeClass("HideControl"),t.find("#btnAgencyLowerAppealDelete").addClass("HideControl"),t.find("#btnCancelLowerAgencySuppDoc").removeClass("HideControl")):i.id==="btnAgencyBoardAppealEdit"&&(t.find("#pnlAgencyBoardSuppDoc").addClass("HideControl"),t.find("#pnlEditableAgencyBoardSuppDoc").removeClass("HideControl"),t.find("#btnDeleteBoardEditableAgencySuppDoc").removeClass("HideControl"),t.find("#btnAgencyBoardAppealDelete").addClass("HideControl"),t.find(".HideHigherEditButton").addClass("HideControl"),t.find(".HideHigherDeleteButton").addClass("HideControl"),t.find("#btnAgencyBoardAppealSave").removeClass("HideControl"),t.find("#btnAgencyBoardAppealDelete").addClass("HideControl"),t.find("#btnCancelBoardAgencySuppDoc").removeClass("HideControl")),HideHigherEditButton(n))),!1},HideEditableSupportingDocument:function(n){var t=$("#"+n.context.activeDivID),i=undefined,r=t.find("#btnLoadSupportingDoc");return i=n.target===undefined?$(this)[0]:n.target,t!=null&&((n.context.activeDivID.indexOf("wfmViewClaimantLowerAppealMaintenance")===0||n.context.activeDivID.indexOf("wfmViewEmployerLowerAppealMaintenance")===0)&&(i.id==="btnEditClaimSuppDoc"&&(t.find("#pnlEditableClaimantSupportDoc").removeClass("HideControl"),t.find("#pnlClaimantAppealsSupportingDocuments").addClass("HideControl")),i.id==="btnEditEmployerSuppDoc"&&(t.find("#pnlEditableEmployerSuppDoc").removeClass("HideControl"),t.find("#pnlEmployerAppealsSupportingDocuments").addClass("HideControl")),i.id==="btnEditFactSuppDoc"&&(t.find("#pnlEditableFactFinding").removeClass("HideControl"),t.find("#pnlFactFinding").addClass("HideControl")),i.id==="btnShowSavedClaimSuppDoc"&&(t.find("#pnlClaimantAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableClaimantSupportDoc").addClass("HideControl")),i.id==="btnShowSavedEmployerSuppDoc"&&(t.find("#pnlEmployerAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableEmployerSuppDoc").addClass("HideControl")),i.id==="btnShowSavedFactSuppDoc"&&(t.find("#pnlFactFinding").removeClass("HideControl"),t.find("#pnlEditableFactFinding").addClass("HideControl")),i.id==="btnShowCancelClaimantSuppDoc"&&(t.find("#pnlEditableClaimantSupportDoc").addClass("HideControl"),t.find("#pnlClaimantAppealsSupportingDocuments").removeClass("HideControl"),t.find("#btnDeleteClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerEditClaimSuppDoc").addClass("HideControl"),t.find("#btnSaveClaimSuppDoc").addClass("HideControl"),t.find("#btnEditClaimSuppDoc").removeClass("HideControl"),t.find("#btnCancelClaimantSuppDoc").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl")),i.id==="btnShowCancelEmployerSuppDoc"&&(t.find("#pnlEmployerAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableEmployerSuppDoc").addClass("HideControl"),t.find("#btnDeleteEmployerSuppDoc").removeClass("HideControl"),t.find("#btnDeleteEditLowerEmpSuppDoc").addClass("HideControl"),t.find("#btnSaveEmployerSuppDoc").addClass("HideControl"),t.find("#btnEditEmployerSuppDoc").removeClass("HideControl"),t.find("#btnCancelEmployerSuppDoc").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl")),i.id==="btnShowCancelAgencySuppDoc"&&(t.find("#pnlAgencySupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableAgencySupportingDocs").addClass("HideControl"),t.find("#btnDeleteAgencySuppDoc").removeClass("HideControl"),t.find("#btnDeleteEditAgencySuppDoc").addClass("HideControl"),t.find("#btnSaveAgencySuppDoc").addClass("HideControl"),t.find("#btnEditAgencySuppDoc").removeClass("HideControl"),t.find("#btnCancelAgencySuppDoc").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl")),i.id==="btnShowCancelFactFindSuppDoc"&&(t.find("#pnlFactFinding").removeClass("HideControl"),t.find("#pnlEditableFactFinding").addClass("HideControl"),t.find("#btnSaveFactSuppDoc").addClass("HideControl"),t.find("#btnEditFactSuppDoc").removeClass("HideControl"),t.find("#btnCancelFactFindSuppDoc").addClass("HideControl"),t.find(".HideLowerEditButton").removeClass("HideControl"),t.find(".HideLowerDeleteButton").removeClass("HideControl"))),n.context.activeDivID.indexOf("wfmHigherAppealDetailMaintenance")===0&&(i.id==="btnSaveLowerClaimSuppDocClient"?(t.find("#pnlClaimantAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableClaimantSupportDoc").addClass("HideControl"),t.find("#btnSaveLowerClaimSuppDoc").addClass("HideControl"),t.find("#btnDeleteLowerEditClaimSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnCancelClaimantSuppDoc").addClass("HideControl")):i.id==="btnSaveLowerEmpSuppDocClientClick"?(t.find("#pnlEmployerAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableEmployerSuppDoc").addClass("HideControl"),t.find("#btnSaveLowerEmpSuppDoc").addClass("HideControl"),t.find("#btnDeleteEditLowerEmpSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnCancelEmployerSuppDoc").addClass("HideControl")):i.id==="btnSaveBoardClaimSuppDocClientClick"?(t.find("#pnlClaimantBoardAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableClaimantBoardSupportDoc").addClass("HideControl"),t.find("#btnSaveBoardClaimSuppDoc").addClass("HideControl"),t.find("#btnDeleteBoardEditClaimSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnCancelBoardClaimSuppDoc").addClass("HideControl")):i.id==="btnSaveBoardEmpSuppDocclientclick"?(t.find("#pnlEmployerBoardAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableEmployerBoardSuppDoc").addClass("HideControl"),t.find("#btnSaveBoardEmpSuppDoc").addClass("HideControl"),t.find("#btnDeleteBoardEditEmpSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnCancelBoardEmpSuppDoc").addClass("HideControl")):i.id==="btnAgencyLowerAppealSaveClientClick"?(t.find("#pnlAgencyLowerAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableAgencyLowerSuppDoc").addClass("HideControl"),t.find("#btnAgencyLowerAppealSave").addClass("HideControl"),t.find("#btnDeleteLowerEditableAgencySuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnCancelLowerAgencySuppDoc").addClass("HideControl")):i.id==="btnAgencyBoardAppealSaveClientClick"?(t.find("#pnlAgencyBoardSuppDoc").removeClass("HideControl"),t.find("#pnlEditableAgencyBoardSuppDoc").addClass("HideControl"),t.find("#btnAgencyBoardAppealSave").addClass("HideControl"),t.find("#btnDeleteBoardEditableAgencySuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnCancelBoardAgencySuppDoc").addClass("HideControl")):i.id==="btnSaveSuppDocClientclick"?(t.find("#pnlEditableFactFinding").addClass("HideControl"),t.find("#pnlFactFinding").removeClass("HideControl"),t.find("#btnSaveSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnCancelFactFindSuppDoc").addClass("HideControl")):i.id==="btnShowCancelClaimantSuppDoc"?(t.find("#pnlClaimantAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableClaimantSupportDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnDeleteLowerClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteLowerEditClaimSuppDoc").addClass("HideControl"),t.find("#btnSaveLowerClaimSuppDoc").addClass("HideControl"),t.find("#btnEditLowerClaimSuppDoc").removeClass("HideControl"),t.find("#btnCancelClaimantSuppDoc").addClass("HideControl")):i.id==="btnShowCancelEmployerSuppDoc"?(t.find("#pnlEmployerAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableEmployerSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnDeleteLowerEmpSuppDoc").removeClass("HideControl"),t.find("#btnDeleteEditLowerEmpSuppDoc").addClass("HideControl"),t.find("#btnSaveLowerEmpSuppDoc").addClass("HideControl"),t.find("#btnEditLowerEmpSuppDoc").removeClass("HideControl"),t.find("#btnCancelEmployerSuppDoc").addClass("HideControl")):i.id==="btnShowCancelBoardClaimSuppDoc"?(t.find("#pnlClaimantBoardAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableClaimantBoardSupportDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnDeleteBoardClaimSuppDoc").removeClass("HideControl"),t.find("#btnDeleteBoardEditClaimSuppDoc").addClass("HideControl"),t.find("#btnSaveBoardClaimSuppDoc").addClass("HideControl"),t.find("#btnEditBoardClaimSuppDoc").removeClass("HideControl"),t.find("#btnCancelBoardClaimSuppDoc").addClass("HideControl")):i.id==="btnShowCancelBoardEmpSuppDoc"?(t.find("#pnlEmployerBoardAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableEmployerBoardSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnDeleteBoardEmpSuppDoc").removeClass("HideControl"),t.find("#btnDeleteBoardEditEmpSuppDoc").addClass("HideControl"),t.find("#btnSaveBoardEmpSuppDoc").addClass("HideControl"),t.find("#btnEditBoardEmpSuppDoc").removeClass("HideControl"),t.find("#btnCancelBoardEmpSuppDoc").addClass("HideControl")):i.id==="btnShowCancelLowerAgencySuppDoc"?(t.find("#pnlAgencyLowerAppealsSupportingDocuments").removeClass("HideControl"),t.find("#pnlEditableAgencyLowerSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnAgencyLowerAppealDelete").removeClass("HideControl"),t.find("#btnDeleteLowerEditableAgencySuppDoc").addClass("HideControl"),t.find("#btnAgencyLowerAppealSave").addClass("HideControl"),t.find("#btnAgencyLowerAppealEdit").removeClass("HideControl"),t.find("#btnCancelLowerAgencySuppDoc").addClass("HideControl")):i.id==="btnShowCancelBoardAgencySuppDoc"?(t.find("#pnlAgencyBoardSuppDoc").removeClass("HideControl"),t.find("#pnlEditableAgencyBoardSuppDoc").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnAgencyBoardAppealDelete").removeClass("HideControl"),t.find("#btnDeleteBoardEditableAgencySuppDoc").addClass("HideControl"),t.find("#btnAgencyBoardAppealSave").addClass("HideControl"),t.find("#btnAgencyBoardAppealEdit").removeClass("HideControl"),t.find("#btnCancelBoardAgencySuppDoc").addClass("HideControl")):i.id==="btnShowCancelFactFindSuppDoc"&&(t.find("#pnlFactFinding").removeClass("HideControl"),t.find("#pnlEditableFactFinding").addClass("HideControl"),t.find(".HideHigherEditButton").removeClass("HideControl"),t.find(".HideHigherDeleteButton").removeClass("HideControl"),t.find("#btnSaveSuppDoc").addClass("HideControl"),t.find("#btnEditSuppDoc").removeClass("HideControl"),t.find("#btnCancelFactFindSuppDoc").addClass("HideControl")))),!1},ShowScheduleHearingPanel:function(n){var t=$("#"+n.context.activeDivID);return t!=null&&(n.context.activeDivID.indexOf("wfmViewClaimantLowerAppealMaintenance")===0||n.context.activeDivID.indexOf("wfmViewEmployerLowerAppealMaintenance")===0)&&(t.find("#pnlScheduleHearing").hasClass("HideControl")?t.find("#pnlScheduleHearing").removeClass("HideControl"):t.find("#pnlScheduleHearing").addClass("HideControl")),!1},OpenDocumentInNewWindow:function(n){var t=document.getElementById("lblFileNetDocURL"),r=document.getElementById("lblIsInternalUser"),u=document.getElementById("lblMimeType"),e=nsCommon.GetActiveDivId(n),f,i;return u!=null&&u.innerText=="audio/video"?nsUserFunctions.DownloadUnsupportedECMFile(e,t.innerText):t!=null&&(r!=null&&r.innerText=="true"?window.open(t.innerText):(ns.ReportPagePath!=null?i=ns.ReportPagePath+"AspxPages/wfmViewDocument.aspx?Doc="+t.innerText:(f=document.URL.split("home"),i=f[0]+"AspxPages/wfmViewDocument.aspx?Doc="+t.innerText),window.open(i))),!1},OpenAppealDocumentInNewWindow:function(n){var t=document.getElementById("lblAppealFileNetDocURL"),r=document.getElementById("lblAppealIsInternalUser"),u=document.getElementById("lblMimeType"),e=nsCommon.GetActiveDivId(n),f,i;return u!=null&&u.innerText=="audio/video"?nsUserFunctions.DownloadUnsupportedECMFile(e,t.innerText):t!=null||t!=undefined?r!=null&&r.innerText=="true"?window.open(t.innerText):(f=ns.ReportPagePath+"AspxPages/wfmViewDocument.aspx?Doc="+t.innerText,window.open(f)):(i={},i[0]=43836,alert(nsCommon.SyncPost("GetMessageText",i,undefined,"POST"))),!1},OpenPUADocumentInNewWindow:function(n){var t=document.getElementById("lblPUAFileNetDocURL"),r=document.getElementById("lblPUAIsInternalUser"),u=document.getElementById("lblPUAMimeType"),e=nsCommon.GetActiveDivId(n),f,i;return u!=null&&u.innerText=="audio/video"?nsUserFunctions.DownloadUnsupportedECMFile(e,t.innerText):t!=null&&(r!=null&&r.innerText=="true"?window.open(t.innerText):(ns.ReportPagePath!=null?i=ns.ReportPagePath+"AspxPages/wfmViewDocument.aspx?Doc="+t.innerText:(f=document.URL.split("home"),i=f[0]+"AspxPages/wfmViewDocument.aspx?Doc="+t.innerText),window.open(i))),!1},OpenCCPRedirectURL:function(n){if($("#lblPaymentStatus").text()==null||$("#lblPaymentStatus").text()=="")return setTimeout(function(){var n=$("#page-loader").clone(!0);n.attr("id","mloader");$("body").append(n);n.css({position:"absolute",top:"0",bottom:"0",left:"0",right:"0","z-index":"99999",width:"100%",height:"100%","padding-top":"25px",display:"none",background:"rgba(0,0,0,.3)"});$("html, body").css({overflow:"hidden",height:"100%"});n.show()},10),setTimeout(function(){window.localStorage.setItem("returnURL",window.location);var n=window.location=$("#hypCCPLink").attr("href")},200),!1;var t={};return t[0]=43876,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!0},OpenDCPRedirectURL:function(n){if($("#lblPaymentStatus").text()==null||$("#lblPaymentStatus").text()=="")return setTimeout(function(){var n=$("#page-loader").clone(!0);n.attr("id","mloader");$("body").append(n);n.css({position:"absolute",top:"0",bottom:"0",left:"0",right:"0","z-index":"99999",width:"100%",height:"100%","padding-top":"25px",display:"none",background:"rgba(0,0,0,.3)"});$("html, body").css({overflow:"hidden",height:"100%"});n.show()},10),setTimeout(function(){window.localStorage.setItem("returnURL",window.location);var n=window.location=$("#hypDCPLink").attr("href")},200),!1;var t={};return t[0]=43876,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),n.context.activeDivID),!0},ClearFileUploadControlBoardAppeal:function(){$(".s-fileupload-clear").trigger("click")},ClearFileUploadControl:function(){var n=nsCommon.GetWidgetControl($(".s-file-upload-container").find("input[type='file']"));return n!=undefined&&n.jsObject!=undefined&&n.idomFileContainer.find("li").length>0&&(n.idomFileContainer.find("ui.s-fileupload-list").empty(),n.iarrFileList=[],n.iarrFiles=[],n.iarrProcessingFiles=[],n.idictFileStats=[]),!1},ClearFileUploadControlForDUA:function(){var n=nsCommon.GetWidgetControl($(".s-file-upload-container").find("input[type='file']")),t;return n!=undefined&&n.jsObject!=undefined&&n.idomFileContainer.find("li").length>0&&(n.idomFileContainer.find("ui.s-fileupload-list").empty(),n.iarrFileList=[],n.iarrFiles=[],n.iarrProcessingFiles=[],n.idictFileStats=[],$("#GlobalMessageDiv")!==undefined&&(t={},t[0]=97,$("#GlobalMessageDiv").text(nsCommon.SyncPost("GetMessageText",t,undefined,"POST")),$("#GlobalMessageDiv").addClass("GlobalMessage"))),!1},ClearFileUploadControlForIncomeTaxUpload:function(){var n=nsCommon.GetWidgetControl($(".s-file-upload-container").find("input[type='file']")),t;return n!=undefined&&n.jsObject!=undefined&&n.idomFileContainer.find("li").length>0&&(n.idomFileContainer.find("ui.s-fileupload-list").empty(),n.iarrFileList=[],n.iarrFiles=[],n.iarrProcessingFiles=[],n.idictFileStats=[],$("#GlobalMessageDiv")!==undefined&&(t={},t[0]=97,$("#GlobalMessageDiv").text(nsCommon.SyncPost("GetMessageText",t,undefined,"POST")),$("#GlobalMessageDiv").addClass("GlobalMessage"))),!1},ClearFileUploadPotentialFraud:function(){var n=nsCommon.GetWidgetControl($(".s-file-upload-container").find("input[type='file']")),t;return n!=undefined&&n.jsObject!=undefined&&n.idomFileContainer.find("li").length>0&&(n.idomFileContainer.find("ui.s-fileupload-list").empty(),n.iarrFileList=[],n.iarrFiles=[],n.iarrProcessingFiles=[],n.idictFileStats=[],$("#GlobalMessageDiv")!==undefined&&(t={},t[0]=1001,$("#GlobalMessageDiv").text(nsCommon.SyncPost("GetMessageText",t,undefined,"POST")),$("#GlobalMessageDiv").addClass("GlobalMessage"))),!1},DownloadUnsupportedECMFile:function(n,t){var i=function(){var h=nsCommon.GetFormNameFromDivID(n),c={FormID:h,Path:t},l=["SenderID=",ns.SenderID,"&SenderForm=",ns.SenderForm,"&Action=","DownloadECMFile","&SenderKey=",ns.SenderKey].join(""),a=MVVMGlobal.GetPrefixforAjaxCall(),s=[a,"api/",ns.ControllerName,"/DownloadECMFile?",l].join(""),f,i,r,u,e,o;s=[s,"&WindowName=",window.name].join("");f="<input type='hidden' name='aobjDownload' value='"+JSON.stringify(c)+"' />";f+='<input type="hidden" name="__RequestVerificationToken" value="'+$("input[name='__RequestVerificationToken']").val()+'" />';f+='<input type="hidden" id="antiForgeryToken" value="'+$("#antiForgeryToken").val()+'" />';f+='<form action="'+s+'" method="post">'+f+"<\/form>";i=$("#downloadFmiframeFile");i.length>0&&(i.remove(),i=$("#downloadFmiframeFile"));i.length==0&&(r=document.createElement("iframe"),document.body.appendChild(r),nsCommon.setAttributes(r,{id:"downloadFmiframeFile",height:"0",width:"0",border:"0",wmode:"Opaque"}),r.setAttribute("id","downloadFmiframeFile"),r.style.position="absolute",r.style.top="-999",r.style.left="-999",r.style.display="none",i=$(r));u=i.get(0);u=u.contentWindow||u.contentDocument||u;e=u.document||u.contentDocument||u;e.write(f);e.body&&e.body.querySelector("form")!=null&&e.body.querySelector("form").submit();e.close();o=i[0];o!=null&&o.contentDocument!=undefined&&o.contentDocument.getElementsByTagName!=undefined&&o.contentDocument.getElementsByTagName("body")&&(o.contentDocument.getElementsByTagName("body")[0].innerHTML="");i.contents().find("body").empty()};setTimeout(i,200)},OpenECMDocumentClick:function(n){var v=nsCommon.GetFormNameFromDivID(n.context.activeDivID),c,t,e,u,a,o,r;if(v=="wfmECMImagesLookup_retrieve")return!0;var s="",h="",c="",t="",f="",i,l=undefined;if(n!=undefined&&n.tagName==="A"?(l=n,i=$(n)[0],c="#"+$(n).closest('div[role="group"]')[0].id,t=nsCommon.GetActiveDivId(n),i=$(c+" #"+t+" #"+GetControlAttribute(i,"sfwRelatedControl",t))[0],lintSelectedIndex=n.getAttribute("rowIndex")):(i=n.target,t=nsCommon.GetActiveDivId(i)),f=GetControlAttribute(i,"sfwRelatedControl",t),e=nsCommon.GetWidgetByActiveDivIdAndControlId(t,f),e==undefined||e.jsObject==undefined)return!1;if(u=nsCommon.ECMGetNavigationParams(i,l),u.larrRows.length==0&&f!=undefined){r={};r[0]=4246;nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",r,undefined,"POST"),t);return}return a=u.larrRows,h=u.larrRows[0].astrGuid,s=u.larrRows[0].astrDocClass,h!==""&&s!==""&&(o=nsCommon.SyncPost("GetECMDocumentUrls",a,undefined,"POST"),o!==undefined?$.each(o,function(n,i){var r=i,f,e,o,s,h,u,c,l;if(r[0]=="Invalid Selection"){f={};f[0]=43828;alert(nsCommon.SyncPost("GetMessageText",f,undefined,"POST"));return}e=r[3];e!==""&&r[1]=="application/x-filenet-external"?(o=r[0],s=ns.ReportPagePath+"AspxPages/wfmViewDocument.aspx?Doc="+o,window.open(s)):r[1]=="audio/x-ds2"&&r[2]!="True"?nsUserFunctions.DownloadUnsupportedECMFile(t,r[0]):r[1]!="audio/video"&&r[2]!="True"?(h=(new Date).getUTCMilliseconds(),PopupCenterDual(r[0],h,1e3,1e3)):r[1]!="audio/video"&&r[2]=="True"?(u=Object.keys(dictDocuments).length,dictDocuments.push({key:"Document"+(u+1),value:r[0]}),u=Object.keys(dictDocuments).length,c=dictDocuments[u-1].key,l=dictDocuments[u-1].value,PopupDocumentExtUser(c,l)):nsUserFunctions.DownloadUnsupportedECMFile(t,r[0])}):(r={},r[0]=21540,nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",r,undefined,"POST"),t))),!1},OpenReturnPaymentClick:function(n){var c=nsCommon.GetFormNameFromDivID(n.context.activeDivID),i="",s="",o,l=undefined,r="",f,e,u,h,t;if(o=n.target,i=nsCommon.GetActiveDivId(o),s=GetControlAttribute(o,"sfwRelatedControl",i),f=nsCommon.GetWidgetByActiveDivIdAndControlId(i,s),f==undefined||f.jsObject==undefined)return!1;for(e=f.getData(),u=0;u<e.length;u++)if(h="",e[u].rowSelect==!0){r=e[u].dt_Status_6_0;break}if(r==""||r==undefined){t={};t[0]=43877;nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),i);return}if(r!=undefined&&r!="Paid"){t={};t[0]=43878;nsCommon.DispalyError(nsCommon.SyncPost("GetMessageText",t,undefined,"POST"),i);return}return!0},ClearDirectDepositDetail:function(n){var t=n.context.idomActiveDiv!=undefined?n.context.idomActiveDiv:$("#"+n.context.activeDivID);return t.find("#lblRoutingBankNameRegClmts").text(""),!0},CheckIfOpIsForMD:function(n){return(console.log(n),n!=undefined&&n.text.trim()==="MARYLAND")?(alert("Updates are not allowed on Maryland overpayments."),!1):!0}};nsCommon.GetPageTitle=function(n){return n.replace("_PrimaryKey","")};SessionEvents_ResetTimer=SessionEvents.ResetTimer;SessionEvents.ResetTimer=function(){SessionEvents_ResetTimer();window.opener!=undefined&&window.opener.postMessage("Refresh Parent","*")};ShowHideOptionInDropDown=function(n){var t=[];$(document).on("change","."+n,function(){var o=nsUserFunctions.GetActiveDomElement(this),i={},u,r,f,e;if(i.Id=this.id,i.Value=$(this).val(),localStorage.getItem(i.Id)!=null&&(u=localStorage.getItem(i.Id),r={},r.Id=this.id,r.Text=o.find("#"+this.id+" option[value='"+u+"']").text(),r.Value=u,t.push(r),localStorage.removeItem(i.Id)),i.Value!=""){i.Text=$("#"+this.id+" option:selected").text();$("."+n).each(function(){if(this.id!=i.Id){for(var n in t)i.Id==t[n].Id&&$(this).append("<option value='"+t[n].Value+"'>"+t[n].Text+"<\/option>");$("#"+this.id+" option[value='"+i.Value+"']").remove()}});f=[];for(e in t)if(i.Id==t[e].Id)continue;else f.push(t[e]);t=[];t=f;t.push(i)}})};$(document).on("change","#txtBoardAppealFiledDate",function(){var n=nsUserFunctions.GetActiveDomElement(this),i,r;if($("#txtBoardAppealFiledDate").val()!=undefined&&$("#txtBoardAppealFiledDate").val()!=""){var f=parseInt(n.find("#lblLatestClaimID").text(),10),u=new Date($("#txtBoardAppealFiledDate").val()),t=new Date(n.find("#lblLowerAppealDecisionDate").text());f>0?(i=new Date(t.setDate(t.getDate()+15)),r=new Date(nsCommon.SyncPost("GetValidBusinessDate",i,undefined,"POST")),u>r?n.find("#pnlReasonForUntimelinessBoard").show():n.find("#pnlReasonForUntimelinessBoard").hide()):(i=new Date(t.setDate(t.getDate()+30)),r=new Date(nsCommon.SyncPost("GetValidBusinessDate",i,undefined,"POST")),u>r?n.find("#pnlReasonForUntimelinessBoard").show():n.find("#pnlReasonForUntimelinessBoard").hide())}});$(document).on("change","#chkDontHavePhNoDUA",function(){$("#chkDontHavePhNoDUA").is(":checked")?($("#ltrPhoneNumberTitleDUA").hide(),$("#lblPhoneNumberRequiredDUA").hide(),$("#txtPhoneNumberDua").val(""),$("#txtPhoneNumberDua").hide(),$("#ltrPhoneNoteDUA").hide()):($("#ltrPhoneNumberTitleDUA").show(),$("#txtPhoneNumberDua").show(),$("#lblPhoneNumberRequiredDUA").show(),$("#ltrPhoneNoteDUA").show())});$(document).on("change","#chkDontHavePhNoRTAA",function(){$("#chkDontHavePhNoRTAA").is(":checked")?($("#ltrPhoneNumberTitleRTAA").hide(),$("#lblPhoneNumberRequiredRTAA").hide(),$("#txtPhoneNumberRTAA").val(""),$("#txtPhoneNumberRTAA").hide(),$("#ltrSecondaryPhoneTitleRTAA").hide(),$("#txtSecondaryPhoneNumberRTAA").val(""),$("#txtSecondaryPhoneNumberRTAA").hide(),$("#ltrPhoneNoteRTAA").hide()):($("#ltrPhoneNumberTitleRTAA").show(),$("#txtPhoneNumberRTAA").show(),$("#lblPhoneNumberRequiredRTAA").show(),$("#ltrSecondaryPhoneTitleRTAA").show(),$("#txtSecondaryPhoneNumberRTAA").show(),$("#ltrPhoneNoteRTAA").show())});$(document).on("change","#chkDontHavePhNoClaimExten",function(){$("#chkDontHavePhNoClaimExten").is(":checked")?($("#ltrPhoneNumberTitleClaimExten").hide(),$("#lblPhoneNumberRequiredClaimExten").hide(),$("#txtPhoneNumberClaimExten").val(""),$("#txtPhoneNumberClaimExten").hide(),$("#ltrPhoneNoteClaimExten").hide(),$("#ltrLiteral10").hide()):($("#ltrPhoneNumberTitleClaimExten").show(),$("#txtPhoneNumberClaimExten").show(),$("#lblPhoneNumberRequiredClaimExten").show(),$("#ltrPhoneNoteClaimExten").show(),$("#ltrLiteral10").show())});$(document).on("change","#chkDontHavePhNo",function(){ns.viewModel.currentForm=="wfmClaimReopenWizard"&&($("#chkDontHavePhNo").is(":checked")?($("#ltrPhoneNumberTitle").hide(),$("#lblPhoneNumberRequired").hide(),$("#txtPhoneNumber").val(""),$("#txtPhoneNumber").hide(),$("#ltrPhoneNote").hide()):($("#ltrPhoneNumberTitle").show(),$("#txtPhoneNumber").show(),$("#lblPhoneNumberRequired").show(),$("#ltrPhoneNote").show()))});$(document).on("change","#chkDontHavePhNo",function(){ns.viewModel.currentForm=="wfmReopenPUAClaimWizard"&&($("#chkDontHavePhNo").is(":checked")?($("#ltrPhoneNumberTitle").hide(),$("#lblPhoneNumberRequired").hide(),$("#txtPhoneNumber").val(""),$("#txtPhoneNumber").hide(),$("#ltrPhoneNote").hide()):($("#ltrPhoneNumberTitle").show(),$("#txtPhoneNumber").show(),$("#lblPhoneNumberRequired").show(),$("#ltrPhoneNote").show()))});$(window).on("beforeunload",function(){if(!$.isEmptyObject(ns.DirtyData))if(ns.DirtyData.wfmClaimantPaymentPlanRequestWizard0!=undefined)delete ns.DirtyData.wfmClaimantPaymentPlanRequestWizard0;else if(ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance!=undefined)delete ns.DirtyData.wfmCenterLeftKnowtionSearchMaintenance;else if(ns.viewModel.previousForm=="wfmClaimantPaymentPlanRequestWizard")delete ns.DirtyData[ns.viewModel.previousDiv];else{var n={};return n[0]=43839,nsCommon.SyncPost("GetMessageText",n,undefined,"POST")}});ns.logoutSesssion=logoutSesssion;nsWizard_BindWizardData=nsWizard.BindWizardData;nsWizard.BindWizardData=function(n,t){nsWizard_BindWizardData(n,t);var i=$("#txtlVerificationNotes");i.next().find(".note-editable").attr("contenteditable",!1);i.next().find(".note-toolbar").hide()};nsCommon.ECMGetNavigationParams=ECMGetNavigationParams;nsEvents.DisconnectUserOnClose=DisconnectUserOnClose;nsEventsOnDeleteFormClick=nsEvents.OnDeleteFormClick;nsEvents.OnDeleteFormClick=function(n){var t;ns.viewModel.previousForm=="wfmClaimantMessageDetailsMaintenance"?(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0&&t.trigger("click"),window.location.reload()):ns.viewModel.currentForm=="wfmClaimExtensionWizard"?(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0&&t.trigger("click"),window.location.reload()):ns.viewModel.currentForm=="wfmPUAClaimExtensionWizard"?(t=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link"),t.length>0&&t.trigger("click"),window.location.reload()):nsEventsOnDeleteFormClick(n)};nsEventsbtnBase_Click=nsEvents.btnBase_Click;nsEvents.btnBase_Click=function(n,t,i){var u=ns.SenderKey,f=ns.viewModel.currentModel,r=ns.viewModel.currentForm;nsEventsbtnBase_Click(n,t,i);ns.ReassignCurrentModel(r,f,u);ns.SenderForm=r;ns.SenderID=""};window.localStorage.getItem("FromCC")!=null?(data=window.localStorage.getItem("statusCC"),window.localStorage.removeItem("statusCC"),window.localStorage.removeItem("FromCC"),nsCommon.SyncPost("SetStatusCC",JSON.parse(data),null,"POST")):window.localStorage.getItem("returnURL")!=null;$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblTwenty, div[id^='wfmPUAClaimantRegistrationWizard'] #rblTwenty,div[id^='wfmClaimReopenWizard'] #rblTwenty,div[id^='wfmReopenPUAClaimWizard'] #rblTwenty,div[id^='wfmClaimExtensionWizard'] #rblTwenty,div[id^='wfmPUAClaimExtensionWizard'] #rblTwenty",function(){var n=nsUserFunctions.GetActiveDomElement(this);ShowHideReasonDropdownControl(n)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblPartTimeY, div[id^='wfmPUAClaimantRegistrationWizard'] #rblPartTimeY,div[id^='wfmClaimReopenWizard'] #rblPartTimeY,div[id^='wfmReopenPUAClaimWizard'] #rblPartTimeY,div[id^='wfmClaimExtensionWizard'] #rblPartTimeY,div[id^='wfmPUAClaimExtensionWizard'] #rblPartTimeY",function(){var n=nsUserFunctions.GetActiveDomElement(this);ShowHideReasonDropdownControl(n)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblPartTwentyY, div[id^='wfmPUAClaimantRegistrationWizard'] #rblPartTwentyY,div[id^='wfmClaimReopenWizard'] #rblPartTwentyY,div[id^='wfmReopenPUAClaimWizard'] #rblPartTwentyY,div[id^='wfmClaimExtensionWizard'] #rblPartTwentyY,div[id^='wfmPUAClaimExtensionWizard'] #rblPartTwentyY",function(){var n=nsUserFunctions.GetActiveDomElement(this);ShowHideReasonDropdownControl(n)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblCurrAvailableTwenty, div[id^='wfmPUAClaimantRegistrationWizard'] #rblCurrAvailableTwenty,div[id^='wfmClaimReopenWizard'] #rblCurrAvailableTwenty,div[id^='wfmReopenPUAClaimWizard'] #rblCurrAvailableTwenty,div[id^='wfmClaimExtensionWizard'] #rblCurrAvailableTwenty,div[id^='wfmPUAClaimExtensionWizard'] #rblCurrAvailableTwenty",function(){var n=nsUserFunctions.GetActiveDomElement(this);ShowHideReasonDropdownControl(n)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblSeekFullTime, div[id^='wfmPUAClaimantRegistrationWizard'] #rblSeekFullTime,div[id^='wfmClaimReopenWizard'] #rblSeekFullTime,div[id^='wfmReopenPUAClaimWizard'] #rblSeekFullTime,div[id^='wfmClaimExtensionWizard'] #rblSeekFullTime,div[id^='wfmPUAClaimExtensionWizard'] #rblSeekFullTime",function(){var n=nsUserFunctions.GetActiveDomElement(this);ShowHideReasonDropdownControl(n)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #rblThirtyFive, div[id^='wfmPUAClaimantRegistrationWizard'] #rblThirtyFive,div[id^='wfmClaimReopenWizard'] #rblThirtyFive,div[id^='wfmReopenPUAClaimWizard'] #rblThirtyFive,div[id^='wfmClaimExtensionWizard'] #rblThirtyFive,div[id^='wfmPUAClaimExtensionWizard'] #rblThirtyFive",function(){var n=nsUserFunctions.GetActiveDomElement(this);ShowHideReasonDropdownControl(n)});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkSameAsBusinessAddress, div[id^='wfmPUAClaimantRegistrationWizard'] #chkSameAsBusinessAddress",function(){var n=nsUserFunctions.GetActiveDomElement(this),i,t,r;(ns.viewModel.currentForm=="wfmClaimantRegistrationWizard"||ns.viewModel.currentForm=="wfmPUAClaimantRegistrationWizard")&&(i=n.find("#chkSameAsBusinessAddress").is(":checked"),t=n.find("#lblEmployerTypeValue"),i!=undefined&&i?(r=["#lblRegEmpAddr1","#lblRegEmpAddr2","#lblRegEmpCity","#lblRegEmpState","#lblRegEmpZip"],SetMostRecentWorkAddressFields(r,n),t!=undefined&&(t.text()=="ITRN"||t.text()=="OTST")?(n.find("#lblCopyStarAddr1,#txtCopyAddr1,#txtCopyAddr2,#lblCopyStarCity,#txtCopyCity,#lblCopyStarState,#ddlCopyState,#lblCopyStarZip,#txtCopyZip,#ddlDropDownList5,#txtTextBox13").hide(),n.find("#lblRegEmpAddr1,#lblRegEmpAddr2,#lblRegEmpCity,#lblRegEmpState,#lblRegEmpZip").show()):(n.find("#txtCopyAddr1,#txtCopyAddr2,#txtCopyCity,#ddlCopyState,#txtCopyZip,#ltrInfoTextBA,#ddlDropDownList5,#txtTextBox13").hide(),n.find("#lblRegEmpAddr1,#lblRegEmpAddr2,#lblRegEmpCity,#lblRegEmpState,#lblRegEmpZip").show())):t!=undefined&&(t.text()=="ITRN"||t.text()=="OTST")?(n.find("#lblCopyStarAddr1,#txtCopyAddr1,#txtCopyAddr2,#lblCopyStarCity,#txtCopyCity,#lblCopyStarState,#ddlCopyState,#lblCopyStarZip,#txtCopyZip,#ddlDropDownList5,#txtTextBox13").show(),n.find("#lblRegEmpAddr1,#lblRegEmpAddr2,#lblRegEmpCity,#lblRegEmpState,#lblRegEmpZip").hide()):(n.find("#txtCopyAddr1,#txtCopyAddr2,#txtCopyCity,#ddlCopyState,#txtCopyZip,#ltrInfoTextBA,#ddlDropDownList5,#txtTextBox13").show(),n.find("#lblRegEmpAddr1,#lblRegEmpAddr2,#lblRegEmpCity,#lblRegEmpState,#lblRegEmpZip").hide()))});$(document).on("change","div[id^='wfmApplyRTAABenefitsWizard'] #chkSameAsBusinessAddress",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#AddressSameAsBusiness")!==null&&n.find("#AddressSameAsBusiness")!=undefined&&(t=n.find("#AddressSameAsBusiness"),t.trigger("click"))});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #chkSameAsBusinessAddress, div[id^='wfmPUAClaimantRegistrationWizard'] #chkSameAsBusinessAddress",function(){var n=nsUserFunctions.GetActiveDomElement(this),t;n.find("#AddressSameAsBusiness")!==null&&n.find("#AddressSameAsBusiness")!=undefined&&(t=n.find("#AddressSameAsBusiness"),t.trigger("click"))});$(document).on("change","#ddlAdditioanlEmployerFederalFicId",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=document.getElementById("ddlAdditioanlEmployerFederalDestId").length;t==2&&document.getElementById("ddlAdditioanlEmployerFederalDestId").selectedIndex!=1&&(document.getElementById("ddlAdditioanlEmployerFederalDestId").selectedIndex=1,$("#ddlAdditioanlEmployerFederalDestId").trigger("change"));n.find("#pnlMostRecentAddressRegClmt").show();n.find("#pnlJobtitleRegClmt").show()});$(document).on("keypress",".allownumericwithoutdecimal",function(n){$(this).val($(this).val().replace(/[^\d].+/,""));(!(n.which>=48&&n.which<=57)||n.which>=96&&n.which<=105)&&n.preventDefault()});$(document).on("input",".PhoneExtensionNumber",function(){this.value=this.value.replace(/[^0-9]/gi,"")});MVVM.JQueryControls.Scheduler.prototype.createEvent=function(n){var i,r,e,t;if(n!=undefined){this.iarrEvent=[];this.iarrHolidayList=[];this.iintEventIndexId=0;var f=this.iarrEvent,u=this.iarrHolidayList,o=this.iintEventIndexId;n!=undefined&&n.Records!=undefined&&n.Records.length>0&&(this.idictAllForms=n.idictAllForms,$.each(n,function(){console.log("test")}),$.each(n.Records,function(){console.log(" sdfg")}),$(n.Records).each(function(n,t){var i={},r=neoFormat.parseDate(t.idtStart),u=neoFormat.parseDate(t.idtEnd);i.start=r;i.end=u;t.istrEventId!=undefined&&(i.id=t.istrEventId);i.iintRowIndex=t.iintRowIndex;i.EventIndexId=o++;i.title=t.istrDescription;i.color=t.istrEventColor;i.className=DefaultMessages.SchedulerEventClass;i.ActualData=t;f.push(i)}));u!=undefined&&u.length>0&&($.each(n.idictHoliday,function(n,t){var r=neoFormat.format("{0:yyyy-MM-dd}",new Date(t)),i;u.push(r);i={};i.start=new Date(t.toString());i.end=new Date(t.toString());i.EventIndexId=-1;i.title=n;i.overlap=!1;i.startEditable=!1;i.className=DefaultMessages.SchedulerHolidayClass;f.push(i)}),$(this.element).data("HolidayList",this.iarrHolidayList))}i=nsUserFunctions.SchedulerAfterEventAdded;i!=undefined&&typeof i=="function"&&(r={},e={activeDivID:this.istrActiveDivID,controlId:this.id,eventData:this.iarrEvent,holidayList:this.iarrHolidayList},r={},r.context=e,t=i(r),t!=undefined&&(t.iarrEventData!=undefined&&t.iarrEventData.length>0&&(this.iarrEvent=t.eventData),t.iarrHolidayData!=undefined&&t.iarrHolidayData.length>0&&(this.iarrHolidayList=t.iarrHolidayData)))};MVVM.JQueryControls.Scheduler.prototype.getDateFromObject=function(n){return n!=undefined&&n.utc!=undefined&&n.utc().format!=undefined?new Date(n.utc().format("MM/DD/YYYY HH:mm:ss")):n};$(document).on("keyup",".upper-case",function(){$(this).val($(this).val().toUpperCase());$(this).trigger("change")});$(document).on("keyup",".GridTextBox",function(){var n=$(this).attr("style");n!=null&&n.indexOf("text-transform: uppercase;")!=-1&&($(this).val($(this).val().toUpperCase()),$(this).trigger("change"))});MVVMGlobal.GetProperDateWithFormat=GetProperDateWithFormat;nsEvents.btn_GoPreviousPage=btn_GoPreviousPage;nsEvents.OnDeleteFormClick=function(){if(ns.viewModel.currentForm=="wfmHigherAppealDetailMaintenance"&&$("#lblnShowBoardIssuetabDetails").text()=="true"&&$("#btnCancelBoardIssue")!==null&&$("#btnCancelBoardIssue")!=undefined)return $("#btnCancelBoardIssue").trigger("click"),!1;if(ns.viewModel.currentForm=="wfmAppealMaintenance"){if($("#lblnShowWitnessDetails").text()=="true"&&$("#btnCancelWitness")!==null&&$("#btnCancelWitness")!=undefined)return $("#btnCancelWitness").trigger("click"),!1;if($("#lblShowRepresentative").text()=="true"&&$("#btnCancelRepresentative")!==null&&$("#btnCancelRepresentative")!=undefined)return $("#btnCancelRepresentative").trigger("click"),!1}if(ns.viewModel.currentForm=="wfmViewClaimantLowerAppealMaintenance"){if($("#lblnShowWitnessDetails").text()=="true"&&$("#btnCancelWitness")!==null&&$("#btnCancelWitness")!=undefined)return $("#btnCancelWitness").trigger("click"),!1;if($("#lblShowRepresentative").text()=="true"&&$("#btnCancelRepresentative")!==null&&$("#btnCancelRepresentative")!=undefined)return $("#btnCancelRepresentative").trigger("click"),!1}if(ns.viewModel.currentForm=="wfmViewEmployerLowerAppealMaintenance"){if($("#lblnShowWitnessDetails").text()=="true"&&$("#btnCancelWitness")!==null&&$("#btnCancelWitness")!=undefined)return $("#btnCancelWitness").trigger("click"),!1;if($("#lblShowRepresentative").text()=="true"&&$("#btnCancelRepresentative")!==null&&$("#btnCancelRepresentative")!=undefined)return $("#btnCancelRepresentative").trigger("click"),!1}ns.viewModel.currentForm=="wfmClaimantMessageDetailsMaintenance"&&$("#btnExecuteRefreshData")!==null&&$("#btnExecuteRefreshData")!=undefined&&$("#btnExecuteRefreshData").trigger("click");ns.viewModel.previousForm=="wfmReviewPaymentPlanHistoryMaintenance0"&&$("#btnReviewPaymentRefreshData")!==null&&$("#btnReviewPaymentRefreshData")!=undefined&&$("#btnReviewPaymentRefreshData").trigger("click");var n=$("[linkedto="+ns.viewModel.currentModel+"]").closest("li").find("a.delete-link");if(n.length>0)return n.trigger("click"),!1};$(document).on("change","div[id^='wfmClaimEmploymentHistoryWizard'] #ddlCascadingDropDownList4",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find(".allownumericwithoutdecimal");OnlyText=n.find("#ddlCascadingDropDownList4").val()=="38"?!0:!1;n.find("#txtMostRecentWorkAddressZip").val("")});$(document).on("keypress","#txtMostRecentWorkAddressZip",function(n){var u=nsUserFunctions.GetActiveDomElement(this),f=n.keyCode==0?n.charCode:n.keyCode,t=u.find("#txtMostRecentWorkAddressZip").val().length,i,r;if(OnlyText){if(this.selectionStart==7&&this.selectionEnd==7||t>=7&&this.selectionStart==this.selectionEnd)return!1;this.Text=this.text.substring(this.selectionStart,this.selectionEnd)}else{if((i=new RegExp("^[0-9]+$"),r=String.fromCharCode(event.charCode?event.charCode:event.which),this.selectionStart==5&&this.selectionEnd==5)||t>=5&&this.selectionStart==this.selectionEnd||!i.test(r))return!1;this.Text=this.text.substring(this.selectionStart,this.selectionEnd)}});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlGenInCountry, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlGenInCountry",function(){var n=nsUserFunctions.GetActiveDomElement(this);($(n.find("#ddlGenInCountry").children()[0]).val()==""||$(n.find("#ddlGenInCountry").children()[0]).val()==undefined)&&$(n.find("#ddlGenInCountry").children()[0]).remove()});$(document).on("change","div[id^='wfmClaimantRegistrationWizard'] #ddlGenInState, div[id^='wfmPUAClaimantRegistrationWizard'] #ddlGenInState",function(){var n=nsUserFunctions.GetActiveDomElement(this);($(n.find("#ddlGenInState").children()[0]).val()==""||$(n.find("#ddlGenInState").children()[0]).val()==undefined)&&$(n.find("#ddlGenInState").children()[0]).remove()});$(document).on("input","div[id^='wfmClaimEmploymentHistoryWizard'] #txtTextBox4",".AllowOnlyNumeric",function(){this.value=this.value.replace(/[^0-9]/gi,"")});$(document).on("keydown",function(n){if(n.ctrlKey&&n.keyCode==80)return n.preventDefault(),n.stopImmediatePropagation(),nsUserFunctions.PrintCenterSplitter(),!1});$(document).on("keydown.MWCEvent","td",function(n){var i=$(n.target),t;if(n.keyCode==13||n.keyCode==32){t=i.find("a");t.trigger("click");return}});$(document).on("focusout keydown",":input[type='button']",function(n){(n.type=="focusout"||n.keyCode==13)&&n.keyCode==13&&(n.preventDefault(),n.stopImmediatePropagation(),$(this).click())});$(document).on("change","div[id^='wfmReviewProcessHigherAppealWizard'] #ddlCatValueOne",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#ddlCatValueOne").val();t=="AGAD"||t=="CLAD"||t=="EMAD"?(n.find("#lblPrimary").addClass("HideControl"),n.find("#lblPrimaryAsteriskR").addClass("HideControl"),n.find("#rblPrimary").addClass("HideControl"),n.find("#lblPrimary").css("display","none"),n.find("#lblPrimaryAsteriskR").css("display","none"),n.find("#rblPrimary").css("display","none")):(n.find("#lblPrimary").removeClass("HideControl"),n.find("#lblPrimaryAsteriskR").removeClass("HideControl"),n.find("#rblPrimary").removeClass("HideControl"),n.find("#lblPrimary").css("display","block"),n.find("#lblPrimaryAsteriskR").css("display","block"),n.find("#rblPrimary").css("display","block"))});$(document).on("mousedown","#lblEmpnameByaccountID",function(){var t="pnlEmployerContactInformation",u=t,f=t,i=t,n,r;return i==undefined&&(i=905),n=$("#"+u).clone(!0),n.hasClass("HideControl"),n.removeClass("HideControl"),r=MVVM.Controls.Dialog.CreateInstance(n,f,{title:"Employer Contact Information",close:function(){this.destroy()},deactivate:"empty",width:i}),r.open(),!1});$(document).on("change","div[id^='wfmRepresentativeAppealPartyMaintenance'] #ddlCatValue2",function(){var n=nsUserFunctions.GetActiveDomElement(this),t=n.find("#ddlCatValue2").val();t=="AGAD"||t=="CLAD"||t=="EMAD"?(n.find("#lblPrimary").addClass("HideControl"),n.find("#lblPrimaryAsterisk").addClass("HideControl"),n.find("#rblPrimary").addClass("HideControl"),n.find("#lblPrimary").css("display","none"),n.find("#lblPrimaryAsterisk").css("display","none"),n.find("#rblPrimary").css("display","none")):(n.find("#lblPrimary").removeClass("HideControl"),n.find("#lblPrimaryAsterisk").removeClass("HideControl"),n.find("#rblPrimary").removeClass("HideControl"),n.find("#lblPrimary").css("display","block"),n.find("#lblPrimaryAsterisk").css("display","block"),n.find("#rblPrimary").css("display","block"))});NeoGrid.prototype.onDataBind=function(){if(this.changeRowSelection(),typeof this.options.dataBound=="function"&&this.options.dataBound({sender:this}),!this.iblnListView&&!this.iblnMobileView){var t=this.element.find('td:not(td.s-empty-td):not([style*="display:none"]):not([style*="display : none"]), th:not(th.s-empty-th):not([style*="display:none"]):not([style*="display : none"])'),n=this.element.find('td:not(td.s-empty-td):not([style*="display:none"]):not([style*="display : none"])');n.each(function(){var n=$(this);n.find("input, select, textarea, button").length>0||n.attr("tabindex","0")})}};$(document).mouseup(function(n){$(n.target).closest("#CenterLeft").length===0&&($("#MiddleSplitter").removeClass("device-view"),$("#CenterLeft").removeClass("show-menu"))});$(document).on("click",function(n){if(n.target!=undefined&&$(n.target)!=undefined&&$(n.target).attr("title")!=undefined)if($(n.target).attr("title")!="MobileBurgerIcon")$("#MiddleSplitter").removeClass("device-view"),$("#CenterLeft").removeClass("show-menu");else return $("#MiddleSplitter").toggleClass("device-view"),$("#CenterLeft").toggleClass("show-menu"),!1;else $("#MiddleSplitter").removeClass("device-view"),$("#CenterLeft").removeClass("show-menu")});ns.bindSummary=function(n,t,i){var e=t,r,o,f,u,l,h,s,c;if(i!==!0&&(ns.RemoveHighlightingFromControls(t),ns.RemoveValidatorErrorFromControls(t)),n.ValidationSummary!=undefined&&n.ValidationSummary.length===0){i!==!0&&($([nsConstants.HASH,e,nsConstants.ERROR_DIV].join("")).html("").hide(),$([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV].join("")).html("").hide(),ns.iblnShowErrorAboveStep&&e.indexOf("Wizard")>0&&($([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.ERROR_DIV,"_WizardStep"].join("")).hide(),$([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV,"_WizardStep"].join("")).hide()));return}if(r=n.ValidationSummary,n.ValidationSummary!=undefined&&r.length>0){for(ns.blnHighlightErrorControlsOnClick&&ns.iblnHighlightAllErrorControls!==!0||ns.HighlightErrorControls(n.ValidationSummary,t),o=$([nsConstants.HASH,e,nsConstants.ERROR_DIV].join("")).find("ul"),f="",(i!==!0||o.length==0)&&(f="<ul>"),u=0;u<r.length;u++)i===!0&&o.length>0&&o.find(["li[errorControlId='",[r[u].istrFocusControl||"",r[u].iintGridRowIndex||"",r[u].istrErrorGridId||""].join(""),"'][errorMessage='",r[u].istrErrorMessage,"']"].join("")).length>0||(r[u].istrFocusControl!=null&&r[u].istrFocusControl!=""?(l=!1,ns.iblnShowHardErrorAssociatedToControl===!0&&(l=ns.AddValidatorErrorToControl(r[u],t)),(ns.iblnShowHardErrorAssociatedToControl!==!0||l!==!0)&&(h="",r[u].iintGridRowIndex!=undefined&&r[u].iintGridRowIndex!==""&&r[u].istrErrorGridId!=undefined&&r[u].istrErrorGridId!=""&&(h=[" gridrowindex='",r[u].iintGridRowIndex,"' errorgriddid='",r[u].istrErrorGridId,"'"].join("")),(r[u].istrFocusControls==null||r[u].istrFocusControls.trim()=="")&&(r[u].istrFocusControls=r[u].istrFocusControl),f=[f,"<li  errorControlId='",[r[u].istrFocusControl||"",r[u].iintGridRowIndex||"",r[u].istrErrorGridId||""].join(""),"' errorMessage='",r[u].istrErrorMessage,"'>"].join(""),f=[f,"<a tabindex='0' class='ErrorLink' listOfControls='",r[u].istrFocusControls,"' focusControl='",r[u].istrFocusControl,"' ",h," >"].join(""),f=[f,ns.FormatError(r[u].istrErrorID,r[u].istrErrorMessage)].join(""),f=[f,"<\/a>"].join(""),f=[f,"<\/li>"].join(""))):r[u].istrFocusControl==null||r[u].istrFocusControl==""&&r[u].iintGridRowIndex!=undefined&&r[u].iintGridRowIndex!==""&&r[u].istrErrorGridId!=undefined&&r[u].istrErrorGridId!=""?(h=[" gridrowindex='",r[u].iintGridRowIndex,"' errorgriddid='",r[u].istrErrorGridId,"'"].join(""),f=[f,"<li  errorControlId='",[r[u].istrFocusControl||"",r[u].iintGridRowIndex||"",r[u].istrErrorGridId||""].join(""),"' errorMessage='",r[u].istrErrorMessage,"'>"].join(""),f=[f,"<a tabindex='0' class='ErrorLink' focusControl='' ",h," >"].join(""),f=[f,ns.FormatError(r[u].istrErrorID,r[u].istrErrorMessage)].join(""),f=[f,"<\/a>"].join(""),f=[f,"<\/li>"].join("")):(f=[f,"<li tabindex='0' errorControlId='",[r[u].istrFocusControl||"",r[u].iintGridRowIndex||"",r[u].istrErrorGridId||""].join(""),"' errorMessage='",r[u].istrErrorMessage,"'>"].join(""),f=[f,ns.FormatError(r[u].istrErrorID,r[u].istrErrorMessage)].join(""),f=[f,"<\/li>"].join("")));(i!==!0||o.length==0)&&(f+="<\/ul>");s=$([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.ERROR_DIV,"_WizardStep"].join(""));c=$([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV,"_WizardStep"].join(""));i===!0&&o.length>0?(o.append(f),$([nsConstants.HASH,e,nsConstants.ERROR_DIV].join("")).show()):$([nsConstants.HASH,e,nsConstants.ERROR_DIV].join("")).html(f).show();ns.iblnShowErrorAboveStep&&e.indexOf("Wizard")>0?($([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.ERROR_DIV,"_WizardStep"].join("")).length==0&&(s=$([nsConstants.HASH,e,nsConstants.ERROR_DIV].join("")).clone(),s.attr("id",[nsConstants.ERROR_DIV,"_WizardStep"].join(""))),$([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV,"_WizardStep"].join("")).length==0&&(c=$([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV].join("")).clone(),c.attr("id",[nsConstants.GLOBAL_MESSAGE_DIV,"_WizardStep"].join(""))),s.html(f),$([nsConstants.HASH,e,nsConstants.ERROR_DIV].join("")).hide(),$([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV].join("")).hide(),s.show(),c.show(),$([nsConstants.HASH,e,nsConstants.SPACE_DOT,"stepContainer"].join("")).before(c),$([nsConstants.HASH,e,nsConstants.SPACE_DOT,"stepContainer"].join("")).before(s)):($([nsConstants.HASH,e,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV].join("")).show(),$([nsConstants.HASH,e,nsConstants.MESSAGE_DIV].join("")).hide())}};$("#CenterSplitter").scroll(function(){$("#ui-datepicker-div").css({display:"none"})});document.onkeydown=function(n){n=n||window.event;n.keyCode==18&&$("#ui-datepicker-div").css({display:"none"})};var iblnIsValidFileSize=!0,istrFileErrorString="",istrMsg="",originalFileslength=0;ns.FormatError=function(n,t){return t};ChangeForTreeTitle=nsCommon.AddTreeNodesFromNavigationParams;nsCommon.AddTreeNodesFromNavigationParams=function(n,t){for(var i=0;i<n.larrNodeInfo.length;i++)n.larrNodeInfo[i].Title!=undefined&&(n.larrNodeInfo[i].Title=n.larrNodeInfo[i].Title.replace("_PrimaryKey",""));ChangeForTreeTitle(n,t)};nsCommon=nsCommon||{};nsCommon.OpenAddressPopup=function(n){var i=n.context.activeDivID,t;if(i.indexOf("Wizard")>-1?(t=$('[controltype="stepDiv"]:not(:hidden)').find('.AddressSuggestionPanel[role="region"]'),t.length==0&&(t=$('[controltype="stepDiv"]:not(:hidden)').find(".AddressSuggestionPanel"))):t=$("#"+i+" .AddressSuggestionPanel"),t.length>0)t=t[0].id;else return;var l=function(n){var t=$("#"+n).clone(!0);return t.attr("id","Clone_"+n),t.hasClass("HideControl"),t.removeClass("HideControl"),MVVM.Controls.Dialog.CreateInstance(t,i,{title:"Address Options",close:function(){this.destroy()},deactivate:"empty",width:"905"})},c=function(n,t,i){var r;if(n.length>0){n.find("a.page-link").off("click");n.find("a.page-link").on("click",f);if(t?s=n.attr("id").replace("GridTable_",""):h=n.attr("id").replace("GridTable_",""),r=n.find(".GridLinks").parent(),r.length>0){r.removeAttr("onclick");r.removeAttr("base_click");r.on("click",u)}}if(i!=undefined&&i.length>0){i.find("a.page-link").off("click",f);i.find("a.page-link").on("click",f);if(r=i.find(".GridLinks").parent(),i.length>0){i.removeAttr("onclick");i.removeAttr("base_click");i.off("click",u);i.on("click",u)}}},u=function(n){var t=$(n.currentTarget).attr("rowIndex"),r=$(n.currentTarget).parents(".s-gridparent").attr("ID");i.indexOf("Wizard")>-1?$('[controltype="stepDiv"]:not(:hidden)').find("#"+r).find(' [rowindex="'+t+'"] a').trigger("click"):$("#"+ns.viewModel.currentModel+" #"+r).find('[rowindex="'+t+'"] a').trigger("click");t!=undefined&&r!=undefined&&e.destroy()},f=function(n){var i=$(n.target).parents(".s-grid-container").attr("id"),o,e;n.currentTarget.attributes.class.value=="page-link next"?$("#"+ns.viewModel.currentModel+' [id="'+i+'"]').find("a.page-link.next").trigger("click"):n.currentTarget.attributes.class.value=="page-link prev"?$("#"+ns.viewModel.currentModel+' [id="'+i+'"]').find("a.page-link.prev").trigger("click"):(o=$(n.currentTarget).attr("page-navigate"),$("#"+ns.viewModel.currentModel+' [id="'+i+'"]').find('a.page-link[page-navigate="'+o+'"]').trigger("click"));r.html($("#"+t).find('[id="'+i+'"]').clone(!0));r.find("a.page-link").off("click");r.find("a.page-link").on("click",f);e=r.find(".GridLinks").parent();e.length>0&&e.removeAttr("onclick");e.on("click",u);return!1},e=l(t),o=$("#Clone_"+t).find('[base_click="true"].pickvalidaddress'),r=$("#Clone_"+t).find('[data-role="neogrid"]').not('[id^="GridTable_grvInputAddress"]'),a=$("#Clone_"+t).find('[data-role="neogrid"][id^="GridTable_grvInputAddress"]'),v=$("#"+t).find('[data-role="neogrid"]').not('[id^="GridTable_grvInputAddress"]'),y=$("#"+t).find('[data-role="neogrid"][id^="GridTable_grvInputAddress"]'),s="",h="";if(c(a,!1,v),c(r,!0,y),o.length>0){o.off("click");o.on("click",function(n){var t,u,f;return r==undefined&&(r=$(n.currentTarget).closest("tbody").find('[id^="GridTable_"]')),r.length>0&&(t=r.find("input:checked"),t.length>0?(u=$("#"+ns.viewModel.currentModel+' input:not(:checked)[rowindex="'+t.attr("rowindex")+'"]'),u.length>0&&u.prop("checked",!0).trigger("change")):alert("Select a record before picking an address.")),f=i.indexOf("Wizard")>-1?$('[controltype="stepDiv"]:not(:hidden)').find("#"+i+" .pickvalidaddress"):$("#"+i+" .pickvalidaddress"),f.length>0&&(f.trigger("click").change(),e.destroy()),!1})}(ns.viewModel[i].DetailsData[s]!=undefined||ns.viewModel[i].DetailsData[h]!=undefined)&&(ns.viewModel[i].DetailsData[s].Records.length>0||ns.viewModel[i].DetailsData[h].Records.length>0)?e.open():e.destroy()};MVVM.JQueryControls.FileUpload.prototype.onValidate=function(n){var t=!0,s=this.getFileTypes(),h=new RegExp(["[^A-Za-z0-9'\\.&@:?!()$#^]*\\.(",s,")(\\b|$)"].join("")),e,c,r,o,u,f,i;return $([nsConstants.HASH,this.istrActiveDivID,nsConstants.SPACE_HASH,nsConstants.GLOBAL_MESSAGE_DIV].join("")).html("").hide(),n.files[0].name.length&&!h.test(n.files[0].name.toLowerCase())&&(t=!1,nsCommon.DispalyError(DefaultMessages.InvalidFileUploaded.replace("{0}",this.istrAcceptedFileTypes),this.istrActiveDivID)),t&&parseInt(n.originalFiles[0].size)===0&&(nsCommon.DispalyError(DefaultMessages.EmptyFileSelected,this.istrActiveDivID),t=!1),t&&this.iintMaxFileSize!=undefined&&parseInt(this.iintMaxFileSize.toString())>0&&parseInt(n.files[0].size)>parseInt(this.iintMaxFileSize.toString())&&(nsCommon.DispalyError(DefaultMessages.FileuploadMaxFileSize.replace("{0}",this.iintMaxFileSize.toString()),this.istrActiveDivID),t=!1,iblnIsValidFileSize=!1,istrFileErrorString=n.files[0].name),e=this.istrActiveDivID,c=n.originalFiles.length,t&&this.iarrFiles.length>0&&this.iarrFiles.forEach(function(i){t&&i.name===n.files[0].name&&(nsCommon.DispalyError(DefaultMessages.FileUploadFileAlreadySelected,e),t=!1)}),t&&(r=nsUserFunctions.ValidateSelectedFiles,o=n.files,typeof r=="function"&&(u={activeDivID:this.istrActiveDivID,previouslySelectedFiles:this.iarrFileList,selectedFiles:o,controlId:this.id},f={context:u},f.context=u,t=r(f))),iblnIsValidFileSize||(istrMsg=istrMsg+DefaultMessages.FileuploadMaxFileSize.replace("{0}",this.iintMaxFileSize.toString())+" For file "+istrFileErrorString+"<br />",iblnIsValidFileSize=!0),istrMsg.length>0&&(i=$("#GlobalMessageDiv").html(),i="",i!=undefined&&(i=i+"<br />"),ns.viewModel.currentModel.indexOf("wfmDUAClaimApplicationWizard")>-1?nsCommon.DispalyError(istrMsg,this.istrActiveDivID):nsCommon.DispalyError(i+istrMsg,this.istrActiveDivID)),originalFileslength++,n.originalFiles.length==originalFileslength&&(originalFileslength=0,istrMsg=""),t};MVVM.JQueryControls.FileUpload.prototype.UpdateFileElement=function(n){if(n.files.length>0){var t=this.idomUl.find("li.s-fileupload-item:contains("+n.files[0].name+" ("+n.files[0].size+" bytes ) )");t.length>0&&($(t).addClass("s-fileupload-item-success"),$(t).find(" .s-fileupload-remove").each(function(){$(this).attr("tabindex","0");$(this).attr("title","clear file "+$(this).attr("sfwfiletoremove"));$(this).attr("alt","clear file button")}),$(t).find(".s-fileupload-text").each(function(){$(this).attr("tabindex","0");$(this).attr("role","text");$(this).next().attr("tabindex","0");$(this).next().attr("role","text")}))}};MVVMGlobal.SetFieldValueIntoModel=SetFieldValueIntoModel;FMOnDeleteNodeClick=nsEvents.OnDeleteNodeClick;OnDeleteNodeClick=function(n){$(n).attr("deletenodeid").indexOf("wfmMSSHomeMaintenance")>0||FMOnDeleteNodeClick(n)};nsEvents.OnDeleteNodeClick=OnDeleteNodeClick;MVVM.JQueryControls.GridView.prototype.afterDataBoundBase=MVVM.JQueryControls.GridView.prototype.afterDataBound;MVVM.JQueryControls.GridView.prototype.afterDataBound=function(n){this.afterDataBoundBase(n);GetSelectedRowInGrid(this)};GetSelectedRowInGrid=function(n){var i=!1,u,t,r;n.iintRecordLength>0?n.istrActiveDivID.indexOf("wfmBackDateClaimWizard")===0&&n.istrGridId=="grvBusClaim"&&(i=!0):i=!0;switch(i){case!0:u=n.getSelectedIndexes();u.length===0&&(t=$(n.element).find(".SelectedColumn").filter(function(){return this.innerText.indexOf("Y")==0}),[0],t=t.parent(),t!=undefined&&t.length>0&&(r=n.getRowByIndex(t.attr("data-uid")),r!=undefined&&n.checkRow(r,!0)));break;default:return!0}};ns_bindSummary=ns.bindSummary;ns.bindSummary=function(n,t){var r,i;if(ns_bindSummary(n,t),n.ValidationSummary!==undefined&&n.ValidationSummary.length>0&&t.indexOf("wfmClaimEmploymentHistoryWizard")==0)for(r=0,i=0;i<n.ValidationSummary.length;i++)n.ValidationSummary[0].istrErrorMessage=="Invalid ZIP/Postal code."?$("#txtMostRecentWorkAddressZip").addClass("CustomErrorHighlight"):$("#txtMostRecentWorkAddressZip").removeClass("CustomErrorHighlight")};nsEvents.btnOpenLookup_Click=btnOpenLookup_Click;MVVMGlobal.GridCheckBoxEditor=function(n,t){var o=t.sender.id.replace(nsConstants.GRID_TABLE_UNDERSCORE,""),r=t.model.fields[t.field].CustomAttributes,h="Y",f,l,e;r.sfwValueChecked!==undefined&&(h=r.sfwValueChecked);var u=$(['<input type="checkbox" GridID="',o,'" class="GridCheckBox" rowIndex="',t.model.rowIndex,'"  name="',t.field,'"  data-field="',t.field,'" />'].join("")),c=Object.keys(r),s="",i={};for(f=0,l=c.length;f<l;f++)s=c[f].trim(),i[s]=r[s];i.id!=undefined?i.id=[i.id,"_",t.rowIndex].join(""):i.ID!=undefined&&(i.ID=[i.ID,"_",t.rowIndex].join(""));NeoGrid.setAttributes(u[0],i);u[0].checked=t.item[t.field]===h;t.sender.options.iblnIsMaterialize===!0||t.sender.options.iblnIsGroupCaption===!0?(e=neo.htmlToElement('<label materialize="true" data-field="'+t.field+'" rowIndex= "'+t.rowIndex+'"><span class="s-checkbox-Indicator"><\/span><\/label>',"div"),NeoGrid.jQPrepend(e,u[0]),n[0].appendChild(e),e=null):n[0].appendChild(u[0]);(o=="grvGridAppointmentSchedule"||o=="grvGridAppointmentScheduleMultiAppeal")&&(t.sender.options.ActiveDivId.indexOf("wfmClaimantFileAppealWizard")==0||t.sender.options.ActiveDivId.indexOf("wfmEmployerFileAppealWizard")==0)&&t.field=="dt__0_0"&&n.addClass("hideControl")};NeoGrid.onChangeRowSelectBase=NeoGrid.onChangeRowSelect;NeoGrid.onChangeRowSelect=function(n){var t,i,u,h,s,r,f;NeoGrid.onChangeRowSelectBase(n);if(t=n.closest('.s-gridparent[data-role="neogrid"]').data("neoGrid"),(t.options.ActiveDivId.indexOf("wfmClaimantFileAppealWizard")==0||t.options.ActiveDivId.indexOf("wfmEmployerFileAppealWizard")==0)&&(t.id=="grvGridAppointmentSchedule"||t.id=="grvGridAppointmentScheduleMultiAppeal")&&(i=nsCommon.GetWidgetByActiveDivIdAndControlId(t.options.ActiveDivId,t.id),i!=undefined&&i.jsObject!=undefined)){if((t.options.ActiveDivId.indexOf("wfmClaimantFileAppealWizard")==0||t.options.ActiveDivId.indexOf("wfmEmployerFileAppealWizard")==0)&&(t.id=="grvGridAppointmentSchedule"||t.id=="grvGridAppointmentScheduleMultiAppeal")){var c=i.jsObject.dataSource.data,e=$.grep(c,function(n){return n.rowSelect==!1||n.rowSelect=="off"}),o=[];if(e.length>0)for(u=0,h=e.length;u<h;u++)o.push(e[u].rowIndex);for(s=i.getSelectedIndexes(),r=0,f=s.length;r<f;r++)setCheckUncheckWaiverPenalty(i,s[r],"Y",n);for(r=0,f=o.length;r<f;r++)setCheckUncheckWaiverPenalty(i,o[r],"N",n)}var l=$(n).closest(nsConstants.GRID_DATA_ROW_SELECTOR),a=l.attr("rowIndex"),v=n[0].checked===!0||n[0].checked==="on"?"Y":"N";setCheckUncheckWaiverPenalty(i,a,v,n)}};nsVisi.BindChangeEventForClientCicibilityBase=nsVisi.BindChangeEventForClientCicibility;nsVisi.BindChangeEventForClientCicibility=function(n,t){var i,r;i=n.indexOf(nsConstants.LOOKUP)>0||nsCommon.IsCorrForm(n)?ns.Templates[n]:ns.viewModel[n];r=t!=undefined?t:$([nsConstants.HASH,n].join(""));i.HeaderData.bind&&i.HeaderData.bind("change",function(t){var s,o,u,e,f;if(t.field!=undefined)if(t.field.indexOf("ClientVisibility")===0)u=t.field.substr(0,t.field.lastIndexOf(".")),s=this.get(u),s[nsConstants.DATA_SFW_CONTROL_TYPE]===nsConstants.SFW_TAB&&(o=r[0].querySelector(["div[id^=",u.split(".")[1],"]"].join("")),o!=undefined&&(s.visible?ns.ShowControl($(o),n,r):ns.HideControl($(o),n,r)));else{if(u=t.field,i.ControlsHaveingVisibility[u]!==undefined){var h=r[0].querySelector([nsConstants.HASH,i.ControlsHaveingVisibility[u].id].join("")),c=$(h),l=function(){nsVisi.ApplyClientVisibilityToControl(n,c,!0,r)};setTimeout(l,50);ns.VisibilityChangedFromCode=!1}if(e={},i.HeaderData.IgnoreList!=undefined){if(i.HeaderData.IgnoreList[t.field]!=undefined)return;if(t.field.contains(".")&&i.HeaderData.IgnoreList[t.field.substring(0,t.field.lastIndexOf("."))]!=undefined)return}if(u.indexOf("MaintenanceData")===0||u.indexOf("QuestionnaireData")===0){if(f=u,f.contains(".")&&(f=f.substr(f.indexOf(".")+1),f.contains(".")&&(f=f.substring(0,f.indexOf(".")))),i.HeaderData.IgnoreList!=undefined&&i.HeaderData.IgnoreList[f]!=undefined)return;if(i.HeaderData&&i.HeaderData.ControlList!=null&&nsCommon.IsControlHiddenOrReadOnly(n,f)){console.log("Info : Can not bind data for non-editable control "+f+" on form "+n);return}e={Type:"HeaderData",Value:i.HeaderData.get(u),Field:u};MVVMGlobal.AddDirtyData(n,e)}u.indexOf("UserControlData")===0&&(e={Type:"UserControlData",Value:i.HeaderData.get(u),Field:u},MVVMGlobal.AddDirtyData(n,e))}})};ns.refreshSessionBase=ns.refreshSession;ns.refreshSession=function(){window.QueueIt!=null&&window.QueueIt.validateUser!=null&&typeof window.QueueIt.validateUser=="function"&&window.QueueIt.validateUser(!0);ns.refreshSessionBase()};nsEvents.btnBase_ClickBase=nsEvents.btnBase_Click;nsEvents.btnBase_Click=function(n,t,i){return window.QueueIt!=null&&window.QueueIt.validateUser!=null&&typeof window.QueueIt.validateUser=="function"&&window.QueueIt.validateUser(!0),nsEvents.btnBase_ClickBase(n,t,i)};nsEvents.clickHandlerBase=nsEvents.clickHandler;nsEvents.clickHandler=function(n){return window.QueueIt!=null&&window.QueueIt.validateUser!=null&&typeof window.QueueIt.validateUser=="function"&&window.QueueIt.validateUser(!0),nsEvents.clickHandlerBase(n)};SessionEvents.InitTimer=InitTimer