// 03/31/2024 Copyright 2024 KJE Computer Solutions, Inc. Licensed for use on www.thriventchurchloans.com (function(d,g){var c="kje-jaws-panel";var a=null;d.jawsReader=d.jawsReader||{};function b(){var h=document.createElement("div");h.setAttribute("aria-live","assertive");h.style.position="absolute";h.style.left="-9999px";h.id=c;document.body.append(h);return h}function f(){if(!a){a=document.getElementById(c);if(!a){a=b()}}return a}d.jawsReader.read=function e(i,j){var h=f();if(j){h.innerText=""}setTimeout(function(){h.innerText=i},50)}})(window);if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}}document.documentElement.setAttribute("KJE-useragent",navigator.userAgent);var KJE={lang:"EN",initFired:false,reportTest:false,CalcDelay:100,CalculatorWidthMax:900,CalculatorWidthMin:320,CalculatorWidthNoMargin:false,bLockDown:false,ShowDefinitions:true,ShowCalculateButton:true,ShowReportButton:true,ShowPrintButton:true,ShowExtraClientInputs:false,ShowRequiredMessage:true,KeepCalculatorOnPage:false,KeepCalculatorOnPageAutoReport:false,closeCalculatorDroppersForReport:false,sExtraClientInputs:"EXTRA",ExtraClientInputs:"
Input information:
",DivDataPoint:"",IncludeDefinitions:true,PopupDefinitions:true,InlineDefinitions:false,SliderWidthAdjust:0,bNativeSlider:true,bElementStyling:true,ErrorBackground:"#FF7777",IncompleteBackground:"#FFFF77",CalculatorName:"Calculator Title",bUseInputForm:false,CommandButtons:"
**FLOAT_TITLE**
",CommandMoreButtons:"
",CommandButtonsFloatTitle:"
",ReportButtons:"
",CommandButtonsFixed:false,CommandButtonsTop:true,CommandButtonOffset:22,CommandButtonHeader:0,FixedHeaderHeight:0,CommandButtonPosition:"relative",Scroll:true,ScrollMinimum:5,ReportHeader:"
**REPORT_TITLE**
",ReportGraphContainer:"
",iDecimal:2,ReportShowGraphs:true,ReportFooter:"

© 1998-2023 KJE Computer Solutions, Inc.
Financial Calculators at www.dinkytown.net
(612) 331-2291
1730 New Brighton Blvd. PMB #111
Minneapolis, MN 55413

KJE Computer Solutions, Inc.'s information and interactive calculators are made available to you as self-help tools for your independent use and are not intended to provide investment advice. We cannot and do not guarantee their applicability or accuracy in regards to your individual circumstances. All examples are hypothetical and are for illustrative purposes. We encourage you to seek personalized advice from qualified professionals regarding all personal finance issues. More Information.

",ReportExtraFooter:"",ReportStyleSheet:null,ReportStyleSheet2:null,KJEReportBodyClass:"KJEBody KJEReportBody",ReportOKToOpen:true,ReportDocumentStart:'**REPORT_TITLE****HEADER**',ReportDocumentHead:'**REPORT_TITLE****HEADER**',ReportDocumentEnd:"**FOOTER** \n",CalculatorTitleTemplate:null,CalclatorTitle:null,CalculatorTableClass:"KJECalculatorTable",CalculatorTableReportClass:"KJECalculatorReportTable",CalculatorTitleClass:"KJETitle",CalculatorTitleAdditionalClass:"KJEFontHeading KJETitleExtra",CalculatorTitleError:"KJEError",CalculatorTitleErrorCalculation:"KJEErrorCalculation",CalculatorTitleMissing:"KJEMissing",CalculatorStickyTitleClass:"KJEFontHeading KJETitleExtra",CalculatorDescInputClass:"",CalculatorDescReportClass:"KJECalculatorDescReportView",CalcTitlePaddingTop:30,CalcTitlePaddingLeft:40,CalcTitlePaddingRight:40,CalcTitlePaddingMenu:55,ClearColor:"#FFFFFF",colorList:["#f7f7f7","#efefef","#dfe0db","#CCCCCC","#CCDDCC","#CCCCDD","#DDCCCC","#CCCCDD","#CCDDCC","#CCDDDD","#CCCCDD"],colorRGBackground:"#FFFFFF",DefinitionsH1:"

**LBL_DEFINITIONS**

",LBL_DEFINITIONS:"Definitions",Colon:":",CalculatorTitleEntry:"Please enter or select a value in all required fields.",CalculatorTitleCalc:"Press “Calculate” to view your results.",ButtonMore:"More +",ButtonCalculate:"Calculate",ButtonViewReport:"View Report",ButtonHideReport:"Hide Report",ButtonPrintReport:"Print",sCurrency:"Dollars",MSG_YEARS_LBL:"years",MSG_YEAR_LBL:"year",MSG_MONTHS_LBL:"months",MSG_MONTH_LBL:"month",MSG_AND_LBL:"and",MSG_YES:"Yes",MSG_NO:"No",YES:"yes",NO:"no",MSG_EXCEEDS_LIMIT_OF_RANGE:"KJE1 is limited to KJE2",MSG_UNDER_LIMIT_OF_RANGE:"KJE1 can't be less than KJE2",MSG_VALID_RANGE:"Enter an amount between KJE1 and KJE2",MSG_INVALID_DATE:"Please enter a valid date for KJE1",MSG_MISSING_ITEM:"Please enter a value for KJE1",MSG_REQUIRED_NOTICE:"
KJE1KJE2
",MSG_REQUIRED_SYMBOL:"*This entry is required.",MSG_REQUIRED_SYMBOL_BARE:"*",REQUIRED_SYMBOL_CLASS:"KJERequired",REQUIRED_HOVER_CLASS:"KJERequiredShowHover",MSG_NOTREQUIRED_SYMBOL:"",MSG_GRAPH:"**GRAPH**",SplashContent:"Financial Calculators from
Dinkytown.net",SplashContentFooter:"Financial Calculators ©1998-2023 KJE Computer Solutions, Inc.",Default:{CURRENT_YEAR:(new Date()).getFullYear(),CURRENT_DATE:(new Date()),RORMarket:7,RORRetire:4,RORSave:1,RateCard:19,RatePersonal:9.5,RateFix15:7,RateFix30:7.5,RateAdj:6.5,RateAuto:9,RateAutoLow:1.9,MortgageAmt:350000,HomePrice:400000,StateTaxRate:8,InflationRate:3,RateCardMax:48,LoanRateMin:0,LoanRateMax:36,LoanSliderRateMax:36,MortgageMin:0,MortgageMax:250000000,MortgageRateMin:0,MortgageRateMax:50,MortgageSliderRateMax:10,MortgageTerm:30,MortgageTermMin:1,MortgageTermMax:40,MortgageTermIncrement:5,MortgageShowAll:true,MortgageShowAllMax:25,InvestRateMin:0,InvestRateMax:20,InvestSliderRateMax:12,InflationRateMin:0,InflationRateMax:20,InflationSliderRateMax:12},initializing:0,InTask:false,calcCleared:false,AllContent:"KJEAllContent",CalcTimeout:0,CalcTitleHeight:0,Error:false,InComplete:false,bValidateIncomplete:true,Calculating:false,gGraphs:new Array(0),gReportGraphs:new Array(0),iOldWidth:-1,bSizeInitialized:false,ResizeTimeOut:null,iUrekau:[1133457903, -819674500, -1231165664, -1736264938, 1095768553, 1693686663,1332498680,0,1505998205,380075612,-1435395332],InputScreenText:false,DefinitionText:false,ReportText:false,MSG_ADA_TABLE:"role='presentation'",TypedArray:(typeof Float64Array!="undefined"),showInputsFirst:false,showSliderTitle:true,ShowScrollTitle:true,URLValueParm:"KJEData",SidebySidePrefix:"
",SidebySideMid:"
",SidebySideEnd:"
",replace:function(c,b,a){return(a?a.split(c).join(b):"")},getKJEReplaced:function(a){if(a||a==""){for(var b=1;b0?j+h+(j==1?e:k):a)+(c||(j>0&&b>0)?h+d+h:a)+(c||b>0?b+h+(b==1?g:l):a)},setOrientation:function(){var a=KJE;switch(window.orientation){case -90:case 90:default:a.resize(true);break}},resize:function(b){var a=KJE;if(!a.device.iphone||b){if(a.ResizeTimeOut!=null){clearTimeout(a.ResizeTimeOut)}a.ResizeTimeOut=setTimeout(a.calcResize,50);a.bSizeInitialized=true}},InputSetupMoreButtons:function(a){return KJE.replace("**MORE_BUTTON_COUNT**",a+"",(KJE.CommandMoreButtons.replace("**LBL_MORE**",KJE.parameters.get("MSG_MOREBUTTON"+a,KJE.ButtonMore))))},InputSetup:function(f,h,r){var d=KJE;var a=d.bUseInputForm;var k="**COMMAND_BUTTONS**";var l="**REPORT_BUTTONS**";var j="**MORE_BUTTONS**";var x=(d.deviceMobile||d.CommandButtonsFixed)&&d.CommandButtonsTop;var u=f.indexOf(k);var t=r.indexOf(l);var w="
"+d.CalculatorTitleShow+"
";var g="**TITLE_BAR**";var e=f.indexOf(g);d.bSidebySide=false;d.bSidebySideViewing=false;if(KJE.parameters.get("USE_INPUT_SIDEBYSIDE",false)){var o=(f.indexOf("**GRAPH"));var m=(f.indexOf("KJE-D-INPUTS"));if(o!=-1&&m!=-1){if(f.indexOf("KJE-D-INPUTS",m+1)==-1&&f.indexOf("**GRAPH",o+1)==-1){f=f.replace("**GRAPH",KJE.SidebySideMid.replace("transparent",d.colorList[1])+"**GRAPH");d.bSidebySide=true}}}var p=d.bSidebySide;for(var q=1;q<10;q++){f=d.replace("**GRAPH"+q+"**",d.getGraphCode(q),f)}var n=""+d.DivDataPoint;if(d.MSG_SR_HEADER){n+=""+d.MSG_SR_HEADER+""}if(d.SRExtraHeader){n+=d.SRExtraHeader}if(a){n+="
"}n+="
";n+=(u<0&&x?k:"");n+="
";n+="
";n+="
";n+="


"+d.SplashContent+"

"+d.SplashContentFooter+"









";n+="
";n+="
";n+=(e<0?w:"");n+=(d.ShowRequiredMessage?d.getKJEReplaced(KJE.MSG_REQUIRED_NOTICE,KJE.MSG_REQUIRED_SYMBOL_BARE,KJE.parameters.get("MSG_INDICATES_REQUIRED","indicates required.")):"");n+="
"+(d.ShowExtraClientInputs?d.ExtraClientInputs:"");n+=(p?KJE.SidebySidePrefix.replace("transparent",d.colorList[0]):"");n+=f;n+=(p?KJE.SidebySideEnd:"");n+="
";n+="
";n+="
";n+="
";n+=(u<0&&!x?k:"");n+="
";if(a){n+="
"}n+="";n+="
";n+=(u>=0&&t<0?l:"");n+="
";if(d.ExtraFooter){n+=d.ExtraFooter(h)}n+="
";if(d.IncludeDefinitions&&!d.InlineDefinitions){n+=d.formatDefinitions(h)}d.fmtReportButtons=d.ReportButtons.replace("**LBL_HIDEREPORT**",d.ButtonHideReport).replace("**LBL_PRINTREPORT**",d.ButtonPrintReport);d.fmtCommandButtons=d.CommandButtons.replace("**LBL_VIEWREPORT**",d.ButtonViewReport).replace("**LBL_CALCULATE**",d.ButtonCalculate).replace("**VIEWREPORT**",(a?"type=submit":"type=button"));d.fmtCommandButtons=d.fmtCommandButtons.replace("**FLOAT_TITLE**",(d.CommandButtonsFixed?"":d.CommandButtonsFloatTitle));r=r.replace(l,d.fmtReportButtons);n=((n.replace(g,w)).replace(k,d.fmtCommandButtons)).replace(l,d.fmtReportButtons);var q=0;while(n.indexOf(j)>-1){n=n.replace(j,this.InputSetupMoreButtons(++q))}return{sInputs:n,sReport:r,bReportAddButtonEvents:t>=0}},formatDefinitions:function(d,c){var a=KJE;c=(c?c:a.LBL_DEFINITIONS);var b="";b+="
"+a.DefinitionsH1.replace("**LBL_DEFINITIONS**",a.LBL_DEFINITIONS).replace("**LBL_DEFINITIONS**",a.LBL_DEFINITIONS);b+="
"+d+"
";b+="
";return b},inCommandTask:function(c){var a=KJE;var b="inline-block";var d="none";if(a.InTask&&c){return true}a.Wait.style.display=(c?b:d);a.InTask=c;return false},setTitle:function(c,g){var j=KJE;var h=j.subheader;var i=j.kujiae;var a=j.CalcTitle;var b=j.kujaleip;var d=j.UKuejna;if(b){a.innerHTML=d+i+h;a.className=j.CalculatorTitleError;a.style.setProperty("display","block","important")}else{KJE.TrialReplace1=1;var f=c+h;if(f!=a.innerHTML){a.innerHTML=f}if(g){a.className=j.CalculatorTitleClass+" "+g}else{a.className=j.CalculatorTitleClass+" "+j.CalculatorTitle}if(j.KJEScrollSticky){var e=j.KJEScrollSticky;if(j.Error||j.InComplete||(j.ShowScrollTitle&&!j.reportViewable)){KJE.scrolled();if(f!=e.innerHTML){e.innerHTML=f}e.className=(g?g:"")}else{e.style.display="none";if(""!=e.innerHTML){e.innerHTML=""}}}}},setTitleTemplate:function(){var a=KJE;var c="";if(a.CalculatorTitleTemplate){c=a.CalculatorTitleTemplate;for(var b=0;b3||d==l.getKJEReplaced(l.MSG_MISSING_ITEM,"")?l.CalculatorTitleEntry:d,l.CalculatorTitleMissingClass)}}catch(b){l.Error=true;var c=(b.err?b.err:b)+" ";if(b.oInputElement){b.oInputElement.setCalculationError(b)}if(c.indexOf("NS_ERROR_FAILURE")<1){l.calcClear(c,l.CalculatorTitleError+(KJE.bCalculationModuleError?" "+l.CalculatorTitleErrorCalculation:""))}}if(g||f){setTimeout(function(){l.inCommandTask(false)},400)}if(KJE.StorageSet){KJE.StorageSet()}l.initializing=2;KJE.bCalculationModuleError=false},calcClear:function(c,f){var a=KJE;var d=a.gGraphs;if(!c){c=a.CalculatorTitleEntry}if(!f){f=null}for(var e=0;eAdditional Functions
Click this menu to access the additional functions including:

Reset to Defaults:Click the "Reset to defaults" button to reload the default values for this calculator.

Clear all Fields:Click the "Clear all fields" button to clear all entry fields and reset any radio buttons or drop downs to their default values.

");if(a.parseMenuDefn){KJE.sMenuHelp=a.parseMenuDefn(KJE.sMenuHelp)}a.AddDefinitionEvents(document.getElementById("KJEMenuContainer"),a.formatDefinitionEntry(a.sMenuHelp),a.parameters.get("MSG_MENU_HELP_TITLE","Additional functions"),"MSG_MENU",1,KJE.Menu,"KJEDefinitionIconMenu","KJEGuiDefnPopupRight KJEMenuDefinitions",true)}var b=a.buttonResetLink=document.getElementById("KJEResetLink");if(b){b.addEventListener("click",function(d){d.preventDefault();KJE.resetPage();return false},false)}}},initAfterLoad:function(){var ae=KJE;ae.InputClass="KJEInput"+(KJE.InputModern?" KJEInputModern":"");var M=navigator.userAgent;ae.device={iphone:M.match(/(iPhone|iPod|iPad)/),android:M.match(/Android/)};ae.deviceUseNumberType=false;ae.deviceInputPad=(ae.deviceUseNumberType?KJE.parameters.get("DEVICE_INPUT_PAD",10):0);if(ae.bNativeSlider==true){var Y=document.createElement("input");Y.setAttribute("type","range");ae.bNativeSlider=Y.type!=="text"}ae.bUseStorage=false;if(ae.bStorageInit){ae.bUseStorage=ae.bStorageInit()}var R=ae.ReportStyleSheet,ab=ae.ReportStyleSheet2,l="KJE.css",k="KJESiteSpecific.css",H=document.getElementsByTagName("link");var p="";for(var K=0;K=0&&R==null){R=U;p=U.substring(0,U.lastIndexOf("/")+1)}if(U.indexOf(k)>=0&&ab==null){ab=U}}if(R==null){R=p+l}if(ab==null){ab=p+k}ae.hRefPath=p;ae.ReportStyleSheet=R;ae.ReportStyleSheet2=ab;var W=ae.iUrekau;var ag=W.length,w=location.hostname,T=ae.kujiae=w.replace(/^www\./i,""),c=ae.parameters,g=document;var aa=ae.chjilap(T);ae.kujaleip=true;for(var Y=ag-1;Y>=0;Y--){if(aa==W[Y]){ae.kujaleip=false}}KJE.TrialReplace1=2;ae.CalculatorTitleShow=ae.CalculatorTitle=(c.get("TITLE_TEMPLATE",ae.CalculatorTitle?ae.CalculatorTitle:document.title));ae.AllContent=document.getElementById("KJEAllContent");ae.CalculatorDesc=document.getElementById("KJECalculatorDescID");if(!ae.AllContent){ae.AllContent=document.createElement("div");ae.AllContent.id="KJEAllContent";if(KJE.AllContentTemp){(ae.AllContentTemp).parentNode.insertBefore(ae.AllContent,ae.AllContentTemp)}else{if(ae.CalculatorDesc){(ae.CalculatorDesc).parentNode.insertBefore(ae.AllContent,ae.CalculatorDesc.nextSibling)}}}var V=document.getElementById("KJEAllContentTemp");if(V){V.parentNode.removeChild(V)}if(ae.InlineDefinitions){ae.DefinitionTextContainer=g.getElementById("KJEDefinitionText");ae.DefinitionText=ae.DefinitionTextContainer.innerHTML}var o=g.getElementById("KJEReportText");if(o){ae.ReportText=o.innerHTML;o.innerHTML=""}ae.DefinitionText=ae.formatDefinitionEntry(ae.DefinitionText);if(ae.DefinitionTextContainer){ae.DefinitionTextContainer.innerHTML=ae.DefinitionText}var S=ae.ReportText;if(ae.ReportProcess){S=ae.ReportProcess(S)}S=ae.replace("KJE_CURRENTDATE",ae.Default.CURRENT_DATE,S);ae.ReportGraphCount=0;if(!ae.ReportShowGraphs){S=ae.replace(ae.MSG_GRAPH,"",S)}else{if(S){var e=0;while(true){e=S.indexOf(ae.MSG_GRAPH,e);if(e>=0){ae.ReportGraphCount++;e+=ae.MSG_GRAPH.length}else{break}}}}ae.ReportText=S;if(ae.parseInputs){ae.InputScreenText=ae.parseInputs(ae.InputScreenText)}if(ae.inputPostprocess){ae.InputScreenText=ae.inputPostprocess(ae.InputScreenText)}var t=ae.InputSetup(ae.InputScreenText,ae.DefinitionText,ae.ReportText);ae.AllContent.innerHTML=t.sInputs;ae.ReportText=t.sReport;ae.bReportAddButtonEvents=t.bReportAddButtonEvents;ae.Splash=g.getElementById("KJESplash");ae.inputsViewable=true;ae.Wait=g.getElementById("KJEWait");ae.Report=g.getElementById("KJEReport");ae.ReportTop=g.getElementById("KJEReportTop");var b=ae.Fixed=g.getElementById("KJEFixed");var G=ae.Buttons=g.getElementById("KJECommandButtons");var P=ae.Calculate=g.getElementById("KJECalculate");var J=ae.PrintReport=g.getElementById("KJEPrintReport");var m=ae.ViewReport=g.getElementById("KJEViewReport");var j=ae.HideReport=g.getElementById("KJEHideReport");var ac=ae.Inputs=g.getElementById("KJEInputs");var x=ae.DataPoint=g.getElementById("KJEGuiDataPoint");var C=ae.KJEScrollSticky=g.getElementById("KJEScrollSticky");var y=ae.ScreenReaderHeader=g.getElementById("KJEScreenReaderHeader");var Q=ae.Calculator=g.getElementById("KJECalculatorTableCell");ae.H1Title=g.getElementById("KJETitleH1");KJE.InputsSidebySide=document.getElementById("KJEInputsSidebySide");KJE.InputsColumnLeft=document.getElementById("KJEInputsColumnLeft");KJE.InputsColumnRight=document.getElementById("KJEInputsColumnRight");ae.ScreenSize=g.getElementById("KJECalculatorScreenSize");var O=g.getElementById("KJECalcForm");var X=ae.CalcTitle=g.getElementById("KJETitle");X.style.paddingTop=ae.CalcTitlePaddingTop+"px";X.style.paddingRight=ae.CalcTitlePaddingRight+"px";X.style.paddingLeft=ae.CalcTitlePaddingLeft+"px";X.style.paddingBottom="0px";X.style.setProperty("display","block","important");var ad=ae.Main=g.getElementById("KJEMain");var q=ae.Definitions=g.getElementById("KJEDefinitions");if(q&&q.lastChild){var A=q.lastChild.childNodes;var af=A.length;for(Y=0;Y

CALC_HEADER_TITLE

CALC_HEADER_DESC
");F.innerHTML=n.replace("CALC_HEADER_TITLE",a).replace("CALC_HEADER_DESC",B)}var D=ae.inputs.items;var r=KJE.INIT;var Z=KJE.INIT_NOCHANGE;var L=KJE.INIT_ACTION;for(var Y in D){var z=L[D[Y]._inputType];if(z!=Z){if(D[Y].bShow&&!D[Y]._inputField.disabled){if(D[Y]._inputType==KJE.TypeNumber&&z!=""&&z");var o=r.indexOf("",p);r=r.substring(0,p)+r.substring(o);p=r.indexOf("");o=r.indexOf("",p);r=r.substring(0,p)+r.substring(o);r=e("","",r);r=e("","",r);r=e("","",r);r=e("**REPORT_STYLE_SHEET**",t.ReportStyleSheet,r);r=e("**REPORT_STYLE_SHEET2**",t.ReportStyleSheet2,r);var q=t.replace("",KJE.parameters.get(t.lang+"ReportExtraFooter",t.ReportExtraFooter),KJE.parameters.get(t.lang+"ReportFooter",t.ReportFooter)),r);r=e("**REPORT_TITLE**",t.CalcName?t.CalcName:t.CalculatorTitleShow,r);r=e("**CURRENT_DATE**",t.dateFormat(KJE.Default.CURRENT_DATE),r);r=e("**current_date**",t.dateFormat(KJE.Default.CURRENT_DATE),r);r=e("**CURRENT_YEAR**",t.input(KJE.Default.CURRENT_YEAR),r);r=e("**current_year**",t.input(KJE.Default.CURRENT_YEAR),r);r=e("**TITLE**",t.CalcName?t.CalcName:"Financial Calculator",r);r=e("Calculator Calculator","Calculator",r);if(t.reportViewable){for(var l=0;l"+e('"',""e",a[k]._titleGraph.s)+"";p=r.indexOf("");o=r.indexOf(d,p);r=r.substring(0,p)+t.ReportGraphContainer.replace("**COUNT**",k+"")+c+f+""+r.substring(o+d.length)}j.window.document.body.className=t.KJEReportBodyClass;j.window.document.body.id="KJEReportBody";j.window.document.head.innerHTML=t.getElementContent("head",r);j.window.document.body.innerHTML=t.getElementContent("body",r);j.focus();if(t.reportViewable){var m=t.gReportGraphs;for(var l=0;l");if(b>=0&&a>=0&&a>b){a-=3+d.length;c=e.substring(e.indexOf(">",b)+1,a)}return c},printTheReport:function(){var a=KJE;var c=0;if(screen){c=screen.width/2-480}var b=window.open("","_blank","toolbar=yes,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=960,height="+(screen.height-170)+",left="+c+",top=5");setTimeout(function(){a.printOpenReport(b)},500)},showReport:function(){var a=KJE;if(a.InTask){return}a.InTask=false;if(a.Error||a.InComplete){a.calculateInputInitiatizing(true);return}if(a.ReportOKToOpen){if(a.inCommandTask(true)){return}setTimeout(a.showReportFinal,200)}},showReportFinal:function(){var b=KJE;b.DataPointHide();if(b.ScreenReaderHeader){b.ScreenReaderHeader.style.display="none"}if(KJE.KeepCalculatorOnPage==false){if(KJE.MenuWindowHide){KJE.MenuWindowHide()}}if(b.reportButtonExtraAction){b.reportButtonExtraAction()}if(!b.reportViewable){if(b.displayMenu){b.displayMenu(false)}if(KJE.KeepCalculatorOnPage==false){b.CalculatorTable.className=b.CalculatorTableReportClass}b.results(false,true);if(b.Error||b.InComplete){b.inCommandTask(false);return}b.reportViewable=true;if(b.ViewReport){b.Calculate.value=b.ButtonPrintReport}b.Calculate.style.display=(b.ShowPrintButton?"inline-block":"none");if(!b.KeepCalculatorOnPage){b.Main.style.overflow="hidden";b.Main.style.display="none";jawsReader.read("Report Displayed press enter to hide report",true)}if(b.Definitions){b.Definitions.style.display="none"}b.Report.style.display="block";if(b.ViewReport){b.ViewReport.value=b.ButtonHideReport}if(b.reportPreprocess){b.sReport=b.reportPreprocess(b.CalcControl,b.ReportText)}else{b.sReport=b.ReportText}var a=new KJE.ReportMessage(b.sReport);if(b.ShowExtraClientInputs){b.setExtraClientReport(b.CalcControl,a)}a.input("**CURRENT_YEAR**",b.Default.CURRENT_YEAR);a.date("**CURRENT_DATE**",KJE.Default.CURRENT_DATE);b.CalcControl.formatReport(a);if(b.CalcControl.formatReportSpecial){b.CalcControl.formatReportSpecial(a)}if(b.reportPostprocess){a=new KJE.ReportMessage(b.reportPostprocess(a.get()))}a.input("**CURRENT_YEAR**",b.Default.CURRENT_YEAR);a.date("**CURRENT_DATE**",KJE.Default.CURRENT_DATE);b.sReport=a.get();setTimeout(b.fireReport,50)}else{b.showInputs();if(b.CalculatorDesc){b.CalculatorDesc.className=b.CalculatorDescInputClass}if(b.KeepCalculatorOnPage){b.Calculate.style.display="none"}else{setTimeout(b.results,400);setTimeout(function(){jawsReader.read("Report Hidden press enter to display report",true)},500)}if(b.displayMenu){b.displayMenu(true)}setTimeout(function(){b.inCommandTask(false)},400)}if(b.CalcShowReportTimeout){clearTimeout(b.CalcShowReportTimeout)}},fireReport:function(){var b=KJE;if(b.CalculatorDesc){b.CalculatorDesc.className=b.CalculatorDescReportClass}var e=b.sReport;for(var d=0;d"+b.ReportGraphContainer.replace("**COUNT**",d+"")+" ";e=e.replace(b.MSG_GRAPH,h)}b.ReportTop.innerHTML=e;if(b.ReportGraphCount>0){for(var f=0;f","

",d);d=a.replace("","

",d);d=a.replace("","

",d);d=a.replace("
","

",d);d=a.replace("

","

",d);if(a.parseDefinitions){d=a.parseDefinitions(d)}return d},addReportButtonEvents:function(){var b=KJE;var a=b.PrintReport=document.getElementById("KJEPrintReport");var c=b.HideReport=document.getElementById("KJEHideReport");var d="click";if(a){a.addEventListener(d,b.printTheReport,false)}if(c){c.addEventListener(d,b.showReport,false)}}};KJE.util={findPos:function(a){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return[b,curtop]},getPageScroll:function(){var b,a;if(self.pageYOffset){a=self.pageYOffset;b=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}else{if(document.body){a=document.body.scrollTop;b=document.body.scrollLeft}}}return[b,a]},findPosRelativeToViewport:function(c){var b=this.findPos(c);var a=this.getPageScroll();return[b[0]-a[0],b[1]-a[1]]}};KJE.stripDate=function(a){if(!a){return""}var c=a.length;var d="";while(c>0){var b=a.charAt(c-1);switch(b){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":d=b+d;break;case"-":d=b+"/";break;default:break}c--}return d};KJE.strip=function(a,f){if(!a){return"0"}var c=a.length;var e="";var g=0;var h=0;while(c>0){var b=a.charAt(c-1);switch(b){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":e=b+e;break;case".":if(!g){e=b+e}g++;break;case"-":case"(":h++;break;default:break}c--}if(e==""){return"0"}return(h&&!f?"-"+e:e)};KJE.InputModern=true;KJE.WindowsOS=(navigator.userAgent.indexOf("Windows")!=-1);KJE.CHROME=(navigator.userAgent.toLowerCase().indexOf("chrome")!==-1);KJE.FIREFOX=(navigator.userAgent.toLowerCase().indexOf("Firefox")!==-1);KJE.NoSupport=(!window.addEventListener);KJE.Safari=(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1);KJE.List=function(){this.length=0;this.items={};this.bLock={}};KJE.List.prototype.getSet=function(b,a){if(this.exists(b)){return this.items[b]}return this.set(b,a)};KJE.List.prototype.get=function(b,a){if(typeof(this.items[b])=="undefined"){a=a}else{a=this.items[b]}if((typeof a)=="string"){a=(KJE.parseList?KJE.parseList(a):a)}return a};KJE.List.prototype.exists=function(a){return !(typeof(this.items[a])=="undefined")};KJE.List.prototype.locked=function(a){return !(typeof(this.bLock[a])=="undefined")};KJE.List.prototype.set=function(b,c,a){if(typeof(c)!="undefined"){if(typeof(this.items[b])=="undefined"){this.length++}if(this.locked(b)){return this.items[b]}else{if(a){this.bLock[b]=true}this.items[b]=c}}return c};KJE.setExtraClientInputs=function(b){var a=KJE.inputs.items;b.EXTRA_CLIENTNAME=a.EXTRA_CLIENTNAME.getValue();b.EXTRA_NOTES=a.EXTRA_NOTES.getValue();b.EXTRA_DATE=a.EXTRA_DATE.getValue()};KJE.setExtraClientReport=function(c,a){var b=KJE;var d=KJE.parameters.get("EXTRA_CLIENT_BLOCK","

"+(c.EXTRA_CLIENTNAME?"Prepared for: EXTRA_CLIENTNAME ":"")+(c.EXTRA_NOTES?"
EXTRA_NOTES
":"")+(c.EXTRA_DATE?"EXTRA_DATE":"")+"
");if(a.indexOf("**EXTRA_CLIENT_BLOCK**")<0){a.prepend("**EXTRA_CLIENT_BLOCK**")}if(c.EXTRA_CLIENTNAME||c.EXTRA_NOTES||c.EXTRA_DATE){a.replace("**EXTRA_CLIENT_BLOCK**",d)}else{a.replace("**EXTRA_CLIENT_BLOCK**","")}a.replace("EXTRA_CLIENTNAME",c.EXTRA_CLIENTNAME);a.replace("EXTRA_NOTES",c.EXTRA_NOTES);a.replace("EXTRA_DATE",b.dateFormat(c.EXTRA_DATE,""))};KJE.CalculatorWidth=KJE.CalculatorWidthMax;KJE.MSG_SR_HEADER="By changing any value in the following form fields, calculated values are immediately provided for displayed output values. Click the view report button to see all of your results.";KJE.parameters=new KJE.List();KJE.inputs=new KJE.List();KJE.droppers=new KJE.List();KJE.definitions=new KJE.List();KJE.UKuejna="KJE Calculator License Not Found for: ";KJE.subheader="";KJE.iStorageTime=1000;KJE.STORAGE_NONE=0;KJE.STORAGE_AUTO=1;KJE.bStorageNonsupportWarning=true;KJE.bStorageOK=function(){if(typeof(Storage)!=="undefined"){try{localStorage.setItem("localStorage",1);localStorage.removeItem("localStorage")}catch(a){KJE.bUseStorage=KJE.STORAGE_NONE;return false}return true}return false};KJE.bStorageInit=function(){KJE.oStorageItems=null;KJE.bUseStorage=KJE.parameters.get("LOCAL_STORAGE",KJE.STORAGE_AUTO);KJE.sStorageKey=(typeof KJE.CalcType!="undefined"?KJE.CalcType:"TEMP");if(KJE.bStorageOK()){try{var b=localStorage.getItem(KJE.sStorageKey);if(KJE.LZString){b=KJE.LZString.decompressFromEncodedURIComponent(b)}KJE.oStorageItems=JSON.parse(b)}catch(c){KJE.oStorageItems={}}if(KJE.oStorageItems==null){KJE.oStorageItems={}}localStorage.setItem(KJE.sStorageKey+"_href",KJE.formatHref());localStorage.setItem(KJE.sStorageKey+"_title",document.title)}else{KJE.bUseStorage=KJE.STORAGE_NONE}if(KJE.getURLValueParam){var a=KJE.getURLValueParam();if(a){KJE.oStorageItems=a}}return KJE.bUseStorage};KJE.StorageSet=function(){if(KJE.bUseStorage){if(KJE.bStorageTimeout){clearTimeout(KJE.bStorageTimeout)}KJE.bStorageTimeout=setTimeout(KJE.bStorageSet,KJE.iStorageTime)}};KJE.getJSONFromInputs=function(){var b=KJE.inputs.items;var a={};for(var c in b){if(b.hasOwnProperty(c)){if(b[c]._inputType!=KJE.TypeLabel&&b[c]._inputType!=KJE.TypeNone){a[c]=b[c]._value}if(b[c]._inputTypeAdditional==KJE.TypeDropBox){a[b[c]._Additional.name]=b[c]._Additional.value}}}var d=JSON.stringify(a);return d};KJE.bStorageSet=function(c,b){var a=KJE.getJSONFromInputs();if(KJE.LZString){a=KJE.LZString.compressToEncodedURIComponent(a)}if(KJE.bUseStorage){localStorage.setItem(KJE.sStorageKey+(c?"#"+c:""),a);if(b){localStorage.setItem(KJE.sStorageKey+"#"+c+"_name",b)}}return a};KJE.bStoragePopulate=function(c){var b=KJE.inputs.items;for(var d in b){var a=false;if(c.hasOwnProperty(d)){a=c[d]}else{if(b.hasOwnProperty(d)){a=b[d].vDefault}}var e=null;if(b[d]._inputTypeAdditional!=KJE.TypeNone){if(c.hasOwnProperty(b[d]._Additional.name)){e=c[b[d]._Additional.name]}else{e=b[d].vDefault2}}KJE.InputItem.InputSetValues(b[d],a,e,false)}KJE.results(true)};KJE.StorageGet=function(b,a){var d=KJE.parameters.get(b,a);if(KJE.oStorageItems&&KJE.bUseStorage){var c=KJE.oStorageItems[b];if(c!=null){d=c}}return d};KJE.bHrefTrimURL=true;KJE.formatHref=function(){var a=document.location.href;if(KJE.bHrefTrimURL){var b=a.indexOf("?");if(b>0){a=a.substr(0,b)}}return a};KJE.MenuResizeTimeOut=null;KJE.MenuWindowVisible=false;KJE.MenuSelectedRow=-1;KJE.menuInit=function(b){KJE.sMenuRESET="
";KJE.sMenuCLEAR="
";KJE.sMenuHTMLAuto="**RESET****CALCCLEAR**";KJE.MenuHeader='

**MSG_MENU_TITLE**

';KJE.ShowMenu=KJE.parameters.get("SHOW_MENU",KJE.ShowExtraClientInputs);if(KJE.ShowMenu){if(b){b.style.paddingRight=KJE.CalcTitlePaddingMenu+"px"}var a=KJE.Menu=document.getElementById("KJEMenu");if(a){KJE.MenuContainer=document.getElementById("KJEMenuContainer");a.addEventListener("click",KJE.showMenu,false);KJE.MenuContainer.setAttribute(KJE.sExpand,"false")}}};KJE.MenuResize=function(){if(KJE.ShowMenu){var a=KJE;clearTimeout(a.MenuResizeTimeOut);a.MenuResizeTimeOut=setTimeout(a.resizeMenu,50)}};KJE.displayMenu=function(a){if(KJE.ShowMenu){var b=KJE.Menu.style;if(a&&KJE.ShowMenu){b.display="Inline-Block";KJE.MenuContainer.setAttribute(KJE.sExpand,"false")}else{b.display="None";KJE.MenuContainer.removeAttribute(KJE.sExpand)}}};KJE.resizeMenu=function(){var a=KJE;if(a.reportViewable||!a.ShowMenu){return false}if(a.MenuWindowVisible){a.MenuWindowShow()}};KJE.showMenu=function(){if(KJE.MenuWindowVisible){setTimeout(KJE.MenuWindowHide,1)}else{setTimeout(KJE.MenuWindowShow,1)}};KJE.MenuWindowHide=function(c){if(KJE.ShowMenu&&KJE.MenuWindow){var a=KJE;a.MenuWindow.style.display="none";KJE.MenuContainer.setAttribute(KJE.sExpand,"false");if(c){}else{try{KJE.Menu.focus()}catch(b){}}a.MenuWindowVisible=null}};KJE.MenuWindowOffset=function(){var a=KJE.MenuWindow.offsetParent;if(a){var b=KJE.getScreenCoord(0,0,a);return{x:-b.x,y:-b.y}}else{return{x:0,y:0}}};KJE.MSG_MENU_TITLE="Additional Functions ";KJE.MenuWindowShow=function(){var b=KJE;b.DataPointHide();if(b.DefnPoint){b.DefnPointHide()}if(b.MenuWindow==null){b.MenuWindow=document.getElementById("KJEMenuWindow");KJE.MenuHeader=b.replace("**MSG_MENU_CLOSE**",KJE.MSG_DEFN_CLOSE_LABEL,KJE.MenuHeader);var d=false;if(KJE.initMenuMulti&&KJE.bUseStorage==KJE.STORAGE_MULTI){d=KJE.initMenuMulti()}if(!d||KJE.bUseStorage==KJE.STORAGE_NONE){KJE.MenuHeader=b.replace("**MSG_MENU_TITLE**",KJE.MSG_MENU_TITLE,KJE.MenuHeader);b.MenuWindow.innerHTML=KJE.MenuHeader+b.replace("**CALCCLEAR**",KJE.sMenuCLEAR,b.replace("**RESET**",KJE.sMenuRESET,b.replace("**EMAIL**",b.replace("**EMAIL_DEFAULT**",KJE.sEmailDefault,KJE.sMenuEMAIL),b.sMenuHTMLAuto)))}var a=b.MenuWindow.buttonReset=document.getElementById("KJEReset");var c=b.MenuWindow.buttonClear=document.getElementById("KJEClear");var f=b.MenuWindow.buttonEmail=document.getElementById("KJEEmail");var e=b.MenuWindow.buttonEmail=document.getElementById("KJECopyLink");if(a){a.addEventListener("click",KJE.resetPage,false)}if(c){c.addEventListener("click",KJE.clearPage,false)}if(f){f.addEventListener("click",KJE.emailpage,false)}if(e){e.addEventListener("click",KJE.copyLink,false)}}b.MenuWindow.style.display="block";KJE.MenuContainer.setAttribute(KJE.sExpand,"true");b.MenuWindowVisible=true};KJE.resetPage=function(){if(KJE.MenuColorRows&&KJE.bUseStorage){KJE.MenuColorRows(-1)}KJE.bStoragePopulate({})};KJE.clearPage=function(){var a=KJE;var b=a.inputs.items;if(a.MenuColorRows&&a.bUseStorage){a.MenuColorRows(-1)}a.bStoragePopulate({});for(var c in b){if(b[c]._inputType==a.TypeNumber){var d=b[c]._minimum<0?0:b[c]._minimum;b[c].setValue(d,true)}else{if(b[c]._inputType==a.TypeDate){b[c].setText("")}else{if(b[c]._inputType==a.TypeString){b[c].setText("")}}}}a.calcClear()};if(document.addEventListener){document.addEventListener("DOMContentLoaded",KJE.init,false)}KJE.INIT_BLANK=1;KJE.INIT_ZERO=2;KJE.INIT_NORMAL=0;KJE.INIT=KJE.INIT_NORMAL;KJE.INIT_NOCHANGE="NOCHANGE";KJE.INIT_DEFAULT_NORMAL=[KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE];KJE.INIT_DEFAULT_ZERO=[KJE.INIT_NOCHANGE,0,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE];KJE.INIT_DEFAULT_BLANK=[KJE.INIT_NOCHANGE,"","","",KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE,KJE.INIT_NOCHANGE];KJE.INIT_ACTION=KJE.INIT_DEFAULT_NORMAL;KJE.errorObject=function(a,b){this.err=a;this.oInputElement=b};KJE.getURLValueParam=function(){var g={};var f=window.location.href;var a=f.indexOf(KJE.URLValueParm);if(a>0){var c=f.substring(a+KJE.URLValueParm.length+1);if(c){var b=null;try{b="{"+KJE.replace("*",'"',KJE.replace("(","",KJE.replace(")","",KJE.replace(";","",KJE.replace("EMPTY",'""',c)))))+"}";b=JSON.parse(b)}catch(d){b=null}}if(b==""||b==null){alert("There was an error in the data sent to this calculator. This can be caused by editing or changing a calculator link. We were unable to populate the calculator with the sent values. Calculator will appear with default values.");return false}return b}return false};KJE.iAddMoreCount=0;KJE.iAddMoreDropperCount=0;KJE.initializeMore=function(d,c,a,b){if(d.addMoreInit){}else{d.oAddMores=new Array();d.addMoreInit=function(f,h,m,j){var g=new Object();g.sRows=h;var k=g.oRowsToShow=new Array(h.length);g.visibleMax=f;g.visibleCount=KJE.parameters.get("VISIBLE_COUNT"+j,KJE.parameters.get("VISIBLE_COUNT",1));g.AddMore=document.getElementById("KJEAddMore"+(j+1));this.oAddMores[KJE.iAddMoreCount]=g;var i=this;if(g.AddMore){g.AddMore.addEventListener("click",function(n){i.addMore(j)});for(var l=0;l0){g.visibleCount=(g.visibleCount<=e?e+1:g.visibleCount)}}}}else{for(var e=0;e=e-1){document.getElementById("KJEAddMore"+(j+1)).style.display="none"}k++;this.oAddMores[j].visibleCount=k;var h=this.oAddMores[j].AddMoreDropper;var l=(h._iHeight?h._iHeight:0);KJE.elementHeight(h._idDroppee.style,"100%");setTimeout(function(){h._iHeight=h._idDroppee.offsetHeight-KJE._idDroppeePadding;KJE.elementHeight(h._idDroppee.style,h._iHeight+"px")},250)}}d.addMoreInit(c,a,b,KJE.iAddMoreCount);KJE.iAddMoreCount++};KJE.elementHeight=function(a,b){if(KJE.bElementStyling){a.height=b}};KJE.elementWidth=function(a,b){if(KJE.bElementStyling){a.width=b}};if(!document.getElementById("KJEAllContent")){if(document.currentScript){KJE.AllContentTemp=document.createElement("span");KJE.AllContentTemp.id="KJEAllContentTemp";document.currentScript.parentNode.insertBefore(KJE.AllContentTemp,document.currentScript)}}KJE.parameters.set("USE_INPUT_SIDEBYSIDE",true);KJE.bHT=false;KJE.getDate=function(b,c,a){var e=null;if((c+a+b)>=0){if((c>=1&&c<=12)&&(a>=1&&a<=31)&&(b>=1&&b<=9999)){var e=new Date(b,c-1,a)}}if(e==null){throw KJE.getKJEReplaced(KJE.MSG_INVALID_DATE)}return e};KJE.getAge=function(c,a){if(c){var d=new Date();var b=d.getFullYear()-c.getFullYear();if(!a){if((d.getMonth()0&&a>c){f=g.substring(0,c);f+=g.substring(a+h.length);c=f.indexOf(e);a=f.indexOf(h);g=f}g=(f==""?b:f)}g=KJE.replace(e,"",g);g=KJE.replace(h,"",g);return g};KJE.ScheduleTableTitle="Periodic Schedule";KJE._sTableHeader="

**ROTATE_MESSAGE**

";KJE._sTableFooter="
";KJE._sFooterRow="";KJE._sTopRow="";KJE._sEvenRow="";KJE._sOddRow="";KJE._sRowFooter="";KJE._sHeading="";KJE._sHeadingUnderline="";KJE._sHeadingLeftBorder="";KJE._sHeadingRightBorder="";KJE._sHeadingFooter="";KJE._sCell="";KJE._sCellStrong="";KJE._sCellFooter="";KJE._sScheduleRotate="(Rotate device or make window larger to view schedule.)";KJE._sScheduleHeader="";KJE._sScheduleHeaderEnd="";KJE._sScheduleFooter="";KJE._sScheduleFooterEnd="";KJE._sScheduleBody="";KJE._sScheduleBodyEnd="";KJE._sCellBorderClass="KJECellBorder";KJE.ScheduleGroupingNotStarted=0;KJE.ScheduleGroupingStarted=1;KJE.ScheduleGroupingEnded=2;KJE.Repeating=function(a){a=(!a?"MSG_REPORT_COL":a);this.sRepeating="";this.nRepeatingCount=0;this.bScheduleHeader=KJE.ScheduleGroupingNotStarted;this.bScheduleFooter=KJE.ScheduleGroupingNotStarted;this.bScheduleBody=KJE.ScheduleGroupingNotStarted;this.sReportCols=new Array(15);this.bReportRequired=new Array(15);for(var b=0;b<15;b++){this.sReportCols[b]=KJE.parameters.get(a+(b+1),"");this.bReportRequired[b]=KJE.parameters.get("MSG_REPORT_REQ"+(b+1),true)}};KJE.Repeating.prototype.sReportCol=function(a,b){var c="";if(b<1||b>this.sReportCols.length){c=a}else{if(!this.sReportCols[b-1]||this.sReportCols[b-1]==""){c=a}else{c=this.sReportCols[b-1]}}return c};KJE.Repeating.prototype.getRepeat=function(d){var a=KJE;var c=a._sTableHeader.replace("**ROTATE_MESSAGE**",KJE._sScheduleRotate);var b=a._sScheduleBodyEnd+a._sTableFooter;return c.replace("**TITLE_TAG**",d?d.replace("'","'"):a.parameters.get("MSG_REPEAT_TITLE",a.ScheduleTableTitle))+this.sRepeating+b};KJE.Repeating.prototype.clearRepeat=function(){this.sRepeating="";this.bScheduleHeader=KJE.ScheduleGroupingNotStarted;this.bScheduleFooter=KJE.ScheduleGroupingNotStarted;this.bScheduleBody=KJE.ScheduleGroupingNotStarted;this.nRepeatingCount=0};KJE.Repeating.prototype.add=function(p,n,c,b,k,m,d,l){var q="";if(arguments.length==0){return q}var f=this.bReportRequired;var a="";var j="";for(var h=m.length;h>1;h--){if(m[h-1]!=null){break}}var g=0;d=(d?true:false);var o="";for(var e=0;e"," "+m[e].sFormat+">")}if(m[e].sClass){a=a.replace("class='","class='"+m[e].sClass+" ")}d=false}else{a=p;if(d){a=a.replace("' >","' scope='col' >")}j=m[e]}if(g==0){o=j+""}if(e0&&d){q=KJE.replace("' >","' width="+KJE.number(Math.floor(100/g),0)+"% >",q)}this.sRepeating+=c+KJE.Repeating.bDataHeader(l,q,o)+b};KJE.Repeating.bCellRemoveHeader=function(b,a,d,c){s=b+a+d;if(c&&(a.trim().toLowerCase()==" "||a.trim()=="")){s=s.replace("","").replace("scope='col'","")}return s};KJE.Repeating.bDataHeader=function(c,a,b){if(!c&&b.trim().toLowerCase()!=" "&&b.trim()!=""){a=a.replace("","")}return a};KJE.Repeating.prototype.addHeader=function(){var a=KJE;if(this.bScheduleHeader==KJE.ScheduleGroupingNotStarted){this.bScheduleHeader=KJE.ScheduleGroupingStarted;this.sRepeating+=KJE._sScheduleHeader}this.add(a._sHeading,a._sHeadingFooter,a._sTopRow,a._sRowFooter,"",arguments,true,true)};KJE.Repeating.prototype.addFooter=function(){var a=KJE;var c=false;var d=arguments;if((typeof arguments[0])==="boolean"){d=new Array();c=arguments[0];for(var b=1;b

**TITLE_TEXT**


**IMG_TEXT**
**ICON**";KJE.sToggleTitleH2Only="

**TITLE_TEXT**

";KJE.sToggleTitle2="

**TITLE_TEXT**


**IMG_TEXT**
**TITLE_TEXT2****ICON**
";KJE.MSG_DEFINE_PREFIX="Define: ";KJE.MSG_DEFINE_HELPICON="?";KJE.MSG_DEFINE_HELPICON_CLOSE="X";KJE.MSG_DEFN_CLOSE_LABEL="Close definition";KJE.MSG_SLIDER="slider";KJE.ErrorsDisplayAfterInputField=false;KJE.POPUP_REQUIRED_MSG=true;KJE.HELP_ON_ICON_ONLY=false;KJE.sToggleAltTextClose="";KJE.sToggleAltTextOpen="";KJE.sToggleTitleClass="KJEToggleTitle";KJE.sInputDescTextClass="KJESubTitle";KJE.sInputDescAlignDefault="KJERight";KJE.sToggleIcon="KJEInputIcon";KJE.sToggleOpen="";KJE.sToggleClose="";KJE.sExpand="aria-expanded";KJE.sExpanded="";KJE.sCollapse="";KJE.DefinitionIconPosition=1;KJE.DefinitionIconPositionLeft=0;KJE.DefinitionIconPositionRight=1;KJE.DefinitionIconPositionLeftOut=2;KJE.DefinitionIconPositionRightOut=3;KJE.DefinitionIconPositionLeftNonDefn=4;KJE.DefinitionIconPosition5=5;KJE.DefinitionIconPositionAsIs=6;KJE.InputFieldPosition="absolute";KJE.InputFieldDisplay="inline-block";KJE.DropeeTransition="height 0.5s";KJE.DropeeDisplay="block";KJE.DropeeWidth="100%";KJE.bShowSliders=true;KJE.FMT_NUMBER=0;KJE.FMT_DOLLARS=1;KJE.FMT_PERCENT=2;KJE.FMT_INPUT=3;KJE.FMT_YESNO=4;KJE.FMT_STRING=5;KJE.FMT_SOCIALSECURITY=6;KJE.sCP="$";KJE.sCS="";KJE.sPP="";KJE.sPS="%";KJE.sNP="";KJE.sNS="";KJE.sPC=",";KJE.sPD=".";KJE.sCC=",";KJE.sCD=".";KJE.bEuropeDecimals=false;KJE.ACCOUNTING_NEGATIVE=false;KJE.format=new Array();KJE.iDPItemHeight=28;KJE.iDPDropHeight=32;KJE.iDPInputHeight=22;KJE.iDPInputTop=2;KJE.iDPInputPad=5;KJE.iDPSliderPad=0;KJE.iDPDropBoxPad=5;KJE.iDPDropBoxModernPad=20;KJE.iDPDroppeeForceSize=false;KJE.DataPointX=0;KJE.DataPointY=0;KJE.bNoLabel=false;KJE.bPlusMinus=false;KJE.TwoLineEntry=false;KJE.RadioesTwoLineEntry=false;KJE.SetLabelLength=true;KJE.iDPRowHeight=32;KJE.iRadioPad=5;KJE.iRadioLabelPad=40;KJE.iInputContainerPad=10;KJE.setPriorYear=function(e,c){var b=document.getElementById("KJEPriorYear");if(b){b.innerHTML=e+""}var a=document.getElementsByClassName("KJEPriorYear");var d;for(d=0;d"+a+""};KJE.nbr=function(p,e,b,m,c,q,o){var t=KJE;if(!p){p=0}q=q||false;c=c||false;b=b||"";m=m||"";e=e||0;if(e>10){e=10}var f=t.round(p,e);var j=(f<0);if(j){f*=-1}var h=(f+"").split(".");var g="";if(e>0){if(!h[1]){if(!c){g=("0000000000").substr(0,e)}}else{if(h[1].length==e){g=h[1]}else{g=h[1]+(c?"":("0000000000").substr(0,e-h[1].length))}}if(g.length>0){g=t.sPD+g}}var a="";if(!q&&(f>999)){var k=h[0].length;if(k%3>0){a=h[0].substr(0,k%3)+t.sPC}for(var d=k%3;da.length){a=("0000000000"+a);a=a.substring(a.length-o)}return(j?(t.ACCOUNTING_NEGATIVE?"(":"-"):"")+b+a+g+m+(t.ACCOUNTING_NEGATIVE&&j?")":"")};KJE.format[KJE.FMT_NUMBER]=function(a,b){return KJE.nbr(a,b,"","",true,false)};KJE.number=KJE.format[KJE.FMT_NUMBER];KJE.format[KJE.FMT_DOLLARS]=function(a,b){if(arguments.length<=1){b=KJE.Default.DollarDecimals}return KJE.nbr(a,b,KJE.sCP,KJE.sCS,false,false)};KJE.dollars=KJE.format[KJE.FMT_DOLLARS];KJE.format[KJE.FMT_PERCENT]=function(a,b){return KJE.nbr(a*100,b,KJE.sPP,KJE.sPS,true,false)};KJE.percent=KJE.format[KJE.FMT_PERCENT];KJE.format[KJE.FMT_SOCIALSECURITY]=function(a){var b=KJE.nbr(a,0,"","",true,true,9);return b.substr(0,3)+"-"+b.substr(3,2)+"-"+b.substr(5,4)};KJE.socialsecurity=KJE.format[KJE.FMT_SOCIALSECURITY];KJE.format[KJE.FMT_INPUT]=function(a,b,c){return KJE.nbr(a,b,"","",true,true,c)};KJE.input=KJE.format[KJE.FMT_INPUT];KJE.format[KJE.FMT_YESNO]=function(b,a){return(b?(a?KJE.MSG_YES:KJE.YES):(a?KJE.MSG_NO:KJE.NO))};KJE.yesno=KJE.format[KJE.FMT_YESNO];KJE.round=function(b,a){return(a?(Math.round(b*(Math.pow(10,a))))/(Math.pow(10,a)):Math.round(b))};KJE.roundDollars=function(a){return KJE.round(a,KJE.Default.DollarDecimals)};KJE.appendSpan=function(e,b,a,d){var c=document.createElement("span");c.setAttribute("id",b);c.className=a;c.innerHTML=d;e.appendChild(c);return c};KJE.setLabelWrap=function(e,h,d,g,c,f,b){if(!g){if(b||e==KJE.TypeLabel||e==KJE.TypeRadios){h._oLabel=document.createElement("div")}else{h._oLabel=document.createElement("label");var a=document.createAttribute("for");a.value=d;h._oLabel.setAttributeNode(a)}if(f){h._oLabel.className=f}h.appendChild(h._oLabel)}if(c){KJE.setLabelText(h,c)}};KJE.setLabelText=function(b,a){if(b._oLabel){b._oLabel.innerHTML=a}else{b.innerHTML=a}};KJE.SliderKnobExtraClass=false;KJE.SliderKnobSize=12;KJE.SliderLeftMargin=12;KJE.SliderKnobVertAdj=-3;KJE.SliderLabelVertAdj=0;KJE.LabelLength=210;KJE.InputLength=110;KJE.RightPad=10;KJE.LabelLeftMargin=0;KJE.InputTotalLength=KJE.LabelLeftMargin+KJE.LabelLength+KJE.InputLength+KJE.RightPad;KJE.SliderMinLength=150;KJE.TypeNone=0;KJE.TypeNumber=1;KJE.TypeString=2;KJE.TypeDate=3;KJE.TypeRadio=4;KJE.TypeRadios=8;KJE.TypeCheckbox=5;KJE.TypeDropBox=6;KJE.TypeLabel=7;KJE.SliderScale=new Object();KJE.s_scale=new Array(10);KJE.s_scale[0]=[0,1000,5000,10000,10,50,100];KJE.s_scale[1]=[0,1000,5000,20000,10,50,200];KJE.s_scale[2]=[0,1000,10000,100000,50,100,1000];KJE.s_scale[3]=[0,10000,100000,500000,250,1000,5000];KJE.s_scale[4]=[0,10000,100000,1000000,250,1000,10000];KJE.s_scale[5]=[0,100000,1000000,10000000,500,10000,100000];KJE.s_scale[6]=[0,500,2500,5000,10,50,100];KJE.s_scale[7]=[0,100,500,1000,5,25,50];KJE.s_scale[8]=[12,48,84,120,6,6,6];KJE.s_scale[9]=[0,100,200,300,10,10,10];KJE.s_scale[10]=[0,1000,10000,50000,50,100,500];KJE.s_label=new Array(10);KJE.k="k";KJE.m="m";KJE.s_label[0]=["$0","$1k","$5k","$10k"];KJE.s_label[1]=["$0","$1k","$5k","$20k"];KJE.s_label[2]=["$0","$1k","$10k","$100k"];KJE.s_label[3]=["$0","$10k","$100k","$500k"];KJE.s_label[4]=["$0","$10k","$100k","$1m"];KJE.s_label[5]=["$0","$100k","$1m","$10m"];KJE.s_label[6]=["$0","$500","$2.5k","$5k"];KJE.s_label[7]=["$0","$100","$500","$1k"];KJE.s_label[8]=["12","48","84","120"];KJE.s_label[9]=["$0","$100","$200","$300"];KJE.s_label[10]=["$0","$1k","$10k","$50k"];KJE.MakeScale=function(a,e,c,f,h,g,d){var b=this;b._Min=a;b._Mid1=e;b._Mid2=c;b._Max=f;b._stepMin=h;b._stepMid=g;b._stepMax=d;b._range=100};KJE.useScale=function(b){var a=KJE;var c=a.s_scale[b];return new a.MakeScale(c[0],c[1],c[2],c[3],c[4],c[5],c[6])};KJE.s_Translate=function(a,b,h,g,f,c,j,i){var e=0;if(a>66.66){e=Math.round(((g+((a-66.66)/33.33)*(f-g))/i))*i}else{if(a>33.33){e=Math.round(((h+((a-33.33)/33.33)*(g-h))/j))*j}else{if(a>0){e=Math.round(((a/33.33)*(h-b)/c))*c+b}else{e=b}}}return(e>f?f:e)};KJE.s_Untranslate=function(b,a,e,c,f){var g=0;if(b>f){return 100}else{if(b>c){g=66.66+((b-c)*33.33)/(f-c)}else{if(b>e){g=33.33+((b-e)*33.33)/(c-e)}else{g=((b-a)*33.33)/(e-a)}}}return(g<0?0:g)};KJE.Slider=function(g,i,f,c,e,k,a,j,b,d,h){return new KJE.InputItem(d,KJE.TypeNumber,g,i,true,"KJE-"+g,f,c,0,e,k,a,(h?false:j),(h?null:b))};KJE.MortgageAmtSlider=function(f,e,b,d,c){var a=KJE;return a.Slider(f,e,a.Default.MortgageMin,a.Default.MortgageMax,d?d:0,a.FMT_DOLLARS,0,[a.dollars(a.Default.MortgageMin/1000,0)+a.k,a.dollars(200,0)+a.k,a.dollars(500,0)+a.k,a.dollars(1,0)+a.m],new a.MakeScale(0,200000,500000,1000000,5000,10000,20000),b,c)};KJE.LoanAmtSlider=function(e,d,b,c){var a=KJE;return a.Slider(e,d,a.Default.MortgageMin,a.Default.MortgageMax,0,a.FMT_DOLLARS,0,[a.dollars(a.Default.MortgageMin/1000,0)+a.k,a.dollars(5,0)+a.k,a.dollars(25,0)+a.k,a.dollars(100,0)+a.k],new a.MakeScale(0,5000,25000,100000,100,500,1000),b,c)};KJE.MortgageTermSlider=function(f,d,e,b,c){var a=KJE;return a.Slider(f,d,a.Default.MortgageTermMin,a.Default.MortgageTermMax,0,a.FMT_NUMBER,(e?e:a.Default.MortgageTermIncrement),[a.Default.MortgageTermMin,a.number(Math.floor((a.Default.MortgageTermMax-a.Default.MortgageTermMin)*0.334+a.Default.MortgageTermMin)),a.number(Math.floor((a.Default.MortgageTermMax-a.Default.MortgageTermMin)*0.667+a.Default.MortgageTermMin)),a.number(a.Default.MortgageTermMax)],null,b,c)};KJE.MortgageTermDropBoxSlider=function(f,e,c,d){var a=KJE;var b=a.getMortgageTermList().v;if(d){a.DropBox(f,e,b);return}return a.DropBoxSlider(f,e,b)};KJE.NumberSlider=function(j,l,b,h,f,a,g,c,i,k,d){var e=(i?true:false);c=(c?c:b);i=(i?i:h);d=(d?d:0);a=(a?a:1);var n=KJE;var m=[n.number(c),n.number(Math.floor((i-c)*0.334+c)),n.number(Math.floor((i-c)*0.667+c)),n.number(i)];if(a>0){m=[n.number(c,d),n.number(KJE.round((i-c)*0.334+c,d),d),n.number(n.round((i-c)*0.667+c,d),d),n.number(i,d)]}return n.Slider(j,l,b,h,(f?f:0),n.FMT_NUMBER,a,m,(e?new n.MakeScale(c,Math.floor((i-c)*0.334+c),Math.floor((i-c)*0.667+c),i,a,a,a):null),g,k)};KJE.InputSlider=function(f,j,b,e,c,h,a,d,i){var k=KJE;var g=k.Slider(f,j,b,e,c?c:0,k.FMT_INPUT,(a?a:1),[b,k.input(Math.floor((e-b)*0.334+b)),k.input(Math.floor((e-b)*0.667+b)),k.input(e)],null,d,i);g._iPadding=h;g.setValue(g.getValue(),true);return g};KJE.AccountBalanceSlider=function(d,c,a,b){return KJE.DollarSlider(d,c,0,1000000000,2,1,4,a,b)};KJE.DollarSlider=function(h,l,j,n,c,b,e,d,k){var a=KJE.parameters.get("MINVALUE_"+h,j);var f=KJE.parameters.get("MAXVALUE_"+h,n);c=((c==undefined)?KJE.Default.PercentDecimals:c);e=(e>=0&&e<=9?e:-1);if(a!=j||f!=n){e=-1}var m=KJE;if(e==-1){for(var g=0;g<=7;g++){if(m.s_scale[g][3]==f){e=g;break}}if(f==50000){e=10}}if(e!=-1){return m.Slider(h,l,a,f,c,m.FMT_DOLLARS,1,m.s_label[e],m.useScale(e),d,k)}return m.Slider(h,l,a,f,c,m.FMT_DOLLARS,(b?b:10),[m.dollars(a,0),m.dollars(Math.round((f-a)/3+a),0),m.dollars(Math.round(((f-a)/3)*2+a),0),m.dollars(f,0)],null,d,k)};KJE.ZipcodeInput=function(e,d,b){var a=KJE;var c=new KJE.InputItem(b,KJE.TypeNumber,e,d,true,"KJE-"+e,0,99999,0,0,a.FMT_INPUT,0,false);c._iPadding=5;c.setValue(c.getValue(),true);return c};KJE.SocialSecurityInput=function(e,d,b){var a=KJE;var c=new KJE.InputItem(b,KJE.TypeNumber,e,d,true,"KJE-"+e,-999999999,999999999,0,0,a.FMT_SOCIALSECURITY,0,false);c._iPadding=9;c.bAbsoluteValue=true;c.setValue(c.getValue(),true);return c};KJE.DollarInput=function(g,f,d,a,e,c){var b=KJE;return new KJE.InputItem(c,KJE.TypeNumber,g,f,true,"KJE-"+g,d,a,0,(!e&&e!=0?2:e),b.FMT_DOLLARS,0,false)};KJE.PercentInput=function(g,f,d,a,e,c){var b=KJE;return new KJE.InputItem(c,KJE.TypeNumber,g,f,true,"KJE-"+g,d,a,0,(!e&&e!=0?2:e),b.FMT_PERCENT,0,false)};KJE.PercentSlider=function(i,l,b,h,f,a,g,k){var n=KJE;var b=n.parameters.get("SLIDER_MIN_"+i,b);var h=n.parameters.get("SLIDER_MAX_"+i,h);var a=n.parameters.get("SLIDER_INC_"+i,a);var c=100;var j=0;if((b-h)%3!=0&&h<12){c=10;j=1}var e=n.percent((Math.floor(((h-b)*0.334+b)*c))/(100*c),j);var d=n.percent((Math.floor(((h-b)*0.667+b)*c))/(100*c),j);var m=[n.percent(b/100),e,d,n.percent(h/100)];return n.Slider(i,l,b,h,(!f&&f!=0?2:f),n.FMT_PERCENT,(a?a:0.1),m,null,g,k)};KJE.LoanRateSlider=function(e,d,b,c){var a=KJE;return a.RateSlider(e?e:"INTEREST_RATE",d?d:"Interest rate",a.Default.LoanRateMin,a.Default.LoanRateMax,a.Default.LoanSliderRateMax,null,b,c,KJE.Default.LoanRateDecimals)};KJE.MortgageRateSlider=function(e,d,b,c){var a=KJE;return a.RateSlider(e,d,a.Default.MortgageRateMin,a.Default.MortgageRateMax,a.Default.MortgageSliderRateMax,null,b,c,KJE.Default.LoanRateDecimals)};KJE.InvestRateSlider=function(e,d,b,c){var a=KJE;return a.RateSlider(e,d,a.Default.InvestRateMin,a.Default.InvestRateMax,a.Default.InvestSliderRateMax,null,b,c,KJE.Default.ReturnRateDecimals)};KJE.InflationRateSlider=function(e,d,b,c){var a=KJE;return a.RateSlider(e,d,a.Default.InflationRateMin,a.Default.InflationRateMax,a.Default.InflationSliderRateMax,null,b,c,KJE.Default.InflationRateDecimals)};KJE.TaxRateSlider=function(e,d,b,c){var a=KJE;return a.RateSlider(e,d,a.Default.TaxRateMin,a.Default.TaxRateMax,a.Default.TaxSliderRateMax,null,b,c,KJE.Default.TaxRateDecimals)};KJE.preKJE=function(a){return(a?"KJE-"+a:null)};KJE.suffix=function(b,a){return(a?b+a:null)};KJE.RateSlider=function(g,o,j,e,i,a,d,l,c){a=a?a:0.5;j=j?j:0;e=e?e:25;c=c?c:KJE.Default.PercentDecimals;i=i?i:12;var p=KJE;var k=p.percent;var h=i-j;var n=Math.floor(h*0.337+j);var m=Math.floor(h*0.667+j);var f=[k(j/100),k(n/100),k(m/100),k(i/100)];var b=new p.MakeScale(j,n,m,i,a,a,a);return p.Slider(g,o,j,e,c,p.FMT_PERCENT,0,f,b,d,l)};KJE.Nbr=function(f,g,e,a,b,h,d,c){var i=KJE;return new i.InputItem(c,i.TypeNumber,f,g,true,"KJE-"+f,e,a,0,b,h,0,false,false,i.suffix(f,"_TRAIL"),i.suffix(i.preKJE(f),"_TRAIL"),d,null,null,i.TypeLabel)};KJE.NbrDropBox=function(e,g,d,a,c,i,f,h,b){var j=KJE;return new j.InputItem(b,j.TypeNumber,e,g,true,"KJE-"+e,d,a,0,c,i,0,false,false,f,j.preKJE(f),(h?h:g))};KJE.Checkbox=function(e,d,f,b,c){var a=KJE;return new a.InputItem(c,a.TypeCheckbox,e,d,true,"KJE-"+e,0,0,f,0,0,0,false,false,null,null,b)};KJE.DropBoxString=function(f,d,e,b,c){var a=KJE;return new a.InputItem(c,a.TypeDropBox,f,d,true,"KJE-"+f,0,0,0,0,a.FMT_STRING,0,false,false,e,a.preKJE(e),b)};KJE.DropBox=function(f,d,e,b,c){var a=KJE;return new a.InputItem(c,a.TypeDropBox,f,d,true,"KJE-"+f,0,0,a.parameters.get(f,0),0,0,0,false,false,e,a.preKJE(e),b)};KJE.DropBoxSlider=function(d,c,e,b){var a=KJE;var f=[e[0],e[Math.floor(e.length*0.333)],e[Math.floor(e.length*0.666)],e[e.length-1]];return new a.InputItem(b,a.TypeDropBox,d,c,true,"KJE-"+d,0,e.length-1,0,0,0,1,f,null)};KJE.Label=function(f,d,e,b,c){var a=KJE;return new a.InputItem(c,a.TypeLabel,f,d,true,"KJE-"+f,0,0,0,0,0,0,false,false,e,a.preKJE(e),b)};KJE.StringInput=function(f,d,e,b,c){var a=KJE;return new a.InputItem(c,a.TypeString,f,d,true,"KJE-"+f,0,0,0,0,0,0,false,false,e,a.preKJE(e),b)};KJE.Date=function(f,d,e,b,c){var a=KJE;return new a.InputItem(c,a.TypeDate,f,d,true,"KJE-"+f,0,0,"TODAY",0,0,0,false,false,e,a.preKJE(e),b)};KJE.Radiobox=function(f,e,d,g,b,c){var a=KJE;return new a.InputItem(c,a.TypeRadio,e,d,(b?false:true),"KJE-"+e,0,0,g,0,0,0,false,false,null,null,b,null,f)};KJE.Radioboxes=function(g,f,h,d,b,e,c){var a=KJE;return new a.InputItem(e,a.TypeRadios,g,f,true,"KJE-"+g+"1",0,0,h,0,0,0,false,false,g,a.suffix(a.preKJE(g),"2"),d,b,null,c)};KJE.InputItem=function(ap,i,g,h,a,aq,aj,X,m,z,M,F,aB,l,y,G,al,I,ar,A){var E=this;var aw=KJE;var av=aw.setLabelWrap;var ao=aw.parameters;var af=KJE.TwoLineEntry;var ab=KJE.TwoLineEntry||KJE.RadioesTwoLineEntry;E._inputType=i;E._name=g;E._inputRequired=(E._inputType!=aw.TypeLabel&&E._inputType!=aw.TypeRadios&&E._inputType!=aw.TypeRadio&&E._inputType!=aw.TypeCheckbox&&E.inputType!=aw.TypeDropBox&&KJE.InputItem.AltNotRequired!=true);E._inputTypeAdditional=aw.TypeNone;E._inputTypeAdditionalRequired=false;E._increment=Math.abs(F);E._decimals=z;E._iPadding=0;E._format=M;E._minimum=aj;E._maximum=X;E._range=X-aj;E.bShow=true;E.bValidate=true;E.bIncompleteCheck=true;E.bNoLabel=KJE.bNoLabel;E.vDefault=ao.get(E._name,m);E.oAdditional=G;E.bUseStoredForDefault=ao.get("USFD_"+E._name,true);E.bAbsoluteValue=false;E.idRG=null;E.bValueBeenSet=false;var S=ao.get("MSG_"+g+"1",al);var V=ao.get("MSG_"+g+"2",I);var an=typeof document.createElement!="undefined"&&typeof document.documentElement!="undefined"&&typeof document.documentElement.offsetWidth=="number";if(!an){return}E._sError="";E._bError=false;E._InComplete=false;E._mouseDown=false;aw.inputs.set(g,this);var au=E._container=document.getElementById("KJE-C-"+E._name);if(!au){if(E._inputType==KJE.TypeString){E.vDefault=(E.vDefault?E.vDefault:"")}E._inputType=aw.TypeNone;E.setValue(E.vDefault,true);return}var P=au.parentElement.nodeName;au.className="KJEInputContainer";var f=au.style;au.setAttribute("aria-live","assertive");au.setAttribute("aria-atomic","true");au.backgroundColor=f.backgroundColor;var w=au.offsetWidth;E.bSlider=(aB!=false&&KJE.bShowSliders==true&&KJE.bNativeSlider);if(l){E._oScale=l}var d=aw.iDPInputPad;var J=E._inputField=document.getElementById(aq);var W=E._iInputFieldDiv=document.getElementById(aq+"Div");if(W==null&&KJE.InputFieldPosition=="static"){W=document.createElement("div");W.className="KJEInputFieldContainer";J.parentNode.insertBefore(W,J);W.appendChild(J)}var ag=J.style;J.name=(ar?ar:E._name);J.className=aw.InputClass;if(E._inputType!=aw.TypeRadio&&E._inputType!=aw.TypeRadios&&E._inputType!=aw.TypeCheckbox){KJE.elementHeight(ag,aw.iDPInputHeight-KJE.iDPInputTop+"px")}if(E._inputType!=aw.TypeRadios){ag.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+aw.iDPInputTop+"px";ag.position=KJE.InputFieldPosition}ag.display=KJE.InputFieldDisplay;E._sLabel=ao.get("MSG_"+E._name,h);var ad=E._fieldset=document.getElementById("KJE-FS-"+E._name);if(ad){ad.className="KJEAccessibleFieldSet";var D=document.createElement("legend");D.className="KJEAccessibleFieldSetLegend";D.innerText=E._sLabel;ad.insertBefore(D,ad.firstChild)}var C=0;var ae=false;if(h!=null&&aw.LabelLength!=0){ae=true;ap=(ap?" "+ap:"");var c="KJE-D-"+(aw.InputItem.AltHelpName?aw.InputItem.AltHelpName:E._name);var T=document.getElementById(c);E.className=(T&&KJE.PopupDefinitions&&!KJE.HELP_ON_ICON_ONLY?"KJEHelp ":"KJELabel ")+ap;var az=E.getLabelForInput(i,aq,a,J,aw.ErrorsDisplayAfterInputField);E.spanInputRangeDesc=az._oRangeSpan;E.spanInputRangeDescInnerHtml=(az._oRangeSpan?az._oRangeSpan.innerHTML:null);E.spanInputRequiredDesc=az._oRequiredSpan;E.spanInputRangeID=az._oRangeSpanName;try{au.insertBefore(az,ad?ad:(W?W:J))}catch(L){}if(T&&KJE.PopupDefinitions){E.oDivDefn=KJE.AddDefinitionEvents(az,T,E._sLabel,E._name,KJE.DefinitionIconPosition,J,null,null,KJE.HELP_ON_ICON_ONLY)}if(aw.TwoLineEntry){C=0}else{C=az.offsetWidth;if(!C){C=aw.LabelLength}}if(az._oLabel){az._oLabel.style.marginTop=(aw.iDPInputHeight/4)+aw.iDPInputTop+"px"}if(aw.TwoLineEntry){KJE.elementHeight(f,aw.iDPRowHeight*2+"px")}else{if(az._oLabel){if(az._oLabel.offsetHeight+6>aw.iDPRowHeight&&KJE.bElementStyling){az._oLabel.style.marginTop="0px"}if(az._oLabel.offsetHeight+6>aw.iDPRowHeight){au.style.height=az._oLabel.offsetHeight+6+"px"}}}}J.indent=(aw.deviceInputPad?aw.deviceInputPad:d)+C;if(E.bNoLabel){J.indent=0;C=0}if(E._inputType===aw.TypeCheckbox||E._inputType===aw.TypeRadio){E._sTrailingText=S;if(az._oLabel){ag.left=C+aw.iRadioPad+"px"}else{ag.left=aw.iRadioLabelPad+"px"}if(S){var t=document.createElement("div");var am=t.style;av(ae?aw.TypeLabel:E._inputType,t,aq,false,E._sTrailingText);t.className="KJETrailingLabel";am.position=KJE.InputFieldPosition;am.display=KJE.InputFieldDisplay;C=C+d*1.5+(J.offsetWidth?J.offsetWidth:15);if(az._oLabel){am.left=C+"px"}else{am.left=aw.iRadioLabelPad*2+"px"}au.appendChild(t);am.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+(aw.iDPInputHeight/4)+aw.iDPInputTop+"px";var R=t.offsetHeight;if(R+6>aw.iDPRowHeight){am.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+((aw.iDPInputHeight/4)+aw.iDPInputTop)+"px"}C+=t.offsetWidth;E._label2=t}}else{if(E._inputType===aw.TypeRadios){var w=aw.CalculatorWidth-aw.iDPInputPad*2;var o=document.createElement("div");var ai=o.style;ai.left=C+aw.iRadioPad+"px";ai.position=KJE.InputFieldPosition;ai.display=KJE.InputFieldDisplay;o.className="KJERadioFieldContainer";KJE.elementHeight(f,aw.iDPRowHeight*2+"px");E._sTrailingText=S;E._sTrailingText2=V;var t=document.createElement("div");var am=t.style;av(aw.TypeRadio,t,aq,false,E._sTrailingText);t.className="KJERadioTrailingLabel";J.title=(h?h+aw.Colon+" ":"")+E._sTrailingText;var j=E._Additional=document.getElementById(G);var ay=j.style;E._inputTypeAdditional=aw.TypeRadios;j.name=(ar?ar:E._name);j.className=KJE.InputClass;var q=E._label3=document.createElement("div");var ax=q.style;av(aw.TypeRadio,q,G,false,E._sTrailingText2);q.className="KJERadioTrailingLabel";j.title=(h?h+aw.Colon+" ":"")+E._sTrailingText2;var aa=document.createElement("div");aa.className="KJERadioHolder";var Z=document.createElement("div");Z.className="KJERadioHolder";o.className="KJERadioes";J.parentNode.insertBefore(o,J);aa.appendChild(J);aa.appendChild(t);Z.appendChild(j);Z.appendChild(q);o.appendChild(aa);o.appendChild(Z);E._oDivRadios=o;j.addEventListener("change",aw.dataChanged,false)}else{if(E._inputType===aw.TypeDropBox){J.className="KJEDropBox";var at=((aw.deviceInputPad?aw.deviceInputPad:d)+C);var N=aw.iDPDropHeight-aw.iDPInputTop;if(W){var B=W.style;W.className="KJEDropBoxDivModern";J.className="KJEDropBox KJEDropBoxModern";B.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+aw.iDPInputTop+"px";B.position=KJE.InputFieldPosition;B.display=KJE.InputFieldDisplay;B.left=at+"px";ag.top="0px";KJE.elementHeight(ag,N+"px");KJE.elementHeight(B,N+"px")}else{ag.left=at+"px";ag.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+aw.iDPInputTop+"px";KJE.elementHeight(ag,aw.iDPDropHeight-KJE.iDPInputTop*2+"px")}KJE.InputItem.bDropBoxRequired(g,J)}else{if(E._inputType===aw.TypeLabel){J.className="KJEOutputLabel "+ap;ag.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+(aw.iDPInputHeight/4)+aw.iDPInputTop+"px";ag.left=(C+d)+"px";J.indent+=aw.deviceInputPad;KJE.elementHeight(ag,aw.iDPItemHeight-2+"px")}else{if(E._inputType===aw.TypeString||E._inputType===aw.TypeDate){ag.left=((aw.deviceInputPad?aw.deviceInputPad:d)+C)+"px"}else{ag.width=aw.InputLength+"px";if(aw.deviceUseNumberType){var p=document.createElement("div");var aC=p.style;p.className="KJELabelBold";aC.position=KJE.InputFieldPosition;aC.display=KJE.InputFieldDisplay;aC.width=aw.deviceInputPad+"px";aC.left=C+"px";aC.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+(aw.iDPInputHeight/4)+aw.iDPInputTop+"px";if(M==aw.FMT_DOLLARS){p.innerHTML=aw.sCP+aw.sCS}else{if(M==aw.FMT_PERCENT){p.innerHTML=aw.sPP+aw.sPS}else{p.innerHTML=""}}KJE.elementHeight(aC,aw.iDPInputHeight+"px");au.appendChild(p);d=p.offsetWidth+1}if(aw.deviceUseNumberType&&E._maximum<1000&&!(KJE.bEuropeDecimals&&E._decimals>0)){J.type="number";if(E._decimals>0){J.setAttribute("step","any")}}ag.left=(C+d)+"px"}}}}}if(G&&aw.TypeRadios!=E._inputType){var j=E._Additional=document.getElementById(G);if(E._Additional){var ay=j.style;ay.position=KJE.InputFieldPosition;ay.display=KJE.InputFieldDisplay;ay.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+aw.iDPInputTop+"px";var w=aw.CalculatorWidth-aw.iDPInputPad*2;j.setAttribute("aria-required","true");E._inputTypeAdditional=aw.TypeDropBox;var K=E._AdditionalDiv=document.getElementById(G+"Div");j.name=y;j.className="KJEDropBox";j.setAttribute("aria-label",S);var k=aw.iDPDropHeight-aw.iDPInputTop;var ac=C+(aw.offsetWidth?aw.offsetWidth(J):J.offsetWidth)+5+d*2;var n=ac-d;var Y=w-ac;if(K){var U=K.style;K.className="KJEDropBoxDivModern";j.className="KJEDropBox KJEDropBoxModern";U.position=KJE.InputFieldPosition;U.display=KJE.InputFieldDisplay;U.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+aw.iDPInputTop-1+"px";U.height=k+"px";U.left=n+"px";U.width=Y+"px";ay.left=0+"px";ay.top=(aw.TwoLineEntry?aw.iDPRowHeight:0)+aw.iDPInputTop+"px"}else{ay.left=n+"px"}ay.width=Y+"px";ay.height=k+"px";j.indent=ac;if(Y"+(o.innerHTML?o.innerHTML:o)+"";var c=(c?c:KJE.DefinitionIconPosition);if(c==1){d.style.cssFloat="right";m.appendChild(d);d.aDefnLabelPointer=m}else{if(c==0){d.style.cssFloat="left";m.insertBefore(d,m.firstChild)}else{if(c==2){m.insertBefore(d,m)}else{if(c==4){m.insertBefore(d,m.firstChild)}else{if(c==3||c==5){KJE.insertAfter(d,m)}}}}}b.setAttribute("aria-label",KJE.MSG_DEFINE_PREFIX+i);d.addEventListener("focus",function(p){if(KJE.MenuWindowHide){KJE.MenuWindowHide(true)}if(KJE.DefnPointTimeOut>0&&KJE.DefnPoint!=b){KJE.DefnPointHide()}p.preventDefault()},false);if(KJE.bDescribedBy){d.setAttribute("aria-controls",b.id)}if(f){d.addEventListener("click",function(p){if(KJE.DefnPointTimeOut>0&&KJE.DefnPoint==b){KJE.DefnPointHide()}else{KJE.DefnPointShow(d,b,l,k,m,60000,j,c)}p.preventDefault()},false)}else{if(c<4){m.addEventListener("click",function(p){if(KJE.DefnPointTimeOut>0&&KJE.DefnPoint==b){KJE.DefnPointHide()}else{KJE.DefnPointShow(d,b,l,k,m,60000,j,c)}p.preventDefault()},false);m.addEventListener("keyup",function(p){if(p.key==="Escape"){if(KJE.DefnPointTimeOut>0&&KJE.DefnPoint==b){KJE.DefnPointHide()}else{KJE.DefnPointShow(d,b,l,k,m,60000,j,c)}p.preventDefault()}},false)}if(c>1){d.addEventListener("click",function(p){if(KJE.DefnPointTimeOut>0&&KJE.DefnPoint==b){KJE.DefnPointHide()}else{KJE.DefnPointShow(d,b,l,k,m,60000,j,c)}p.preventDefault()},false)}}if(KJE.bDefnShowonHover){m.addEventListener("mouseenter",function(p){if(KJE.DefnPointTimeOut>0&&KJE.DefnPoint==b){KJE.DefnPointHide()}else{KJE.DefnPointShow(d,b,l,k,m,60000,j,c)}p.preventDefault()},false);m.addEventListener("mouseleave",function(p){KJE.DefnPointHide();p.preventDefault()},false)}d.setAttribute(KJE.sExpand,"false");b.style.display="none";b.setAttribute("aria-hidden","true");m.parentNode.insertBefore(b,m.nextSibling);return b};KJE.InputItem.prototype.AddPlusMinusEvents=function(c,a){var b=this;c.addEventListener("click",function(d){b.doIncrement(true)},false);a.addEventListener("click",function(d){b.doIncrement(false)},false)};KJE.InputItem.prototype.AddNativeEvents=function(b){var a=this;b.addEventListener("input",function(c){if(a.bSetRange){a.setRangeValue(c)}if(KJE.MenuWindowHide){KJE.MenuWindowHide(true)}a.bSetRange=true},false);b.addEventListener("change",function(c){a.setRangeValue(c);if(KJE.MenuWindowHide){KJE.MenuWindowHide(true)}},false);a.setLowerFill(b)};KJE.InputItem.prototype.setCSSProperty=function(){this._line.style.setProperty("--webkitProgressPercent",Math.ceil(((this._line.value-this._line.min)/(this._line.max-this._line.min))*1000)/10+"%")};KJE.InputItem.prototype.handleUpAndLeave=function(){this.isRangeChanging=false};KJE.InputItem.prototype.handleDown=function(){this.isRangeChanging=true};KJE.InputItem.prototype.setLowerFill=function(b){if(!KJE.CHROME&&!KJE.Safari){return}var a=this;this.isRangeChanging=false;b.addEventListener("mousemove",function(){if(!a.isRangeChanging){return}a.setCSSProperty()});b.addEventListener("mousedown",function(){a.isRangeChanging=true});b.addEventListener("mouseup",function(){a.isRangeChanging=false});b.addEventListener("mouseleave",function(){a.isRangeChanging=false});b.addEventListener("click",function(){a.setCSSProperty()})};KJE.InputItem.prototype.AddInputEvents=function(b){var a=this;b.addEventListener("change",function(c){a.doBlur(c)},false);b.addEventListener("focus",function(c){a.doFocus(c)},false);b.addEventListener("keypress",function(c){if(c.keyCode==13){a.doBlur();return KJE.Dropper.stopBubble(c)}},false)};KJE.InputItem.prototype.doFocus=function(){var a=KJE;switch(this._inputType){case a.TypeRadio:case a.TypeRadios:case a.TypeCheckbox:case a.TypeDropBox:case a.TypeLabel:break;case a.TypeDate:case a.TypeString:case a.TypeNumber:this._inputField.select();if(this._inputField.value==this.getName()){this._inputField.value=""}}if(this.oDivDefn){if(KJE.DefnPointTimeOut>0&&KJE.DefnPoint!=this.oDivDefn){KJE.DefnPointHide()}}if(KJE.MenuWindowHide){KJE.MenuWindowHide(true)}};KJE.InputItem.prototype.doBlur=function(){var b=KJE;var c=this;switch(c._inputType){case b.TypeRadio:case b.TypeRadios:case b.TypeCheckbox:b.dataChanged();break;case b.TypeDropBox:c._InComplete=false;var a=c._inputField.selectedIndex;if(a==0&&c.bFirstNotValid){c._InComplete=true}c.setSliderPosition(c._inputField.selectedIndex);b.dataChanged();break;case b.TypeDate:c.setTypedDate();break;case b.TypeString:c.setTypedString();break;case b.TypeNumber:c.setTypedValue()}};KJE.InputItem.prototype.doClick=function(b,a){this.setMouseValue(b,a)};KJE.InputItem.prototype.doMouseUp=function(c,a){var b=this;b._mouseDown=false};KJE.InputItem.prototype.doMouseOut=function(g,f){var b=this;var c=window.event;if(b._inputField.disabled){return}if(b._mouseDown){if(!g){var g=c}var d=c?g.srcElement:g.target;if(d.bMouseoutignore){return}var a=(g.relatedTarget)?g.relatedTarget:g.toElement;while(a!=d&&a.nodeName!="BODY"){a=a.parentNode}if(d!=a){b.doMouseUp()}}};KJE.InputItem.prototype.doMouseDown=function(c,b){var a=this;if(a._inputField.disabled){return}a._mouseDown=true;if(c){a.setMouseValue(c,b)}};KJE.InputItem.prototype.doMouseMove=function(c,b){var a=this;if(a._mouseDown){a.setMouseValue(c,b)}};KJE.InputItem.prototype.setRangeValue=function(a){v=this._line.value;this.setChangeValue(v/100)};KJE.InputItem.prototype.setMouseValue=function(h,g){var d=this;var a=KJE.getMouseCoord(h,d._slider,g);if(a.x>=0){var c=d._posAdjust;var f=d._slider.offsetWidth;var b=(a.x-c)/(f-c);this.setChangeValue(b)}};KJE.InputItem.prototype.setChangeValue=function(b){var c=this;var e=c._minimum;var f=c._maximum;var d=c._oScale;if(d){b=KJE.s_Translate(b*100,d._Min,d._Mid1,d._Mid2,d._Max,d._stepMin,d._stepMid,d._stepMax)}else{var a=c._increment;b=b*c._range+e;b=(a==1?Math.round(b):(Math.round(b/a)*a))}c._InComplete=false;c.setValue((b>f?f:(bf?f:(b0){c=p.split("/");c[0]=Math.round(c[0]);c[1]=Math.round(c[1]);c[2]=Math.round(c[2])}else{c[0]=Math.round(p.substring(0,2));c[1]=Math.round(p.substring(2,4));c[2]=Math.round(p.substring(4))}if(c[2]<100){c[2]+=2000}o=KJE.getDate(c[2],c[0],c[1])}catch(m){a=true}if(a){l._sError=r.getKJEReplaced(r.MSG_INVALID_DATE,l._sLabel);l._value=null}else{l._value=o;k.value=r.dateFormat(o)}}else{if(i==r.TypeString){k.value=p}else{if(i==r.TypeDropBox){k.selectedIndex=Math.round(p);l.setSliderPosition(p)}else{if(i==r.TypeLabel){k.innerHTML=p}else{if(i==r.TypeCheckbox){k.checked=p}else{if(l.bValidate){if(p>l._maximum){l._sError=r.getKJEReplaced(this.MSG_EXCEEDS_LIMIT_OF_RANGE?this.MSG_EXCEEDS_LIMIT_OF_RANGE:r.MSG_EXCEEDS_LIMIT_OF_RANGE,l._sLabel,r.format[g]((r.FMT_PERCENT==g?l._maximum/100:l._maximum),l._decimals,l._iPadding));a=true}else{if(ph?h:(a","",b("(","",b(")","",a._inputField.value)))),c)};KJE.InputItem.prototype.setTypedDate=function(f){var a=KJE;var c=this;var e=c._inputField.value;var b=e;c._InComplete=false;if(e=="TODAY"){b=a.dateFormat(new Date())}else{if(e=="NEXT_MONTH"){var g=new Date();g.setMonth(g.getMonth()+1);b=a.dateFormat(g)}else{if(b.substr(10,1)=="T"){b=b.substr(5,2)+"/"+b.substr(8,2)+"/"+b.substr(0,4)}b=a.stripDate(b);if(b==""||b==c._sLabel){c._inputField.value=c.bNoLabel?c._sLabel:"";c._InComplete=true;c._bError=false;if(c.bIncompleteCheck){c.setIncomplete()}if(!f){a.dataChanged()}c._value=null;return}}}c.setValue(b,f)};KJE.InputItem.prototype.setGoodInput=function(){var a=this;if(a._inputType!=KJE.TypeNone){a._container.style.backgroundColor=a._container.backgroundColor;if(a.spanInputRequiredDesc&&KJE.POPUP_REQUIRED_MSG){if(a.spanInputRequiredDescMsg){a.spanInputRequiredDescMsg.className=KJE.REQUIRED_HOVER_CLASS}if(a.spanInputRangeDescInnerHtml){if(a.spanInputRangeDescInnerHtml!=a.spanInputRangeDesc.innerHTML){a.spanInputRangeDesc.innerHTML=a.spanInputRangeDescInnerHtml}}}if(a.spanInputRangeDesc){a.spanInputRangeDesc.className="KJEAccessibleInLine"}a._inputField.setAttribute("aria-invalid","false");if(a._inputField.sDescribedBy){KJE.AddDescribedBy(a._inputField)}else{a._inputField.removeAttribute("aria-describedby")}if(a._inputField.classes){a._inputField.className=a._inputField.classes}}};KJE.InputItem.prototype.setError=function(a){var b=this;b._container.style.backgroundColor=KJE.ErrorBackground;if(b.spanInputRangeDesc){b.spanInputRangeDesc.className="KJEGuiErrorPopup";if(a){b.spanInputRangeDesc.innerHTML=a}KJE.AddDescribedBy(b._inputField,b.spanInputRangeID+((b._inputField.sDescribedBy)?" "+b._inputField.sDescribedBy:""))}b._inputField.setAttribute("aria-invalid","true");b._inputField.className=b.preserveClasses(b._inputField)+" KJEInputErrorField"};KJE.InputItem.prototype.setIncomplete=function(){if(KJE.initializing>1||this.bValueBeenSet){var b=this;var a=KJE;b._container.style.backgroundColor=a.IncompleteBackground;if(b.spanInputRequiredDesc&&a.POPUP_REQUIRED_MSG){b.spanInputRequiredDescMsg=b.spanInputRequiredDesc.firstElementChild;if(b.spanInputRequiredDescMsg){b.spanInputRequiredDescMsg.className="KJEGuiErrorPopup"}}b._inputField.setAttribute("aria-invalid","true");b._inputField.className=b.preserveClasses(b._inputField)+" KJEInputErrorField"}};KJE.InputItem.prototype.preserveClasses=function(a){if(a.classes){}else{a.classes=a.className}return a.classes};KJE.InputItem.prototype.setTypedValue=function(e){var a=KJE;var c=this;c._InComplete=false;var d=c._inputField.value;if(d==""||d==c._sLabel){c.setSliderPosition(c._minimum);c._inputField.value=c.bNoLabel?c._sLabel:"";c._InComplete=true;c._bError=false;if(c.bIncompleteCheck){c.setIncomplete()}if(!e){a.dataChanged();this.bValueBeenSet=true}}else{var b=a.round(parseFloat(a.strip(d,c.bAbsoluteValue)),c._decimals);c.bSetRange=false;c.setValue(b,e)}};KJE.InputItem.prototype.getSecondValue=function(){var a=this;return a.getV(a._inputTypeAdditional,a._Additional)};KJE.InputItem.prototype.getValue=function(){var a=this;return a._value=a.getV(a._inputType,a._inputField,a._format)};KJE.InputItem.prototype.setText=function(a){var b=this;return b.setT(b._inputType,b._inputField,a)};KJE.InputItem.prototype.setSecondText=function(a){var b=this;return b.setT(b._inputTypeAdditional,b._Additional,a)};KJE.InputItem.prototype.getSecondFormatted=function(){var a=this;return a.getF(a._inputTypeAdditional,a._Additional)};KJE.InputItem.prototype.getFormatted=function(){var a=this;return(a._InComplete?KJE.sIncomplete:a.getF(a._inputType,a._inputField))};KJE.InputItem.prototype.getF=function(g,f){var b=KJE;var e="";var d=this;var c=d._value;var a=d._format;switch(g){case b.TypeRadio:case b.TypeRadios:case b.TypeCheckbox:e=f.value;break;case b.TypeDropBox:e=(f[f.selectedIndex].text);break;case b.TypeLabel:e=f.innerHTML;break;case b.TypeDate:e=b.dateFormat(c);break;case b.TypeString:e=f.value;break;case b.TypeNumber:e=b.format[a]((a==b.FMT_PERCENT?c/100:c),d._decimals,d._iPadding);break;case b.TypeNone:e=c}return e};KJE.InputItem.prototype.getV=function(f,e,b){var a=KJE;var c=0;var d=this;switch(f){case a.TypeRadio:case a.TypeRadios:case a.TypeCheckbox:c=e.checked;break;case a.TypeDropBox:c=e[e.selectedIndex].value;if(b!=a.FMT_STRING){c=Math.round(c)}break;case a.TypeLabel:c=e.innerHTML;break;case a.TypeDate:c=d._value;break;case a.TypeString:c=e.value;break;case a.TypeNumber:c=a.round(parseFloat(a.strip(e.value,d.bAbsoluteValue)),d._decimals);break;case a.TypeNone:c=d._value}return c};KJE.InputItem.prototype.setT=function(e,d,b){var a=KJE;var c=this;switch(e){case a.TypeRadio:case a.TypeRadios:case a.TypeCheckbox:break;case a.TypeDropBox:break;case a.TypeLabel:d.innerHTML=b;break;case a.TypeDate:d.value=b;c.setTypedDate(true);break;case a.TypeString:d.value=b;c.setTypedString(true);break;case a.TypeNumber:d.value=a.replace(" "," ",b);c.setTypedValue(true);break}};KJE.InputItem.prototype.shortDesc=function(){return this._sLabel+KJE.Colon+" "+this.getFormatted()};KJE.InputItem.prototype.containerWidth=function(){return this._container.offsetWidth-KJE.iInputContainerPad};KJE.InputItem.prototype.newWidth=function(){var m=KJE;var f=this;var e=f._inputField;var a=f._Additional;if(f._inputType==m.TypeNone){return}var k=this.containerWidth();var d=f.SliderX();var j=false;if(!f._sTrailingText&&!f.bSlider){switch(f._inputType){case (m.TypeRadio):case (m.TypeCheckbox):case (m.TypeNumber):case (m.TypeDate):case (m.TypeRadios):break;case (m.TypeString):var c=Math.max(k-e.indent-m.iDPInputPad*3,0);var b=Math.max(k-e.indent-m.iDPInputPad,0);if(cm.InputLength?m.InputLength:b)}j=true;break;case (m.TypeDropBox):var c=Math.max(k-e.indent-m.iDPInputPad,0);var b=Math.max(k-e.indent+m.iDPInputPad,0);if(cm.InputLength+(m.iDPInputPad*2)?m.InputLength+(m.iDPInputPad*2):b)}j=true;break;case (m.TypeLabel):var c=Math.max(k-e.indent+m.iDPInputPad,0);j=true}}if(!j){switch(f._inputType){case (m.TypeRadio):case (m.TypeCheckbox):break;case (m.TypeRadios):var c=Math.max(k-e.indent,0);if(cm.iDPRowHeight){l.style.top=(m.TwoLineEntry?m.iDPRowHeight:0)+"px";KJE.elementHeight(f._container.style,h+6+"px")}else{KJE.elementHeight(f._container.style,"");l.style.top=(m.TwoLineEntry?m.iDPRowHeight:0)+((m.iDPInputHeight/4)+m.iDPInputTop)+"px"}}};KJE.InputItem.prototype.SliderX=function(){var a=this.containerWidth();return a-KJE.iDPInputPad*2-(this.SliderWidthAdjust?this.SliderWidthAdjust:KJE.SliderWidthAdjust)};KJE.InputItem.prototype.bTooNarrowForSlider=function(){return(this.SliderX()-KJE.InputTotalLength+(KJE.TwoLineEntry?KJE.LabelLeftMargin+KJE.LabelLength:0)5?5:h.length)-1;for(var b=0;b<=c;b++){var f=document.createElement("div");f.className="KJEScale";f.unselectable="on";f.style.position="absolute";f.style.height=g+"px";f.style.textAlign=j[b==c?3:b];f.style.cursor="pointer";f.style.top=(0+a)+"px";if(c==4){switch(b){case 0:f.style.width="100%";f.style.left=0;break;case 1:f.style.width="55%";f.style.left=0;break;case 2:f.style.width="100%";break;case 3:f.style.width="75%";f.style.left=0;break;case 4:f.style.width="100%";f.style.right=0;break}}else{if(c<2){f.style.width="100%"}else{f.style.width=(c>2?66.66:100)+"%"}if(b>1){f.style.right=0}else{f.style.left=0}}f.innerHTML=h[b];d.appendChild(f)}}return d};KJE.InputItem.prototype.disable=function(a,b){var d=this;var e=d._inputType;var c=d._label2;var f=d._label;if(e==KJE.TypeNone){return false}d.bValidate=false;d._container.style.backgroundColor=d._container.backgroundColor;d._InComplete=false;if(e==KJE.TypeCheckbox){if(c){c.className="KJETrailingLabel KJETrailingLabelDisable"}}if(f&&!a){f.className=d.className+" KJETrailingLabelDisable"}if(d.bSlider){if(d._slider.labels){d._slider.labels.style.display="none"}d._slider.style.display="none"}if(d._inputField&&b){d._inputField.style.display="none"}if(d._inputField){d.setInputItemRequired(false,true);if(d.spanInputRangeDesc){d.spanInputRangeDesc.style.display="none"}}return d._inputField.disabled=true};KJE.InputItem.prototype.enable=function(){var a=KJE;var c=this;var d=c._inputType;var b=c._label2;var e=c._label;if(d==a.TypeNone){return false}c.bValidate=true;if(d==a.TypeCheckbox){if(b){b.className="KJETrailingLabel"}}if(e){e.className=this.className}if(c.bSlider){c.showSlider(c._slider)}if(c._inputField){c._inputField.style.display=KJE.InputFieldDisplay;c.setInputItemRequired(true,true);if(c.spanInputRangeDesc){c.spanInputRangeDesc.style.display="inline"}}if(d==a.TypeDate){c.setTypedDate(true)}if(d==a.TypeNumber){c.setTypedValue(true)}return c._inputField.disabled=false};KJE.InputItem.prototype.getName=function(){return this._sLabel};KJE.shortDesc=function(){var b="";for(var a=0;a**ICON**
**TITLE_TEXT**
";KJE.DropperDefined=function(a){return document.getElementById("KJE-P-"+a)};KJE.DivDefined=function(a){return document.getElementById("KJE-D-"+a)};KJE.Dropper=function(f,c,p,o,h,g){var j=this;var m=j._idDropper=document.getElementById("KJE-P-"+f);var k=j._idDrop=document.getElementById("KJE-D-"+f);var b=j._idDroppee=document.getElementById("KJE-E-"+f);m.className="KJEDropper";k.className="KJEDrop";b.className="KJEDroppee";j.getOpen=(p?p:false);j.getClosed=(o?o:false);j._bShow=true;j.InCalculator=(h?false:true);j._sInnerHTML=m.innerHTML;j._sName=f;if(!KJE.DropperHide){g=KJE.parameters.get("HIDE_"+f,(g?true:false));if(g){m.style.display="none"}var j=this;var q=KJE;q.iDropperCount+=1;var a="DROPPER_OPEN"+q.number(q.iDropperCount);c=(q.parameters.get(a,c)?true:false)&&!g;m.setAttribute("role","button");m.setAttribute("aria-controls","KJE-E-"+f);q._idDroppeePadding=0;if(b){if(!q._idDroppeePadding){try{q._idDroppeePadding=parseInt(window.getComputedStyle(b,null).getPropertyValue("padding-top").replace("px",""))}catch(l){}}}m.tabIndex="0";b.style.display=KJE.DropeeDisplay;b.style.width=KJE.DropeeWidth;b.style.transition=q.DropeeTransition;j._iHeight=b.scrollHeight;if(!j._iHeight||q.iDPDroppeeForceSize){j._iHeight=0;var n=b.getElementsByTagName("div");for(var d=0;d=q.iDropperCount?q.DropperColors[q.iDropperCount-1]:false):false);j.AddEvents();j.show(c?true:false);if(!c){if(!(KJE.InputFieldPosition=="static")){KJE.elementHeight(b.style,"auto")}b.style.display="none";b.style.visibility="hidden";m.setAttribute(q.sExpand,"false")}else{b.style.display=KJE.DropeeDisplay;KJE.elementHeight(b.style,"auto");m.setAttribute(q.sExpand,"true")}}};KJE.Dropper.prototype.AddEvents=function(){var a=this;var b=a._idDrop;b.addEventListener("click",function(){a.toggle(a)},false);b.addEventListener("keypress",function(c){if(c.keyCode==32||c.keyCode==13){a.toggle(a);return KJE.Dropper.stopBubble(c)}},false);b.addEventListener("keydown",function(c){if(c.keyCode==32||c.keyCode==13){a.toggle(a);return KJE.Dropper.stopBubble(c)}},false);b.addEventListener("focus",function(c){if(KJE.MenuWindowHide){KJE.MenuWindowHide(true)}return KJE.Dropper.stopBubble(c)},false)};KJE.Dropper.prototype.setHidden=function(b){var a=this;a._idDrop.style.display="none";a._idDroppee.style.display="none"};KJE.Dropper.prototype.setShown=function(b){var a=this;a._idDrop.style.display="block";if(a._bShow){a._idDroppee.style.display=KJE.DropeeDisplay}};KJE.Dropper.prototype.setBackground=function(b){var a=this;if(a._idDrop){a._idDrop.style.backgroundColor=b}a._idDroppee.style.backgroundColor=b};KJE.Dropper.prototype.setText=function(b){var c=this;var d=c.getOpen;var a=c.getClosed;var f=c._bShow;if(b){}else{if(f&&d){if("function"==typeof d){b=d()}else{b=d}}else{if(!f&&a){if("function"==typeof a){b=a()}else{b=a}}else{b=c._sInnerHTML}}}var e=b;e=KJE.replace("
"," ",KJE.replace("
"," ",e)).trim();e=KJE.replace("
"," ",e);e=KJE.replace("
"," ",e);e=KJE.replace("|"," ",e);c._idDropper.setAttribute("aria-label",e);c._idDropper.innerHTML=KJE.setToggleTitleText(b,c,KJE)};KJE.Dropper.prototype.show=function(a){var b=this;b._bShow=a;b.setText()};KJE.Dropper.prototype.toggle=function(){if(KJE.inCommandTask(true)){return}var a=this;var b=a._idDroppee;b.style.overflow="hidden";if(a._bShow){a.doClose(500)}else{a.doOpen(500)}};KJE.Dropper.prototype.doClose=function(c){if(KJE.MenuWindowHide){KJE.MenuWindowHide(true)}var a=this;if(a._bShow){KJE.collapseSection(a._idDroppee,a._idDropper);a.show(false);var b=a._idDroppee}};KJE.Dropper.prototype.doOpen=function(d){if(KJE.MenuWindowHide){KJE.MenuWindowHide(true)}var b=this;if(!b._bShow){KJE.expandSection(b._idDroppee,b._idDropper);b.show(true);var c=b._idDroppee;c.style.visibility="visible";for(var a in KJE.inputs.items){KJE.inputs.items[a].newWidth()}}};KJE.Dropper.stopBubble=function(a){a.cancelBubble=true;a.returnValue=false;if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}return false};KJE.Dropper.prototype.open=function(a,b){return};KJE.addDiv=function(c,b,d){var a=document.getElementById("KJE-D-"+c);if(a){a.className=("KJEInputDiv"+(d?" "+d:""));if(b){a.style.backgroundColor=b}}return a};KJE.addDropper=function(b,a){if(a){b.setBackground(a)}KJE.droppers.set(b._sName,b);return b};KJE.setToggleTitleText=function(e,h,d,g){if(!e){e=""}var f=e.indexOf("<");var k=e.indexOf("|");if(f>0&&k>0){f=(f>k?k:f)}else{f=(f0?e.substring(0,f):e).trim();if(i.charAt(i.length-1)=="."){i=i.slice(0,-1)}if(i.charAt(i.length-1)!=KJE.Colon.trim()){i+=KJE.Colon}var l="";var b="";var n="";if(h){l=h._bShow?d.sToggleAltTextOpen:d.sToggleAltTextClose;b=h._bShow?d.sToggleClose:d.sToggleOpen;n=h._bShow?d.sExpanded:d.sCollapse}var m=KJE.sToggleTitle;var c="";var j=e.indexOf("|");var a=(g||!h?"":d.sToggleIcon);if(g||!h){b="";l=""}if(j>-1){m=KJE.sToggleTitle2;c=e.substring(j+1);e=e.substring(0,j)}else{if(!h||g){m=KJE.sToggleTitleH2Only}}if(h!=null){if(h.sExtraClass){m=KJE.replace("**EXTRA_CLASS**",h.sExtraClass,m)}}return m.replace("**IMG_TEXT**",l).replace("**SUMMARY_TEXT**",i).replace("**TITLE_TEXT**",e).replace("**TITLE_TEXT**",e).replace("**TITLE_TEXT2**",c).replace("**ICON**",b).replace("**IMG**",a).replace("**TITLE_CLASS**",d.sToggleTitleClass).replace("**TITLE_CLASS**",d.sToggleTitleClass).replace("**EXPANDED**",n)};KJE.setDropBox=function(c,b){b=b+"";for(var a=0;a";for(var c=0;c"+(c>=e?d[c]:h[c])}k+="";if(KJE.InputModern){k="
"+k+"
"}return k};KJE.getTermChoice=function(l,k,e,h,b,m,g,d,o,f){var q=new Array();var p=new Array();if(f){}else{f=KJE.Default.MortgageTermIncrement}m=(m?m:"");g=(g?g:false);o=(o?o:1);var a=0;var j=KJE.parameters.get("TERM_SHOW_ADDITIONAL",7);for(var c=o;c<=h;c++){if((e&&c<=b)||c%f==0||c==j){if((j==0&&(c==5||c==25||c==35))==false){q[a]=c+" "+(c==1?KJE.MSG_YEAR_LBL:KJE.MSG_YEARS_LBL)+(c>b?m:"");p[a]=c;a++}}}if(d){return KJE.getDropBox(l,k,p,q,g)}else{return{d:q,v:p}}};KJE.getMortgageTermChoice=function(b,c,d){var a=KJE;return a.getTermChoice(b,c,a.parameters.get("MORTGAGE_TERM_MAX",a.Default.MortgageShowAll),a.parameters.get("MORTGAGE_TERM_MAX",a.Default.MortgageTermMax),a.parameters.get("MORTGAGE_SHOW_MAX",a.Default.MortgageShowAllMax),"",false,d,a.parameters.get("MORTGAGE_TERM_MIN",a.Default.MortgageTermMin))};KJE.getMortgageTermDrop=function(a,b){return KJE.getMortgageTermChoice(a,b,true)};KJE.getMortgageTermList=function(){return KJE.getMortgageTermChoice("",0,false)};KJE.insertAfter=function(b,a){a.parentNode.insertBefore(b,a.nextSibling)};KJE.hasClass=function(b,a){return(" "+b.className+" ").indexOf(" "+a+" ")>-1};KJE.isInDroppee=function(b){var a=b.parentNode;if(a){if(KJE.hasClass(a,"KJEDroppee")){}else{a=a.parentNode;if(a){if(KJE.hasClass(a,"KJEDroppee")){return a}}}}return a};KJE.iGraphFixedWidth=0;KJE.gScaleLabel=["","Thousands of ","Millions of ","Billions of "];KJE.gScaleLabelMax=[0,100000,100000000,100000000000];KJE.gScaleLabelFactor=[1,1000,1000000,1000000000];KJE.gFont=[];KJE.gFontStyle=[];KJE.gFontSize=[];KJE.gFontDefault=["Arial","Arial","Arial","Arial","Arial","Arial"];KJE.gFontStyleDefault=["bold","bold","","","bold",""];KJE.gFontSizeDefault=[13,11,11,11,11,9];KJE.g=new Object();KJE.g.sToggleAltTextClose="";KJE.g.sToggleAltTextOpen="";KJE.g.sNewGraphPleaseComplete="please complete inputs to view graph";KJE.g.sToggleTitleClass="KJEGraphTitle";KJE.g.sToggleIcon="KJEGraphIcon";KJE.g.sToggleOpen="";KJE.g.sToggleClose="";KJE.g.sExpanded="";KJE.g.sCollapse="";KJE.g.sExpand="aria-expanded";KJE.gHeight=350;KJE.gHeightReport=350;KJE.gWidthMax=900;KJE.gWidthReport=720;KJE.gLegendMin=550;KJE.gLegendFontMin=400;KJE.gColorBackground="#FFFFFF";KJE.gColorForeground="#333333";KJE.gColorGrid="#AAAAAA";KJE.gColorGridBackground1="#f7f7f7";KJE.gColorGridBackground2="#f7f7f7";KJE.gColorAxisLine="#333333";KJE.gColorText="#000000";KJE.gColorList=["#0000D4","#be0844","#0080FF","#FFF200","#5f007f","#F15A22","#B72467","#6DC8BF","#FF0000","#ff00ff","#ffff00","#00ffff","#7f007f","#7f0000","#007f7f","#0000ff","#00c8ff","#60ffff","#bfffbf","#ffff90","#a0c8ef"];KJE.gPleaseComplete="";KJE.gWidthAdjust=0;KJE.gPIE=0;KJE.gCOLUMN=1;KJE.gCATEGORIES=2;KJE.gSTACKED=3;KJE.gLINE=4;KJE.gGraphDescription=["Pie Chart","Column Graph","Column Graph","Stacked Column Graph","Line Graph"];KJE.gGetFontHeight=function(a){return Math.ceil(a.measureText("m").width+2)};KJE.gDarker=function(d,h){if(d[0]=="#"){d=d.slice(1)}var c=parseInt(d,16);var f=(c>>16)*h;if(f>255){f=255}else{if(f<0){f=0}}var a=((c>>8)&255)*h;if(a>255){a=255}else{if(a<0){a=0}}var e=(c&255)*h;if(e>255){e=255}else{if(e<0){e=0}}return"rgb("+Math.floor(f)+","+Math.floor(a)+","+Math.floor(e)+")"};KJE.MSG_ADA_GRAPH_TEXT="Please use the calculator's report to see detailed calculation results in tabular form.";KJE.MSG_ADA_REPORTGRAPH_TEXT="Results shown are available in tabular form on tables that follow this image.";KJE.MSG_ADA_GRAPH_SPAN="**FIG_GRAPHTITLE** **FIG_GRAPHTYPE**: **FIG_ADA_GRAPH_TEXT**";KJE.MSG_ADA_GRAPH_ARIA_LABEL="**FIG_GRAPHTYPE**: **FIG_GRAPHTITLE**: **FIG_ADA_GRAPH_TEXT**";KJE.MSG_GRAPH_CANVAS="
";KJE.MSG_ADA_GRAPH="
**MSG_ADA_GRAPH_SPAN**
**GRAPH**
";KJE.getGraphCode=function(b){var a=KJE;var c=a.replace(a.MSG_GRAPH,a.MSG_GRAPH_CANVAS,a.MSG_ADA_GRAPH);return a.replace("**X**",b+"",c)};KJE.gTitle=new Object();KJE.gGraphLine=new Object();KJE.gAxis=new Object();KJE.gGraphColumn=new Object();KJE.gGraphPie=new Object();KJE.gTitle.HORIZONTAL=0;KJE.gTitle.VERTICAL=1;KJE.gLegend=new Object();KJE.gLegend.LEFT=0;KJE.gLegend.RIGHT=1;KJE.gLegend.TOP=3;KJE.gLegend.BOTTOM=4;KJE.gLegend.TOP_LEFT=5;KJE.gLegend.TOP_RIGHT=6;KJE.gLegend.BOTTOM_LEFT=7;KJE.gLegend.BOTTOM_RIGHT=8;KJE.gLegend.GRID_TOP_RIGHT=9;KJE.gLegend.GRID_TOP_LEFT=10;KJE.gLegend.GRID_BOTTOM_RIGHT=11;KJE.gLegend.GRID_BOTTOM_LEFT=12;KJE.gLegend.GRID_TOP=13;KJE.gLegend.GRID_BOTTOM=14;KJE.gLegend.GRID_RIGHT=15;KJE.gLegend.GRID_LEFT=16;KJE.gLegend.TOP_GRID_ALIGN=17;KJE.gLegend.BANDED_LEGEND=0;KJE.gLegend.DATA_SERIES_LEGEND=1;KJE.gLegend.CATEGORY_LEGEND=2;KJE.gLegend.ROUND_LEGEND=0;KJE.gLegend.SQUARE_LEGEND=1;KJE.gLegend._sSHADOW_COLOR="";KJE.gTITLE_FONT=0;KJE.gBOLD_FONT=1;KJE.gPLAIN_FONT=2;KJE.gLEGEND_FONT=3;KJE.gLEGEND_FONT_BOLD=4;KJE.gLEGEND_FONT_TINY=5;KJE.gSCALE=2;KJE.ggetFont=function(b,c){var a=KJE;var d=a.gFontSize.length<=b?a.gFontSizeDefault[b]:a.gFontSize[b];var e=a.gFont.length<=b?a.gFontDefault[b]:a.gFont[b];var f=a.gFontStyle.length<=b?a.gFontStyleDefault[b]:a.gFontStyle[b];if(a.gFontStyle.length<=b){}else{}return(f+" "+Math.floor(a.gSCALE*d)+"pt "+e.trim())};KJE.gBORDER_WIDTH=10*KJE.gSCALE;KJE.gLegend._iSIDE_BORDER_WIDTH=14*KJE.gSCALE;KJE.gLegend._iTOPBOTTOM_BORDER_WIDTH=3*KJE.gSCALE;KJE.gLegend._iBOX_SIDE_LENGTH=14*KJE.gSCALE;KJE.gLegend._iCIR_SIDE_LENGTH=10*KJE.gSCALE;KJE.gLegend._iBOX_TO_LABEL_SPACE=4*KJE.gSCALE;KJE.gLegend._sSHADOW_BLUR_X=0;KJE.gLegend._sSHADOW_BLUR_Y=0;KJE.gLegend._LINE_WIDTH=KJE.gSCALE;KJE.gLegend._LINE_SPACE=12*KJE.gSCALE;KJE.gLegend._PAD=KJE.gSCALE*4;KJE.gGraphPie._LINE_WIDTH=KJE.gSCALE*4;KJE.gGraphPie._FLAT=true;KJE.gGraphPie._DROP_SHADOW=false;KJE.gGraphLine._CLICKABLE=7*KJE.gSCALE;KJE.gGraphLine._sSHADOW_BLUR=0;KJE.gGraphLine._LINE_WIDTH=3*KJE.gSCALE;KJE.gGraphLine._sSHADOW_BLUR_X=0;KJE.gGraphLine._sSHADOW_BLUR_Y=0;KJE.gGraphColumn._LINE_WIDTH=KJE.gSCALE*2;KJE.giGridLineWidth=KJE.gSCALE;KJE.gAxis.TICK_LENGTH=3*KJE.gSCALE;KJE.gAxis.LABEL_SPACE_LENGTH=5*KJE.gSCALE;KJE.gAxis.LINE_WIDTH=KJE.gSCALE*1;KJE.gAxis.LEFT=0;KJE.gAxis.RIGHT=1;KJE.gAxis.TOP=3;KJE.gAxis.BOTTOM=4;KJE.gGraphColumn.LINE_NONE=0;KJE.gGraphColumn.LINE_ON_FIRST_ONLY=2;KJE.gGraphColumn.LINE_ON_ALL=3;KJE.gGraphColumn._sSHADOW_COLOR="";KJE.gGraphColumn._sSHADOW_BLUR=0;KJE.gGraphColumn._sSHADOW_BLUR_X=0;KJE.gGraphColumn._sSHADOW_BLUR_Y=0;KJE.gGraphPie._LINE_JOIN="round";KJE.gGraphPie._LINE_COLOR="#000000";KJE.gGraphLine.AREA_NONE=0;KJE.gGraphLine.AREA_ALL=1;KJE.gGraphLine.AREA_FIRST_ONLY=2;KJE.gGraphLine.AREA_SECOND_ONLY=3;KJE.gGraphLine.AREA_BANDED=4;KJE.gGraphLine._sSHADOW_COLOR="";KJE.sgvStr=function(a){if(a==null){return null}return a.replace(/%%/g,'"').replace(/@@/g,"|").replace(/\^\^/g,",").replace(/!!/,"~")};KJE.spvStr=function(a){if(a==null){return null}if(a.replace){return a.replace(/"/g,"%%").replace(/\|/g,"@@").replace(/,/g,"^^").replace(/~/g,"!!")}else{return a}};KJE.spvColor=function(a){if(!a){return"#000000"}return a};KJE.sgvColor=function(a){if(!a){return"#000000"}return a};KJE.sgv=function(b,a){if(b==null){return a}else{if(b=="null"){return a}else{if(b==" "){return a}else{if(typeof(a)=="string"){return KJE.sgvStr(b)}else{if(typeof(a)=="boolean"){if(b==""){return a}return b.trim()=="true"}else{if(typeof(a)=="number"){return parseFloat(b)}}}}}}};KJE.sgvNumList=function(d){if(d==null){return null}else{if(d=="null"){return null}else{if(d.trim()==""){return null}else{var b=d.split(",");var a=KJE.FloatArray(b.length);for(var c=0;cc||a==0){a=c}b--}return a};KJE.gCanvas.prototype.getMinValue=function(){if(this._vDataSeries==null){return 0}var a=this._vDataSeries[0].getMinValue(this._iLimit);var b=a;for(var c=1;cd){d=f}}return d}};KJE.gCanvas.prototype.add=function(c){if(c==null){}else{if(typeof c=="string"){if(c.trim()==""){}else{var a=c.split("|");for(var b=0;bKJE.gWidthMax&&!this.InCalculator){a=KJE.gWidthMax}a-=KJE.gWidthAdjust;this.wCanvas.style.width=a+"px";this.wCanvas.width=a*KJE.gSCALE;this.iWidth=a;if(c){this.paint()}};KJE.gCanvas.prototype.setHeight=function(c){if(!this.InCalculator){this.setCanvasHeight(c,KJE.gHeightReport)}else{if(KJE.bSidebySideViewing){var b=0;var a=0;for(var d=0;d1){iHeight=Math.round(iHeight/b)}if(KJE.gHeight>iHeight){iHeight=KJE.gHeight}for(var d=0;d0?b.substring(0,b.indexOf("<")):b).trim();if(c.substring(c.length-1,c.length)==="."){c=c.substring(0,c.length-1)}a._titleGraphFigure.innerHTML=a.titleGraphFigure=c;a.setAriaRole(c,true)}var d=a.wTitle.innerText;d=KJE.replace("
"," ",KJE.replace("
"," ",d)).trim();d=KJE.replace("
"," ",d);d=KJE.replace(" "," ",d);a.wTitle.setAttribute("aria-label",d==""?"Empty Graph - required inputs not complete":d)}};KJE.gCanvas.prototype.setTitleTemplate=function(){var b=this.TT;for(var a=0;ag){if(a[g].length>b){e=a[g][b]}}}return e};KJE.gGraphDataSeries=function(i,p,k,l,g,j,d){var h=this;h._iDecimals=(d?d:2);var e=(i instanceof Array);if(!e&&KJE.TypedArray){e=(i instanceof Float64Array)}if(e){h._fValues=i;h._sSeriesTitle=p;h._cColor=k;h._sSeriesTitleBold=(!l?"":l);h._sSeriesPop=(!g?p:g);h._bNoPopDetails=(j?true:false)}else{var m=i.split("~");var o=m.length;var a=KJE.sgv;for(var b=0;b");if(b=0&&a>0){c=c.substr(0,b)+c.substr(a+1,c.length-1)}else{break}}return c};KJE.gGraphDataSeries.prototype.getProperty=function(){var a=KJE;var b=this._iDecimals+(this.gCanvasPointer._showLabelFactor?0:2);return this._cColor+"~"+a.spvStr(this._sSeriesTitle)+"~"+a.spvStr(this._sSeriesTitleBold)+"~"+a.spvFloatList(this._fValues,b)+"~"+a.spvStr(this._sSeriesPop)+"~"+this._bNoPopDetails+"~"+KJE.number(this._iDecimals)};KJE.gGraphDataSeries.prototype.getValueCount=function(){if(this._fValues==null){return 0}return this._fValues.length};KJE.gGraphDataSeries.prototype.getMinValue=function(c){var a=this._fValues;if(a==null){return 0}var b=a[0];var d=a.length;if(d>c&&c!=0){d=c}for(var e=1;ea[e]){b=a[e]}}return b};KJE.gGraphDataSeries.prototype.getMaxValue=function(c){var a=this._fValues;if(a==null){return 0}var d=a.length;if(d>c&&c!=0){d=c}var b=a[0];for(var e=d-1;e>0;e--){if(b0){h=b}if(p>0){f=p}n=l;break;case g.RIGHT:if(b>0){h=b}if(p>0){f=p}j+=n-l;n=l;break;case g.TOP_LEFT:f=q;n=l;break;case g.BOTTOM_LEFT:h+=f-q;f=q;n=l;break;case g.TOP_RIGHT:j+=n-l;f=q;n=l;break;case g.BOTTOM_RIGHT:h+=f-q;j+=n-l;f=q;n=l;break;case g.GRID_TOP_RIGHT:j=c-a+r-l;h=b+a;n=l;f=q;break;case g.GRID_TOP_LEFT:j=c+a;h=b+a;n=l;f=q;break;case g.GRID_BOTTOM_RIGHT:j=c-a+r-l;h=b-a+p-q;n=l;f=q;break;case g.GRID_BOTTOM_LEFT:j=c+a;h=b-a+p-q;n=l;f=q;break;case g.GRID_TOP:j=c;h=b+e;n=r;f=q;break;case g.GRID_BOTTOM:j=c;h=b-e+p-q;n=r;f=q;break;case g.GRID_LEFT:j=c+e;h=b;n=l;f=p;break;case g.GRID_RIGHT:j=c-e+r-l;h=b;n=l;f=p;break}if(this._bShow){var k=j+(n/2)-(l/2);var i=h+(f/2)-(q/2);if(this._border){m.fillStyle=this._cBGColor;m.fillRect(k-0.5,i-0.5,l,q);m.strokeStyle=this._gGraph._cTextColor;m.strokeRect(k-0.5,i-0.5,l,q)}if(this._legendType<=g.DATA_SERIES_LEGEND){this.drawDataSeriesLegend(m,k,i);return}this.drawCategoryLegend(m,k,i)}};KJE.gGraphLegend.prototype.drawDataSeriesLegend=function(i,e,d){var f=this._gGraph._vDataSeries.length;var h=new Array(f);var a=new Array(f);var g=new Array(f);var c=this._gGraph._vDataSeries;for(var b=0;b0){oThis._iMaxLegendLength=oThis._iLegendWidth}else{k.font=d;var f=0;var j="";var h=oThis._gGraph._vDataSeries.length;var l="";if(oThis._legendType!=KJE.gLegend.CATEGORY_LEGEND){for(var g=0;goThis._iMaxLegendLength){oThis._iMaxLegendLength=f}}}else{if(oThis._gGraph._sGraphCategories!=null){var h=oThis._gGraph._sGraphCategories.length;var a=(oThis._gGraph._sGraphCategoriesBold==null?0:oThis._gGraph._sGraphCategoriesBold.length);for(var e=0;eoThis._iMaxLegendLength){oThis._iMaxLegendLength=f}}}}}oThis._iFontHeight=KJE.gGetFontHeight(k)}};KJE.gValueAxis=function(a){this._gGraph=a;this._font=a.FONT_PLAIN;this._bShow=true;this._cColor="#FFFFFF";this._cLine="#000000";this._cTextColor="#000000";this._iFormat=KJE.FMT_DOLLARS;this._iXOffset=0;this._iYOffset=0;this._iLabelCount=0;this._iMaxLabelLength=0;this._iMaxLength=0;this._iWidth=0;this._iHeight=0;this._iPixelsPerIncrement=0;this._iDataLength=0;this._fValuePerPixel=0;this._iFontHeight=0;this._iFormat=KJE.FMT_DOLLARS;this._bAutoMaximum=true;this._bAutoMinimum=false;this._axisMinimum=0;this._axisMaximum=100;this._sUnits="";this._iUnitFactor=1;this._fAbsoluteMinValue=0;this._fAbsoluteMaxValue=0;this._fRange=0;this._fMinValue=0;this._fMaxValue=0;this._iIncrement=0;this._iFactor=0;this._fIncrement=0;this._iZeroIntersects=0};KJE.gValueAxis.prototype.setProperty=function(c){var b=c.split("|");var a=KJE.sgv;for(var d=0;d100?(b-(a*this._iFactor)):Math.round((b*this._iFactor)-a)/this._iFactor):(b-1))};KJE.gValueAxis.prototype.paint=function(i,h,g){if(this._bShow){var f=KJE.gAxis;i.font=this._font;var a=(this._iWidth-f.TICK_LENGTH-f.LINE_WIDTH);var c=(f.LABEL_SPACE_LENGTH+f.TICK_LENGTH);var e=0;var d=this.getStartingPlotValue();for(var b=0;b<=this._iLabelCount;b++){i.strokeStyle=this._cTextColor;if(this._iPixelsPerIncrement-0.00001&&this._fAbsoluteMinValue<0.00001&&this._fAbsoluteMinValue>-0.00001){this._fAbsoluteMaxValue=25}else{if(this._fAbsoluteMaxValue<1&&this._fAbsoluteMaxValue>-1&&this._fAbsoluteMinValue<1&&this._fAbsoluteMinValue>-1&&this._iFormat==KJE.FMT_DOLLARS){this._fAbsoluteMaxValue=1}}var d=this._fAbsoluteMaxValue-this._fAbsoluteMinValue;this._iFactor=1;this._iIncrement=1;this._fIncrement=1;if(this._gGraph._sValueLabels!=null){}else{var g=d;if(g>100){while(g>200){this._iFactor*=10;g=(d/this._iFactor)}}else{while(g<=20){this._iFactor*=10;g=(d*this._iFactor)}}this._iIncrement=(g>100?20:(g>50?10:5));this._fIncrement=(d>100?(this._iIncrement*this._iFactor):this._iIncrement/this._iFactor)}if(this._fAbsoluteMinValue==0){this._fMinValue=0}else{if((this._fAbsoluteMinValue%this._fIncrement)==0){this._fMinValue=this._fAbsoluteMinValue}else{this._fMinValue=(Math.floor(this._fAbsoluteMinValue/this._fIncrement))*this._fIncrement}}if(this._fAbsoluteMaxValue==0){this._fMaxValue=0}else{if((this._fAbsoluteMaxValue%this._fIncrement)==0){this._fMaxValue=this._fAbsoluteMaxValue}else{this._fMaxValue=Math.ceil(this._fAbsoluteMaxValue/this._fIncrement);this._fMaxValue=Math.round(this._iFactor*this._fMaxValue*this._fIncrement)/this._iFactor}}this._fRange=this._fMaxValue-this._fMinValue;if(this._fRange==0){this.fRange=this._fIncrement}if(this._gGraph._sValueLabels==null){this._iLabelCount=Math.round(this._fRange/this._fIncrement)}else{this._iLabelCount=this._gGraph._sValueLabels.length-1}this.setGraphUnits(this._fMaxValue,this._fMinValue);if(this._bShow){var a=this.getStartingPlotValue();var e=0;var c=0;var f=this._iLabelCount;for(var b=0;b<=f;b++){c=j.measureText(KJE.FTR(this.getLabel(a))).width;e=(c>e?c:e);a=this.getNextIncrement(a)}var h=KJE.gAxis;this._iMaxLabelLength=e;this._iFontHeight=KJE.gGetFontHeight(j);this._iWidth=this._iMaxLabelLength+h.LABEL_SPACE_LENGTH+h.TICK_LENGTH+h.LINE_WIDTH}};KJE.gValueAxis.prototype.getStartingPlotValue=function(){return(this._gGraph._sValueLabels==null?this._fMaxValue:this._gGraph._sValueLabels.length-1)};KJE.gValueAxis.prototype.setVisible=function(a){this._bShow=a};KJE.gValueAxis.prototype.getDataLength=function(){return this._iDataLength};KJE.gValueAxis.prototype.setGraphUnits=function(d,g){var a=KJE;g=g||0;var c=a.gScaleLabelMax;var e=a.gScaleLabelFactor;var f=c.length;for(var b=f-1;b>=0;b--){if(d>=c[b]||g<=(-1)*c[b]){this._sUnits=a.gScaleLabel[b];this._iUnitFactor=e[b];break}}return this._iUnitFactor};KJE.gCategoryAxis=function(a){this._gGraph=a;this._bShow=true;this._cColor="#FFFFFF";this._cLine="#000000";this._cTextColor="#000000";this._fFont="11pt Helvetica";this._iXOffset=0;this._iYOffset=0;this._iLabelCount=0;this._iMaxLabelLength=0;this._iWidth=0;this._iHeight=0;this._iPixelsPerIncrement=0;this._iDataLength=0;this._iFontHeight=0;this._iFontOffset=0;this._fSpacingPercent=0.25;this._fDataGapPercent=0;this._bNoOffset=false;this._sCategories=new Array();this._iCategoryCount;this._iBarCount;this._iBarWidth;this._iSpaceWidth;this._iGapWidth;this._iBarsPerCategory;this._iAxisSegmentLength;this._bVertical=false};KJE.gCategoryAxis.prototype.setProperty=function(c){var b=c.split("|");var a=KJE.sgv;for(var d=0;dp._iAxisSegmentLength&&f>2){d=Math.ceil(f/(p._iDataLength/o))}m.strokeStyle=p._cLine;m.beginPath();for(var g=0;gthis._iAxisSegmentLength&&this._iMaxLabelLength>k.measureText("9999").width&&this._iMaxLabelLengtha?c:a)}return a};KJE.gCategoryAxis.prototype.setVisible=function(a){this._bShow=a};KJE.gGrid=function(a){this._gGraph=a;this._showYGridLines=KJE.parameters.get("YGridLines",true);this._showXGridLines=KJE.parameters.get("XGridLines",false);this._lineWidth=KJE.giGridLineWidth};KJE.gGrid.prototype.setProperty=function(c){var b=c.split("|");var a=KJE.sgv;for(var d=0;d0){H=Math.round((I-q)*u);k=j+f-H}else{H=Math.round(I*u);k=j+b-H}}t.beginPath();if(L._legend._legendType==KJE.gLegend.CATEGORY_LEGEND){t.fillStyle=L.getColor(r+1)}else{t.fillStyle=L._vDataSeries[K]._cColor}t.strokeStyle=t.fillStyle;t.fillRect(D,k,c,H);t.shadowOffsetY="0";if(c>KJE.gGraphColumn._LINE_WIDTH*4){t.strokeStyle=KJE.gDarker(t.fillStyle,0.6);t.lineWidth=KJE.gGraphColumn._LINE_WIDTH;t.strokeRect(D,k,c,H)}if(L._iArea==KJE.gGraphColumn.LINE_ON_ALL||(L._iArea==KJE.gGraphColumn.LINE_ON_FIRST_ONLY&&K==0)){t.lineWidth=KJE.gGraphLine._LINE_WIDTH;t.shadowOffsetY=KJE.gGraphLine._sSHADOW_BLUR_Y;if(w!=-9191){t.beginPath();t.moveTo(E+c/2,w);t.lineTo(D+c/2,k);t.stroke()}E=D;w=k}t.closePath();N[K][r]=L.getFormat(l[r],K,r);F.xPopup[i]=(D+c/2)/KJE.gSCALE;F.yPopup[i]=(k+H)/KJE.gSCALE;F.xArray[i]=new Array(4);F.yArray[i]=new Array(4);F.xArray[i][0]=D/KJE.gSCALE;F.yArray[i][0]=k/KJE.gSCALE;F.xArray[i][1]=(D+c)/KJE.gSCALE;F.yArray[i][1]=F.yArray[i][0];F.xArray[i][2]=F.xArray[i][1];F.yArray[i][2]=(k+H)/KJE.gSCALE;F.xArray[i][3]=F.xArray[i][0];F.yArray[i][3]=F.yArray[i][2];F.sItems[i++]=A+" "+(h?h[r]:"")+(o?(L._sGraphCategoriesBold[r]?L._sGraphCategoriesBold[r]:""):"")+(L._bPopDetail?KJE.Colon+" "+N[K][r]:"");a[K][r]=D+c/2;d[K][r]=k-M}}F.xArray.length=i;F.yArray.length=i;F.sItems.length=i;t.shadowBlur="0";t.shadowOffsetX="0";t.shadowOffsetY="0";t.fillStyle=L._cTextColor;if(L._showItemLabel){for(K=0;K3&&z<600)){for(r=0;r0){h=d-(Math.round((i[m]-o)*q))}}h+=g;if(t!=-9191){p.beginPath();p.strokeStyle=F._vDataSeries[E]._cColor;p.fillStyle=F._vDataSeries[E]._cColor;if(F._iArea==k.AREA_ALL||(F._iArea==k.AREA_FIRST_ONLY&&E==0)||(F._iArea==k.AREA_SECOND_ONLY&&E==1)){p.moveTo(A,g+d);p.lineTo(A,t);p.lineTo(B+0.5,h);p.lineTo(B+0.5,g+d);p.lineTo(A,g+d);p.fill()}else{p.moveTo(B+0.5,h);p.lineTo(A,t);p.stroke()}}C.xPopup[f]=(B-5)/c;C.yPopup[f]=(h+5)/c;C.xArray[f]=KJE.IntArray(4);C.yArray[f]=KJE.IntArray(4);C.xArray[f][0]=(B-r)/c;C.yArray[f][0]=(h-r)/c;C.xArray[f][1]=(B+r)/c;C.yArray[f][1]=C.yArray[f][0];C.xArray[f][2]=C.xArray[f][1];C.yArray[f][2]=(h+r)/c;C.xArray[f][3]=C.xArray[f][0];C.yArray[f][3]=C.yArray[f][2];C.sItems[f++]=w+(l?"":" "+(e?e[m]:"")+(F._bPopDetail?b.Colon+" "+F.getFormat(i[m],E,m):""));A=B;t=h}}C.xArray.length=f;C.yArray.length=f;C.sItems.length=f};KJE.gType.prototype.paintDataPie=function(t,b,a,D,d){var H=0;var F=this._gGraph;var C=this;var l=F._vDataSeries[0]._fValues;for(var r=0;rd?D/d:1);var f=(D>d?1:d/D)}k=k/g;j=j/f;t.scale(g,f);var c=Math.round(Math.min(D/2,d/2));var u=0;var B=0;t.shadowBlur=0;t.shadowOffsetX=G;t.shadowOffsetY=G;t.lineWidth=KJE.gGraphPie._LINE_WIDTH;t.lineJoin=KJE.gGraphPie._LINE_JOIN;t.fillStyle=KJE.gGraphPie._LINE_COLOR;var h=F._axisX._sCategories;if(o>=0||H==0){if(H==0){o=1}else{o+=1}t.fillStyle=F.getColor(o);t.moveTo(k,j);t.beginPath();t.arc(k,j,c,0,Math.PI*2,true);t.closePath();t.stroke();t.fill();t.fillStyle=F.getColor(o);t.strokeStyle=KJE.gDarker(F.getColor(o),0.6);t.moveTo(k,j);t.beginPath();t.arc(k,j,c,0,Math.PI*2,true);t.closePath();t.stroke();t.fill()}else{if(KJE.gGraphPie._DROP_SHADOW){for(var z=(l.length-1);z>=0;z--){if(l[z]!=0){B=(l[z]/H);t.fillStyle=KJE.gDarker(F.getColor(z+1),0.5);t.shadowColor=t.fillStyle;t.beginPath();t.moveTo(k,j);var A=u*Math.PI*2;var w=((z==0&&l[z]>0)?0:(u+B)*Math.PI*2);t.arc(k,j,c,A,w,false);t.lineTo(k,j);t.closePath();t.fill();u+=B}}}u=0;t.shadowBlur=0;t.shadowOffsetX=0;t.shadowOffsetY=0;var m=0;for(z=(l.length-1);z>=0;z--){if(l[z]!=0){B=(l[z]/H);if(B<0){B=0}t.fillStyle=F.getColor(z+1);t.strokeStyle=KJE.gDarker(F.getColor(z+1),0.6);t.beginPath();t.moveTo(k,j);var A=u*Math.PI*2;var w=((z==0&&l[z]>0)?0:(u+B)*Math.PI*2);t.arc(k,j,c,A,w,false);t.lineTo(k,j);t.closePath();t.stroke();t.fill();var e=Math.ceil(B*20+0.01);C.xArray[m]=KJE.IntArray(e+2);C.yArray[m]=KJE.IntArray(e+2);C.xArray[m][0]=(k*g)/KJE.gSCALE;C.yArray[m][0]=(j*f)/KJE.gSCALE;var E=(B/e);for(var q=0;q0){f=Math.round((S-c)*a);C=F+N-f}else{f=Math.round(S*a);C=F+h-f}}p.beginPath();p.fillStyle=D._vDataSeries[I]._cColor;if(I==0){p.shadowOffsetY=b;p.fillRect(Q,C,H,f);if(H>KJE.gGraphColumn._LINE_WIDTH*4){p.strokeStyle=KJE.gDarker(p.fillStyle,0.6);p.lineWidth=KJE.gGraphColumn._LINE_WIDTH;p.strokeRect(Q,C,H,f)}k[P]=Q+H/2;J[P]=C-i}p.shadowOffsetY="0";p.fillRect(Q,C,H,f);if(H>KJE.gGraphColumn._LINE_WIDTH*4){p.strokeStyle=KJE.gDarker(p.fillStyle,0.6);p.lineWidth=KJE.gGraphColumn._LINE_WIDTH;p.strokeRect(Q,C,H,f)}var M=C+Math.floor(E[P]*a);l[q]=(Q+H/2)/KJE.gSCALE;L[q]=M/KJE.gSCALE;O[q]=new Array(4);o[q]=new Array(4);O[q][0]=Q/KJE.gSCALE;o[q][0]=C/KJE.gSCALE;O[q][1]=(Q+H)/KJE.gSCALE;o[q][1]=o[q][0];O[q][2]=O[q][1];o[q][2]=M/KJE.gSCALE;O[q][3]=O[q][0];o[q][3]=o[q][2];u[q++]=z+(D._bPopCat&&j?" "+e._sCategories[P]:"")+(D._bPopDetail?KJE.Colon+" "+D.getFormat(E[P],I,P):"")}}O.length=q;o.length=q;u.length=q;p.shadowBlur="0";p.shadowOffsetX="0";p.shadowOffsetY="0";p.fillStyle=D._cTextColor;if(D._showItemLabel){for(P=0;P-1;b--){var h=e.poly(g[b],f[b],a,i);if(h){return{x:e.xPopup[b],y:e.yPopup[b],s:e.sItems[b]}}}return null};KJE.FTR=function(a){return a};KJE.lang="EN";KJE.definitions.set("**ROR_DEFINITION**","The actual rate of return is largely dependent on the types of investments you select. The Standard & Poor's 500® (S&P 500®) for the 10 years ending December 31st 2023, had an annual compounded rate of return of 15.2%, including reinvestment of dividends. From January 1, 1970 to December 31st 2023, the average annual compounded rate of return for the S&P 500®, including reinvestment of dividends, was approximately 10.9% (source: www.spglobal.com). Since 1970, the highest 12-month return was 61% (June 1982 through June 1983). The lowest 12-month return was -43% (March 2008 to March 2009). Savings accounts at a financial institution may pay as little as 0.25% or less but carry significantly lower risk of loss of principal balances.

It is important to remember that these scenarios are hypothetical and that future rates of return can't be predicted with certainty and that investments that pay higher rates of return are generally subject to higher risk and volatility. The actual rate of return on investments can vary widely over time, especially for long-term investments. This includes the potential loss of principal on your investment. It is not possible to invest directly in an index and the compounded rate of return noted above does not reflect sales charges and other fees that investment funds and/or investment companies may charge.");KJE.definitions.set("**ROR_SHORT_DEFINITION**","It is important to remember that these scenarios are hypothetical and that future interest rates can't be predicted with certainty.");KJE.definitions.set("**INFLATION_DEFINITION**","This is what you expect for the average long-term inflation rate. A common measure of inflation in the U.S. is the Consumer Price Index (CPI). From 1925 through 2023 the CPI has a long-term average of 3.0% annually. Over the last 40 years the highest CPI recorded was 13.5% in 1980. For 2023, the last full year available, the CPI was 3.1% annually as reported by the U.S. Bureau of Labor Statistics.");KJE.gColorGridBackground1 ="#f7f7f7";KJE.gColorGridBackground2 ="#f7f7f7";KJE.ReportHeader="

**REPORT_TITLE**

www.thriventchurchloans.com
";KJE.ReportFooter="

Thrivent
625 Fourth Avenue South
Minneapolis, MN 55415

Information and interactive calculators are made available to you only as self-help tools for your independent use and are not intended to provide investment or tax advice. We cannot and do not guarantee their applicability or accuracy in regards to your individual circumstances. All examples are hypothetical and are for illustrative purposes. We encourage you to seek personalized advice from qualified professionals regarding all personal finance issues.

";