var WebPages_Enum={wpUnknown:1,wpWelcome:2,wpResetPassword:3,wpIncludeFile:4,wpEditUsers:5,wpSystemSettings:6,wpCustomers:7,wpCustomerDetail:8,wpDatabases:9,wpDatabaseDetail:10,wpPayments:11,wpPaymentDetail:12,wpInvoiceDetail:14,wpImportPayments_Obsolete:15,wpEventLog:16,wpUserEventLog:17,wpSearch:18,wpPaymentTotals:19,wpChurnReport:20,wpCohortAnalysisReport:21,wpDownloadFile:22,wpLicenseReconciliationReport:23,wpServerMetricReport:24,wpCreditMemoDetail:26,wpVUInvoices:29,wpVUIncludeFile:30,wpVUViewInvoice:31,wpJTUserEventLog:33,wpVUViewCreditMemo:34,wpSystemEventLog:35,wpPortalUsageReport:36,wpVUViewStatement:37,wpOverbillingReport:38,wpNewCustomerActivityReport:39,wpEmptySettings:40,wpReports:41,wpMySettings:42,wpBouncedEmail:43,wpTaxRates:44,wpProducts:45,wpEmail:47,wpUnpaidInvoices:48,wpPortalRedirect:49,wpVUViewInvoices:50,wpTaxRateReconciliationReport:51,wpExpensesSummary:54,wpExpenseApprovals:55,wpExpenseDetail:56,wpUploadAttachedFile:58,wpExpenseSettings:59,wpExpenseSettingsTrips:60,wpExpenseSettingsTypes:61,wpExpenseSettingsImportBlocklist:62,wpExpenseSettingsVendors:63,wpExpenseSettingsQuickbooksCustomers:64,wpExpenseSettingsUseTax:65,wpSystemSettingsProducts:66,wpLegacyPricingReport:67,wpQuoteJobAndOrderUsageReport:68,wpExpenseReportDetail:69,wpSalesByState:70,wpAutopaySettings:71,wpBTBillingId:72,wpBTProfileEventLog:73,wpAutopayReport:74,wpBTDisbursementReport:75,wpBTDisbursementDetail:76,wpEditRoles:77,wpUsersAndRoles:78,wpTaxJarTransactionsReport:79,wpAdditionalUsersReport:80,wpStateTaxAgencies:81,wpTaskReport:82,wpUser2FactorAuthConfig:83,wpSunsettingReport_Obsolete:84,wpPricingStructures:85,wpJTCRMQBSynch:86,wpSalesPersons:87,wpOnboarders:88,wpProductSalesReport:89,wpProductSalesAssignment:90,wpCompanyKPIs:91},Edition_Enum={edBasic:1,edStandard:2,edInventory:3,edEnterprise:4,edEditionNone:5},SessionKillReason_Enum={skrLogout:0,skrNewLogin:1,skrAdminKilled:2,skrActivelyLoggedOut:4},EventObjectType_Enum={eotCustomer:1,eotInvoice:2,eotUser:3,eotTaxRate:4,eotDatabase:5,eotProduct:6,eotEdition:7,eotPayment:8,eotDatabaseProduct:9,eotCartItem:10,eotInvoicePayment:11,eotEmailTemplate:12,eotBundle:13,eotCreditMemo:14,eotCreditMemoPayment:15,eotPaymentRefund:16,Obsolete_eotPaypalBillingProfileSnapshot:17,eotMBSILL:18,eotExpense:19,eotFile:20,eotExpenseDetail:21,eotDatabaseCompanyAddress:22,eotDatabaseContact:23,eotExpenseReport:24,eotExpenseReportDetail:25,eotBillingCustomerProcessorId:26,eotDisbursement:27,eotJTCRMRole:28,eotStateTaxAgency:29,eotTask:30,eotPricingStructure:31,eotDatabasePricingStructure:32,eotAccountingSettings:33,eotDatabaseAddress:34,eotSalesperson:35,eotOnboarder:36},EventFieldType_Enum={eftxChange:1,eftxAssigned:2,eftxAssignee:3},Term_Enum={trmMonthly:1,trmQuarterly:2,trmAnnual:3},PaymentDueOption_Enum={pdoAll:1,pdoDue:2,pdoSoon:3},TaskStatus_Enum={tsActive:1,tsComplete:2},TaskStatusFilter_Enum={tsfActiveOnly:1,tsfCompleteOnly:2,tsfActiveOrComplete:3},SearchSubjectAreas_Enum={ssjDatabase:1,ssjCustomer:2,ssjInvoice:3,ssjPayment:4,ssjBillingCustomerProcessorId:6,ssjCreditMemo:7},PaymentType_Enum={ptSale:1,ptCredit:2,ptAuthorization:3,ptVoid:4},DisplayedProductGroup_Enum={dpgSubscription:1,dpgJTDownload:2,dpgLegacy:3},CommonConstants_Enum={ccMAX_REPORTING_MONTHS_COUNT:99},SMREditionUsage_Enum={seuAll:1,seuCGUsage:2,seuJTUsage:3},SMRExpirationStatus_Enum={sesAll:1,sesExpired:2,sesNotExpired:3},SMRBillingDBStatus_Enum={bdbsAll:1,bdbsHasBillingDB:2,bdbsNoBillingDB:3},EditionFilter_Enum={efAny:1,efEditionOnly:2,efNonEditionOnly:3},SubscriptionStatus_Enum={ssAny:1,ssActiveOnly:2,ssInactiveOnly:3},DeprecationStatus_Enum={dsAny:1,dsDeprecatedOnly:2,dsNonDeprecatedOnly:3},TableHeaderScrollImpl_Enum={thsiFixedPosition:1,thsiJavascript:2,thsiJavascriptAndFixedPositioning:3},CRMProductType_Enum={crmptJobTracker:0,crmptCounterGo:1,crmptSystemize:2,crmptNVInventory:3},AttributeUsage_Enum={File:1},AttributeDataTypes_Enum={SelectFromList:1,EnterNumber:2,EnterDate:3,EnterText:4,AutoNumber:5,MultilineText:6,Separator:7,Link:8,EnterCurrency:15},VirtualUserType_Enum={vutJobTracker:1,vutBilling:2},RoleType_Enum={rtJTCRM:1},PermissionType_Enum={ptJTCRM:1},JTCRMSecuredObject_Enum={mjtMinSecuredObjectId:1,soSystemSettings:1,soBouncedEmail:2,soExportedDatabaseObjects:3,soUnexportedDatabaseObjects:4,soAutopaySettings:5,soEmailTemplates:6,soProducts:7,soTaxRates:8,soExpenseConfiguration:9,soApprovals:10,soReportsBookkeeping:11,soReportsCustomerActivity:12,soReportsFinancials:13,soReportsOperations:14,soReportsProductSales:15,soReportsCompanyKPIs:16,mjtMaxSecuredObjectId:16,soRoleSettings:100,soUserSettings:101},ExpensesSummaryViews_Enum={esvRequiresInput:1,esvAll:2},AccessRight_Enum={mjtARCreate:1,mjtARRead:2,mjtARUpdate:4,mjtARDelete:8,mjtARExecute:16},Expense_Approval_Status_Enum={easNeedsUserInput:0,easWaitingForApproval:1,easRejected:2,easApproved:3,easApprovedAndExported:4},Attached_File_Data_Type_Enum={afdtImage:0,afdtPDF:1,afdtDoc:2,afdtOther:3},SalesByStateTimeSelection_Enum={sbstsCustom:1,sbstsLastYear:2,sbstsYearToDate:3,sbstsLastFull12Months:4,sbstsLastMonth:5,sbstsLastQuarter:6,sbstsMonthToDate:7,sbstsQuarterToDate:8},AmexVendorFilterType_Enum={avftExactlyMatches:0,avftContains:1,avftStartsWidth:2},AutopayStatus_Enum={apsNone:0,apsPending:1,apsSuccess:2,apsTransientFailure:3,apsPermanentFailure:4},FilteredVUserType_Enum={fvutAny:1,fvutJTOnly:2,fvutBillingOnly:3},TimePeriodTypeFilter_Enum={tptfMonth:1,tptfQuarter:2,tptfYear:3},TimePeriodQuarters_Enum={tpqFirst:1,tpqSecond:2,tpqThird:3,tpqFourth:4},ActiveStatusFilter_Enum={asfAny:1,asfActiveOnly:2,asfInactiveOnly:3},NewPriceTargetFilterOption_Enum={nptfoCGOnly:1,nptfoJTSysOnly:2,nptfoAll:3},PaymentProcessorType_Enum={pptPayflow:0,pptBraintree:1,pptManual:2},ChurnReportPeriodType_Enum={crptMonth:1,crptQuarter:2,crptYear:3},ChurnReportRevenueCategory_Enum={crrcNew:1,crrcCancel:2,crrcIncrease:3,crrcDecrease:4,crrcUnchanged:5},CompanyKPIsRowDataType_Enum={ckpirdtNewDatabasesAdded:1,ckpirdtNetNewDatabases:2,ckpirdtRevenueChurnPercent:3,ckpirdtMRRGrowthPercent:4,ckpirdtAverageMRRPerDB:5,ckpirdtPercentOfDBsWithAnyActiveProduct:6,ckpirdtPercentOfDBsWithActiveSystemize:7,ckpirdtPercentOfDBsWithActiveCounterGo:8,ckpirdtPercentOfDBsWithActiveMorawareInventory:9},JTCRMQBSynchTabs_Enum={jtcrmqbstTaxRates:1,jtcrmqbstDatabases:2,jtcrmqbstProducts:3,jtcrmqbstInvoices:4,jtcrmqbstCreditMemos:5,jtcrmqbstPayments:6,jtcrmqbstDeposits:7,jtcrmqbstExpenseTypes:8,jtcrmqbstQBVendors:9,jtcrmqbstExpenses:10,jtcrmqbstExpenseReports:11},ActiveAccountingSystem_Enum={aasNoAccountingSystem:1,aasQuickBooksOnline:2,aasQuickBooksDesktop:3},FilterProperty_Enum={fpDBIsActive:1,fpActiveProducts:2,fpDatabaseState:3,fpTaxRateName:4},g_emailSubstStrDigits="[ccDigits]",g_emailSubstStrInvAmount="[invAmt]",g_emailSubstStrCCType="[ccType]",g_emailSubstStrInvDate="[invDate]",g_emailSubstStrBillingURL="[billingURL]",JTCRMQBSYNCH_TAB_CONTROL_ID="tabJTCRMQBSynch"; var FontAwesomeBoundaries_Enum={FontAwesome_Last:62176},IoniconRawBoundaries_Enum={Ionicon_RawFirst:61697,Ionicon_RawLast:62711},IoniconOffsetValues_Enum={Ionicon_Offset:FontAwesomeBoundaries_Enum.FontAwesome_Last+1-IoniconRawBoundaries_Enum.Ionicon_RawFirst},IoniconBoundaries_Enum={Ionicon_First:IoniconRawBoundaries_Enum.Ionicon_RawFirst+IoniconOffsetValues_Enum.Ionicon_Offset,Ionicon_Last:IoniconRawBoundaries_Enum.Ionicon_RawLast+IoniconOffsetValues_Enum.Ionicon_Offset},FoundationIconsRawBoundaries_Enum={FoundationIcons_RawFirst:61696,FoundationIcons_RawLast:61979},FoundationIconsOffsetValues_Enum={FoundationIcons_Offset:IoniconBoundaries_Enum.Ionicon_Last+1-FoundationIconsRawBoundaries_Enum.FoundationIcons_RawFirst},FoundationIconsBoundaries_Enum={FoundationIcons_First:FoundationIconsRawBoundaries_Enum.FoundationIcons_RawFirst+FoundationIconsOffsetValues_Enum.FoundationIcons_Offset,FoundationIcons_Last:FoundationIconsRawBoundaries_Enum.FoundationIcons_RawLast+FoundationIconsOffsetValues_Enum.FoundationIcons_Offset},SZIconsRawBoundaries_Enum={SZIcons_RawFirst:59648,SZIcons_RawLast:59800},SZIconsOffsetValues_Enum={SZIcons_Offset:FoundationIconsBoundaries_Enum.FoundationIcons_Last+1-SZIconsRawBoundaries_Enum.SZIcons_RawFirst},SZIconsBoundaries_Enum={SZIcons_First:SZIconsRawBoundaries_Enum.SZIcons_RawFirst+SZIconsOffsetValues_Enum.SZIcons_Offset,SZIcons_Last:SZIconsRawBoundaries_Enum.SZIcons_RawLast+SZIconsOffsetValues_Enum.SZIcons_Offset},MorawareIconsRawBoundaries_Enum={MorawareIcons_RawFirst:65,MorawareIcons_RawLast:1e3},MorawareIconsOffsetValues_Enum={MorawareIcons_Offset:SZIconsBoundaries_Enum.SZIcons_Last+1-MorawareIconsRawBoundaries_Enum.MorawareIcons_RawFirst},MorawareIconsBoundaries_Enum={MorawareIcons_First:MorawareIconsRawBoundaries_Enum.MorawareIcons_RawFirst+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,MorawareIcons_Last:MorawareIconsRawBoundaries_Enum.MorawareIcons_RawLast+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset},FontIconId_Enum={fiiSignOut:61579,fiiChevronCircleLeft:61751,fiiChevronCircleRight:61752,fiiVerticalEllipsis:61762,fiiExternalLink:61582,fiiArrowSolidCircleLeft:61608,fiiArrowSolidCircleRight:61609,fiiArrowSolidCircleUp:61610,fiiArrowSolidCircleDown:61611,fiiArrowCircleRight:61838,fiiArrowDown:61813,fiiArrowUp:61814,fiiArrowLeft:61815,fiiArrowRight:61816,fiiBomb:61922,fiiBinoculars:61925,fiIPlug:61926,fiiSoccerBall:61923,fiiToggleOff:61956,fiiToggleOn:61957,fiiCircleUser:62142,fiiPlusInCircle:61525,fiiEye:61550,fiiEyeSlash:61552,fiiCheck:61452,fiiX:61453,fiiMinimize:62161,fiiRestore:62162,fiiSnowflake:62172,fiiCog:61459,fiiRoad:61464,fiiSliders:61918,fiiWrench:61613,fiiFilter:61616,fiiArrowsExpand:61541,fiiArrowsCollapse:61542,fiiPlus:61543,fiiMinus:61544,fiiAsterisk:61545,fiiCircledLeftArrow:61608,fiiHamburgerMenu:61641,fiiBulletList:61642,fiiNumberedList:61643,fiiTruck:61649,fiiDownArrowInFilledCircle:61611,fiiLightningBolt:61671,fiiPaste:61674,fiiDownloadCloud:61677,fiiUploadCloud:61678,fiiMD:61680,fiiCutlery:61685,fiiHollowDocument:61686,fiiFilledDocument:61787,fiiEUROCurrency:61779,fiiPoundCurrency:61780,fiiUSD:61781,fiiFilledLinedDocument:61788,fiiFillingInbox:61804,fiiDribble:61821,fiiPaw:61872,fiiAutomobile:61881,fiiCar:61881,fiiTaxi:61882,fiiBus:61959,fiiBed:62006,fiiTrain:62008,fiiSubway:62009,fiiDatabase:61888,fiiPDF:61889,fiiXDocument:61891,fiiCodePen:61899,fiiHollowDuplicateDocumentFlatCorners:62029,fiiHollowDuplicateDocument:61637,fiiSave:61639,fiiSolidOpenFolder:61564,fiiUpDownArrow:61565,fiiLeftChevrons:61696,fiiRightChevrons:61697,fiiUpChevrons:61698,fiiDownChevrons:61699,fiiUpChevron:61559,fiiDownChevron:61560,fiiLeftChevron:61523,fiiRightChevron:61524,fiiShoppingCart:61562,fii4Arrows:61511,fiiCheckBoxChecked:61510,fiiCheckBoxUnchecked:61590,fiiStepBackward:61512,fiiFastBackward:61513,fiiBackward:61514,fiiPlay:61515,fiiPause:61516,fiiStop:61517,fiiForward:61518,fiiFastForward:61520,fiiStepForward:61521,fiiCircledX:61532,fiiCircleChecked:61533,fiiBanned:61534,fiiLeftArrow:61536,fiiRightArrow:61537,fiiUpArrow:61538,fiiDownArrow:61539,fiiRedo:61470,fiiRotateRight:61470,fiiRefresh:61473,fiiHeadphones:61477,fiiRotateLeft:61666,fiiUndo:61666,fiiHistory:61914,fiiMinusInSquare:61767,fiiPlusInSquare:61846,fiiEraser:61741,fiiHollowTrash:61460,fiiHome:61461,fiiPaypalCC:61940,fiiSolidTrash:61944,fiiGraph:61953,fiiSpy:61979,fiiMapSignpost:62071,fiiMapHollow:62072,fiiMapFilled:62073,fiiCommenting:62074,fiiCommentingHollow:62075,fiiLink:61633,fiiBrokenLink:61735,fiiInfoI:61737,fiiScissors:61636,fiiBarcode:61482,fiiSingleTag:61483,fiiMultipleTags:61484,fiiLetterA:61489,fiiMoveTo:61584,fiiConvertJob:61556,fiiEdit:61508,fiiShareSquare:61509,fiiPencil:61504,fiiBoxedPencil:61771,fiiFileImage:61893,fiiDownload:61465,fiiUpload:61587,fiiAddPerson:62004,fiiRemovePerson:62005,fiiBattery4:62016,fiiBattery3:62017,fiiBattery2:62018,fiiBattery1:62019,fiiBattery0:62020,fiiArrowsRightLeft:61676,fiiArrowSortDown:61655,fiiArrowSortUp:61656,fiiArrowSortLeft:61657,fiiArrowSortRight:61658,fiiBell:61683,fiiZoomIn:61454,fiiZoomOut:61456,fiiFilledLetter:61664,fiiChevronLeft:61700,fiiChevronRight:61701,fiiChevronUp:61702,fiiChevronDown:61703,fiiDesktopMonitor:61704,fiiCellPhone:61707,fiiSolidBullet:61713,fiiHollowBullet:61708,fiiFloppyDisk:61639,fiiPlane:61554,fiiCalendar:61555,fiiClock:61463,fiiGenericCreditCard:61597,fiiFlag:61725,fiiProperties:61474,fiiListAlt:61474,fiiLock:61475,fiiUnlock:61596,fiiCalculator:61932,fiiSolitaryQuestionMark:61736,fiiSolitaryExclamationMark:61738,fiiSolitaryExclamation:61738,fiiFilledCircleX:61527,fiiCheckCircle:61528,fiiQuestionMarkInFilledCircle:61529,fiiLCaseIInFilledCircle:61530,fiiExclamationInFilledCircle:61546,fiiExclamationInFilledTriangle:61553,fiiSpinner:61712,fiiFilledCircle:61713,fiiBook:61485,fiiBookmark:61486,fiiHollowBookmark:61591,fiiPrinter:61487,fiiList:61498,fiiFullSun:61603,fiiHollowSun:61829,fiiCrescentMoon:61830,fiiMagnifyingGlass:61442,fiiStar:61445,fiiHollowStar:61446,fiiSolitaryPerson:61447,fiiCamera:61571,fiiKey:61572,fiiMultiCogs:61573,fiiEllipsis:61761,fiiHandshake:62133,fiiDarkEnvelope:62134,fiiHollowEnvelope:62135,fiiHollowUser:62144,fiiMultipleUsers:61632,fiiShower:62156,fiiBathtub:62157,fiiQuestionCircleO:62108,fiiBlind:62109,fiiHandPointRight:61604,fiiHandPointLeft:61605,fiiHandPointUp:61606,fiiHandPointDown:61607,fiiHourGlassEmpty:62032,fiiHourGlassTopHalf:62033,fiiHourGlassHalfAndHalf:62034,fiiHourGlassBottomHalf:62035,fiiHourGlassFull:62036,fiiHandRockOrGrab:62037,fiiHandStop:62038,fiiHandScissors:62039,fiiHandLizzard:62040,fiiHandSpock:62041,fiiHandPointer:62042,fiiHandPeace:62043,fiiCalendarPlus:62065,fiiCalendarMinus:62066,fiiCalendarEx:62067,fiiCalendarCheck:62068,fiiMapMarker:61505,fiiCaretDown:61655,fiiUnlink:61735,fiiFlashOff_Ionicon:61750+IoniconOffsetValues_Enum.Ionicon_Offset,fiiAndroidHand_Ionicon:62179+IoniconOffsetValues_Enum.Ionicon_Offset,fiiLockClosed_Ionicon:61952+IoniconOffsetValues_Enum.Ionicon_Offset,fiiLockOpened_Ionicon:62036+IoniconOffsetValues_Enum.Ionicon_Offset,fiiRefresh_Ionicon:61953+IoniconOffsetValues_Enum.Ionicon_Offset,fiiClock_Ionicon:62062+IoniconOffsetValues_Enum.Ionicon_Offset,fiiStopwatch_Ionicon:62205+IoniconOffsetValues_Enum.Ionicon_Offset,fiiSunBurst_Ionicon:62109+IoniconOffsetValues_Enum.Ionicon_Offset,fiiLessThan_Ionicon:61732+IoniconOffsetValues_Enum.Ionicon_Offset,fiiCalculator_Ionicon:62061+IoniconOffsetValues_Enum.Ionicon_Offset,fiiHeart_Ionicon:61761+IoniconOffsetValues_Enum.Ionicon_Offset,fiiVolumeHigh_Ionicon:62039+IoniconOffsetValues_Enum.Ionicon_Offset,fiiVolumeLow_Ionicon:62040+IoniconOffsetValues_Enum.Ionicon_Offset,fiiVolumeMedium_Ionicon:62041+IoniconOffsetValues_Enum.Ionicon_Offset,fiiVolumeMute_Ionicon:62042+IoniconOffsetValues_Enum.Ionicon_Offset,fiiArrowsOut_Ionicon:62046+IoniconOffsetValues_Enum.Ionicon_Offset,fiiArrowsIn_Ionicon:62055+IoniconOffsetValues_Enum.Ionicon_Offset,fiiPicture_Ionicon:61767+IoniconOffsetValues_Enum.Ionicon_Offset,fiiPictures_Ionicon:61768+IoniconOffsetValues_Enum.Ionicon_Offset,fiiPin_Ionicon:62118+IoniconOffsetValues_Enum.Ionicon_Offset,fiiSliderSelectorChecked_Ionicon:62292+IoniconOffsetValues_Enum.Ionicon_Offset,fiiSliderSelectorUnchecked_Ionicon:62293+IoniconOffsetValues_Enum.Ionicon_Offset,fiiPaperclip_Ionicon:62311+IoniconOffsetValues_Enum.Ionicon_Offset,fiiHollowCheckUnchecked_Ionicon:62322+IoniconOffsetValues_Enum.Ionicon_Offset,fiiHollowCheckChecked_Ionicon:62323+IoniconOffsetValues_Enum.Ionicon_Offset,fiiFilledCheckChecked_Ionicon:62324+IoniconOffsetValues_Enum.Ionicon_Offset,fiiDoubleCheck_Ionicon:62338+IoniconOffsetValues_Enum.Ionicon_Offset,fiiSingleCheck_Ionicon:62339+IoniconOffsetValues_Enum.Ionicon_Offset,fiiAddUser_Ionicon:62367+IoniconOffsetValues_Enum.Ionicon_Offset,fiiUser_Ionicon:62368+IoniconOffsetValues_Enum.Ionicon_Offset,fiiAndroidSunny_Ionicon:62384+IoniconOffsetValues_Enum.Ionicon_Offset,fiiAndroidWalk_Ionicon:62395+IoniconOffsetValues_Enum.Ionicon_Offset,fiiBaseballHollow_Ionicon:62429+IoniconOffsetValues_Enum.Ionicon_Offset,fiiBaseballFilled_Ionicon:62430+IoniconOffsetValues_Enum.Ionicon_Offset,fiiBasketballHollow_Ionicon:62431+IoniconOffsetValues_Enum.Ionicon_Offset,fiiBasketballFilled_Ionicon:62432+IoniconOffsetValues_Enum.Ionicon_Offset,fiiFileBox_Ionicon:62443+IoniconOffsetValues_Enum.Ionicon_Offset,fii_HollowSmallController_Ionicon:62520+IoniconOffsetValues_Enum.Ionicon_Offset,fii_FilledSmallController_Ionicon:62521+IoniconOffsetValues_Enum.Ionicon_Offset,fii_HollowLargeController_Ionicon:62522+IoniconOffsetValues_Enum.Ionicon_Offset,fii_FilledLargeController_Ionicon:62523+IoniconOffsetValues_Enum.Ionicon_Offset,fii_HollowSingleTag_Ionicon:62604+IoniconOffsetValues_Enum.Ionicon_Offset,fii_FilledSingleTag_Ionicon:62605+IoniconOffsetValues_Enum.Ionicon_Offset,fii_HollowMultiTag_Ionicon:62606+IoniconOffsetValues_Enum.Ionicon_Offset,fii_FilledMultiTag_Ionicon:62607+IoniconOffsetValues_Enum.Ionicon_Offset,fiiRainyOutline_Ionicon:62612+IoniconOffsetValues_Enum.Ionicon_Offset,fiiRainySolid_Ionicon:62613+IoniconOffsetValues_Enum.Ionicon_Offset,fii_LightEqualizer_Ionicon:62630+IoniconOffsetValues_Enum.Ionicon_Offset,fii_DarkEqualizer_Ionicon:62631+IoniconOffsetValues_Enum.Ionicon_Offset,fiiCircledMinusRemove_Ionicon:62563+IoniconOffsetValues_Enum.Ionicon_Offset,fiiSave_Foundation:61868+FoundationIconsOffsetValues_Enum.FoundationIcons_Offset,fiiBookmark_Foundation:61725+FoundationIconsOffsetValues_Enum.FoundationIcons_Offset,fiiMan_SZ:59648+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiManAndCart_SZ:59649+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiManAndCashRegister_SZ:59650+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiCrate_SZ:59651+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiOpenDoor_SZ:59652+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiRalphieSolid_SZ:59653+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiCrateSolid_SZ:59654+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiManHead_SZ:59669+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiRalphie_SZ:59670+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiKong_SZ:59671+SZIconsOffsetValues_Enum.SZIcons_Offset,fiiInsertRow:65+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiSun:66+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiInclude:67+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiNonDrawn_MW:69+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiColorOptionReorder_MW:70+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiAreaReorder_MW:71+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiArea_MW:72+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiColorOption_MW:73+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiZoomPlus_MW:74+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiZoomMinus_MW:75+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiZoomReset_MW:76+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiPan_MW:77+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiText_MW:78+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiRelease_MW:79+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiReplace_MW:80+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiEditMultiple_MW:81+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiSearchCost_MW:82+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiSaw_MW:83+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiSplitChild_MW:84+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiSplitParent_MW:85+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiSplitWithoutParent_MW:86+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiSplitSlab_MW:87+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiFilterPhases_MW:88+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiPageBreak_MW:89+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset,fiiRoundingRuler_MW:90+MorawareIconsOffsetValues_Enum.MorawareIcons_Offset};function getRawFontId(i){return i<=FontAwesomeBoundaries_Enum.FontAwesome_Last?i:i>=IoniconBoundaries_Enum.Ionicon_First&&i<=IoniconBoundaries_Enum.Ionicon_Last?i-IoniconOffsetValues_Enum.Ionicon_Offset:i>=FoundationIconsBoundaries_Enum.FoundationIcons_First&&i<=FoundationIconsBoundaries_Enum.FoundationIcons_Last?i-FoundationIconsOffsetValues_Enum.FoundationIcons_Offset:i>=SZIconsBoundaries_Enum.SZIcons_First&&i<=SZIconsBoundaries_Enum.SZIcons_Last?i-SZIconsOffsetValues_Enum.SZIcons_Offset:i>=MorawareIconsBoundaries_Enum.MorawareIcons_First&&i<=MorawareIconsBoundaries_Enum.MorawareIcons_Last?i-MorawareIconsOffsetValues_Enum.MorawareIcons_Offset:i}function getFontNamePrefix(i){return i<=FontAwesomeBoundaries_Enum.FontAwesome_Last?"FontAwesome":i>=IoniconBoundaries_Enum.Ionicon_First&&i<=IoniconBoundaries_Enum.Ionicon_Last?"Ionicon":i>=FoundationIconsBoundaries_Enum.FoundationIcons_First&&i<=FoundationIconsBoundaries_Enum.FoundationIcons_Last?"Foundation":i>=SZIconsBoundaries_Enum.SZIcons_First&&i<=SZIconsBoundaries_Enum.SZIcons_Last?"SZFont":i>=MorawareIconsBoundaries_Enum.MorawareIcons_First&&i<=MorawareIconsBoundaries_Enum.MorawareIcons_Last?"MorawareIcons":"FontAwesome"} var MWDateTime=function(){function a(e){return(e<10?"0":"")+e}function f(e){if(e&&e.getTime()<=new Date(2079,5,6).getTime()&&e.getTime()>=new Date(1900,0,1).getTime())return e}function d(e){return e}function t(e){return e=e||new Date,new Date(e.getFullYear(),e.getMonth()+1,1)}function n(e){return e=e||new Date,new Date(e.getFullYear(),e.getMonth(),e.getDate()-1)}function c(e){var t,n=e.hour,r=e.minute,n=n<12?(t=0<(t=n)?t:12,"am"):(t=12<(n=n)?n-12:n,"pm");return(r||e.forceIncludeMinutes)&&(t+=":"+a(r)),t+=(e.padAMPM?" ":"")+n}function l(e){var t,n=e.hours,r=e.minutes;return n?!e.suppressConvert30MinutesToHalfHour&&30===r?t=n+".5 hours":(t=n+" hour"+(1Please Wait...&#'+FontIconId_Enum.fiiSpinner+";"+t+"",n.innerHTML=t,timedMsgId&&clearTimeout(timedMsgId),timedMsgId=null,i&&0=t.length&&(i&&(e=e.toLowerCase(),t=t.toLowerCase()),o=t===e.substring(0,t.length)),o}function stringEndsWith(e,t,i){var o=!1;return e&&t&&e.length>=t.length&&(i&&(e=e.toLowerCase(),t=t.toLowerCase()),o=t===e.substring(e.length-t.length)),o}function buildUrlPrefixWithParamSeparator(e){return e+(stringEndsWith(e,"?")?"":"&")}function checkForAndHandleSessionTimeoutIfNecessary(e){if(stringStartsWith(e,"Session_Timeout:")&&"function"==typeof handleSessionTimeout)return e=e.substring(16),handleSessionTimeout(e);return 0}function checkResponseForError(e,t){if(hideTimedMessage(),stringStartsWith(e,"Session_Timeout:")){var i=e.substring(16),o="";if("function"!=typeof handleSessionTimeout||!handleSessionTimeout(i)){switch(i){case""+SessionKillReason_Enum.skrActivelyLoggedOut:o="You must log back in.";break;case""+SessionKillReason_Enum.skrNewLogin:o="You must log back in here.";break;case""+SessionKillReason_Enum.skrAdminKilled:o="Your session has been terminated and you must log back in.";break;default:o="You must log in."}alert(o),!1!==t&&("function"==typeof hideDialog&&hideDialog(),"function"==typeof refreshPageShowingMessage?refreshPageShowingMessage():window.location=window.location)}return!1}return"Insufficient_Priviledges"===e?(alert("You do not have authority to perform this function."+String.fromCharCode(10)+"Please contact your administrator for more information"),!1):!new RegExp("errtable","i").test(e)||((i=window.open("","Error_Win","height=400px, width=600px, dependent, center=yes, help=no, resizable=yes, status=no, scrollbars=yes"))?(i.document.write(""),i.document.write("Remote Scripting Error"),i.document.writeln(""),i.document.writeln(e),i.document.writeln(""),i.focus()):alert(e),!1)}function refreshPageAndScrollPos(){saveScrollPos(),displayTimedMessage("Refreshing page..."),g_bSkipNavWarning=!0,window.location=window.location}function rsCallbackRefreshPageAndScrollPos(e,t,i){checkResponseForError(e)?refreshPageAndScrollPos():i&&i.onErrorFocusObject&&setFocus(i.onErrorFocusObject)}function isCalendarPopup(e){return-1!==e.className.indexOf("calPopDialog")}function isShopPagePopup(e){var t=!1;return t=Object.prototype.hasOwnProperty.call(window,"g_isShopUserPage")?g_isShopUserPage:t}function asyncShowPicker(){g_showPickerTimer&&clearTimeout(g_showPickerTimer),g_showPickerTimer=null;var e=getObj("pickerPopUp");e&&(e.style.visibility="visible",e.style.zIndex=isDialogShowing()||!isCalendarPopup(e)||isShopPagePopup(e)?507:25,(g_objPicker=e).objFocusItem)&&(setFocus(e.objFocusItem),e.objFocusItem=null)}function posLeft(e,t,i){for(var o=(e=arguments.length?e:this).offsetLeft,n=e.offsetParent;null!==n;){o+=n.offsetLeft;var r=mjtGetBodyPosIfFixedElement(n);if(r){i||(o-=r[0]);break}n=n.offsetParent}if(t)for(n=e.parentNode;n;)"BODY"!==n.nodeName&&"HTML"!==n.nodeName&&(o-=n.scrollLeft||0),n=n.parentNode;return o}function getWidthOfText(e,t,i){var o=document.createElement("span"),i=(o.style.fontSize=i,o.style.fontFamily=t,o.style.whiteSpace="nowrap",o.innerHTML=e.nodeType&&3===e.nodeType?e.nodeValue:e,document.body.appendChild(o),o.offsetWidth);return document.body.removeChild(o),i}function pageWidth(){return document.documentElement&&document.documentElement.clientWidth?window.innerWidth&&window.innerWidtha&&(r=18,d=parseFloat(e.style.borderWidth),d=isNaN(d)?0:d,e.style.overflow="auto",e.style.height=a+"px"),e.style.width=c+r+"px",s+e.offsetWidth>rightOfVisibleScreen()&&(s=rightOfVisibleScreen()-e.offsetWidth),lr.getBoundingClientRect().top)&&(e.style.visibility="hidden")):(d=(d=t).children[0],i=SearchableSelect.isElementASearchableSelect(d)?(s=t,a=posTop(l=i,!0,!1,!0),c=a+l.offsetHeight,(l=posLeft(l,!0,!1))<5&&(l=5),c+s.offsetHeight>bottomOfVisibleScreen()&&(c=a-s.offsetHeight),l+s.offsetWidth>rightOfVisibleScreen()&&(l=rightOfVisibleScreen()-s.offsetWidth),{top:c=cbottomOfVisibleScreen()&&(o=bottomOfVisibleScreen()-n.offsetHeight),r+n.offsetWidth>rightOfVisibleScreen()&&(r=rightOfVisibleScreen()-n.offsetWidth),{top:o=o/g,">").replace(/\"/g,""")}function htmlMultilineEncode(e){return e.replace(/\&/g,"&").replace(/\/g,">").replace(/\"/g,""").replace(/\n/g,"
")}function buildStyledCurrencyAmount(e){var t=e.formattedNumericValue,e=e.currencySymbol||"$";return(t="string"!=typeof(t=null!==t&&undefined!==t?t:"")?t.toString():t)?stringStartsWith(t,"-")?'('+htmlEncode(e)+t.substring(1)+")":e+t:""}function get24HourTime(e,t){return MWDateTime.get24HourTimeString({hour:e,minute:t})}function getAMPMTime(e,t){return MWDateTime.getAMPMTimeStringFrom24Hour({hour:e,minute:t,forceIncludeMinutes:1,padAMPM:0})}function getDurationDisplayString(e,t){return MWDateTime.getDurationDisplayString({hours:e,minutes:t})}function canonicalizeDurationOrNullIfInvalid(e,t){return MWDateTime.canonicalizeDurationOrNullIfInvalid({value:e,resultValueHolder:t})}function getTimeStringFrom24Hour(e,t,a,i){return MWDateTime.getAMPMTimeStringFrom24Hour({hour:e,minute:t,forceIncludeMinutes:a,padAMPM:i})}function canonicalizeTimeOrNullIfInvalid(e,t){return MWDateTime.canonicalizeTimeStringOrNullIfInvalid({value:e,resultValueHolder:t,calMinSchedHour:g_calMinSchedHour,calMaxSchedHour:g_calMaxSchedHour})}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var SecuredObjectAccess=function(){function g(e,t,a){var i;return!!(a&&e&&0'+htmlMultilineEncode(e)+"",t,i.subdialog,r,i.subdialogDismisalFocusFieldId)):(alert(e),a&&setFocus(a))}function getLocalDateString(e){return MWDateTime.getLocalDateString({date:e,dateFormatString:dateFormatString})}function FormValidator(){var e=this,n=(e.ModifiedFieldIds="",e.ModifiedFieldValues="",e.IgnoreFieldValue=null,e.BuildClientDlgParams=function(e,t,a){return{subdialog:t?1:0,subdialogDismisalFocusFieldName:e||0,subdialogDismisalFocusFieldId:a}},e.ValidateTextField=function(e){var t,a,i=e.textFieldElem,r=e.fieldDisplayName,s=e.isRequiredField,n=e.maxTextLength,l=i?i.name:"",u=r||l||"Field",e=this.BuildClientDlgParams(e.subdialogDismisalFocusFieldName||l,1),l="",o=!1;return i?(t=(a=i.value).length,a=trim(a),s&&!a?l="Please enter a "+u+" value.":n&&na}).length&&(showErrorMessageAndFocus("One or more "+e+" are longer than "+a+" characters","Too long",t,{subdialog:1,subdialogDismisalFocusFieldName:i}),1))},e.ValidateRequiredField=function(e,t,a){return e?!!trim(e.value)||(showErrorMessageAndFocus(t,"Missing Value",e,a),!1):(showErrorMessageAndFocus("Missing field for required field validation!\n\n"+t,"Missing Field",e,a),!1)},e.CValidateRequiredField=function(e,t,a,i){return this.ValidateRequiredField(e,t,this.BuildClientDlgParams(a,i))},e.CSValidateRequiredField=function(e,t,a){return this.CValidateRequiredField(e,t,a,1)},e.CSValidateRequiredFieldP=function(e){return this.CSValidateRequiredField(e.field,e.rawMessage||"Missing Value",e.subdialogDismisalFocusFieldName||e.field.name)},e.ValidateDateField=function(e,t,a,i){if(!e)return showErrorMessageAndFocus("Missing field for date validation! (Label = "+t+")","Missing Field",e,i),!1;var r=trim(e.value);if(!shouldIgnoreValue(e.value,this.IgnoreFieldValue))if(r){if(!parseDateString(r))return showErrorMessageAndFocus("Please enter a valid date for '"+t+"'","Invalid Date Value",e,i),!1}else if(!a)return showErrorMessageAndFocus("Please enter a date for '"+t+"'","Missing Date Value",e,i),!1;return!0},e.CValidateDateField=function(e,t,a,i,r){return this.ValidateDateField(e,t,a,this.BuildClientDlgParams(i,r))},e.CSValidateDateField=function(e,t,a,i){return this.CValidateDateField(e,t,a,i,1)},e.CSValidateDateFieldP=function(e){var t=e.field,a=e.label,i=e.isNullable,r=e.resultValueHolder,e=e.subdialogDismisalFocusFieldName||t.name,s=trim(t.value),t=this.CSValidateDateField(t,a,i,e);return r&&(t?(r.success=!0,r.rcDateObject=parseDateString(s),r.rcCanonicalDateString=getCanonicalDateString(r.rcDateObject)):r.success=!1),t},function(e){var t=(e=e||{}).field,a=e.label,i=e.useLabelInTitle,r=e.isNullable,s=e.returnEmptyAsNull,n=e.clientDlgParams,l=e.minValue,u=e.maxValue,o=e.maxDecimalPlaces,c=e.massageValue,e=e.suppressErrorMessage;if(!t)return e||showErrorMessageAndFocus("Missing field for number validation! (Label = "+a+")","Missing Field",t,n),!1;var d=trim(t.value);if(shouldIgnoreValue(t.value,this.IgnoreFieldValue))return d;if(""===(d=c&&new RegExp("\\d+\\,\\d{3}(\\.\\d*)?").test(d)&&(g=d.indexOf("."),0<(m=d.indexOf(",")))&&(g<0||m 18 hours!\n\n(Stopping now would result in a duration of "+o+" hours"+(0"+o):console.log(t+n.replace(/\n/g,"\n"+t))}}return{logMessage:g,logBlockOpen:function(n){g("+"+n),i[i.length]={nameDesc:n,start:(new Date).getTime()}},logBlockClose:function(n){n&&g(">>"+n),n="{no-more-blocks}",i.length&&(n=i[i.length-1].nameDesc+" ("+((new Date).getTime()-i[i.length-1].start)+"ms)",i.length=i.length-1),g("-"+n)},logObject:function(n){g(JSON.stringify(n,null,2))},logIfFloatingPointError:function(n,e){var o,t;-1<((t=-1<(t=(o=(o=n).toString()).indexOf("."))?o.substring(t+1):"")?t.indexOf("4999999"):-1)&&g(e+" - number: "+n)},undefinedStringIfUndefined:function(n){return n===undefined?"-undefined-":n}}}(); var AppointmentFilterCategoryStatusSelection_Enum={oneOf:1,notOneOf:2},JobProcessFilterStatusSelection_Enum={oneOf:1,notOneOf:2},DialogButtonPosition_Enum={dbpBeforeOk:1,dbpAfterOk:2},MaterialFilter_Enum={mfNone:1,mfSelectedOnly:2,mfFilter:3},UserValidationConfirmationStages_Enum={uvsNone:1,uvsMissingEmail:2,uvsExternalUserMissingJobsAndAccounts:5,uvsAccountUserMissingAccounts:6,uvsAccountUserMissingCGQuoteForms:7,uvsMissingLoginLocations:8,uvsShopUserMissingPageViews:9,uvsShopUserMissingActivityTypes:10,uvsShopUserMissingAssignees:11}; var StringificationUtils={stringifyObjectWithTargetedRawProperties:function(t){var e=t.objectToStringify,n=t.arrTargetedPropertyNames,t=t.htmlEncodeResult,i=JSON.stringify(e);return(n||[]).forEach(function(t){var e,n,r;n=(t={string:i,parameterName:t}).string,r=(t='"'+t.parameterName+'":').length,-1<(t=n.indexOf(t))&&(t=n.indexOf('"',t+r),r=n.indexOf('"',t+1),e=n.substring(t+1,r),n=n.substring(0,t)+e+n.substring(r+1)),i=n}),i=t?htmlEncode(i):i},resolveFunctionFromName:function(t){for(var e=(t=t.functionName)?t.split("."):[],n=e.length?window:undefined,r=0;r',g_pinCookiePath="/",g_showingHelpAttrName="data-mwShowingHelp",g_noRefreshUserId,g_objCurrSubmenus=[],g_objCurrSubmenuIds=[],g_currDialogIsSubmenuDialog=!1,g_currDialogIsViewsList=!1,dialogLeftPos=0,dialogTopPos=0,populateAttrName=[],populateAttrContextId=[],populateAttrInitValue=[],g_objMenuBar=null,menuOldTop=0,g_priceTypeContextId,g_costTypeContextId,g_templateContextId,g_reportTemplateContextId,g_NewApptDate,g_selectListValue=null,g_selectListCartNameSuffix="",g_selectListId="",g_CreateAttributeTypeFormId,moveMenuTimer,scaleTableTimer,arrScrollingTableInfo=[],arrTopStuckHeaderInfo=[],arrScrollTableTop=[],arrScrollTableOldTop=[],g_objSetFocusObject=null,g_objShowDialogObject=null,g_objShowDialogSubmenuId="",g_showDialogIsSubmenuDialog=!1,g_showDialogIsSubmenu=!1,g_showDialogIsViewsList=!1,g_showDialogSubmenuIndex=-1,g_showDialogIsStackedSubdialog=!1,g_showDialogIsStackedClientDialog=0,g_showDialogTimer=null,g_prevMajorType="",g_prevSAName="",g_prevChangeQuoteTypeId="",usePopup=!1,g_hasMovedItem=!1,g_MoveTimer="",g_mouseCaptureElement=null,g_showDialogIsSubdialog,g_objBaseDialog,g_NewContactCustomerId="",g_EditProductAttrNum="",g_resizeViewportEvent,g_DisplayedMappingFO=null,g_DisplayedMappingFOColumnId=null,g_NewShipToAddressId,g_taskMonitorTimer=null;function getTablePaddingPixels(){return 12}function onJobDetailPage(){return"undefined"!=typeof g_isJobDetailPage&&g_isJobDetailPage?1:0}function mjtVersionedShowHide(e,t){e&&(e.style.visibility=t?"visible":"hidden")}var g_dataTableIdForCreateImportColumnAttribute=null,g_columnIdForCreateImportColumnAttribute=null,ua=navigator.userAgent,isIE5Mac=document.all&&-1!=ua.indexOf("Mac"),isSafari=-1!=ua.indexOf("Safari"),safariMajorVersion=null;if(isSafari)try{var safariMajorVersionMatches=new RegExp(/.* Version\/(\d+)\.\d+./).exec(ua);safariMajorVersionMatches&&2===safariMajorVersionMatches.length&&(safariMajorVersion=parseInt(safariMajorVersionMatches[1],10))}catch(e_){}document.all&&!document.getElementById&&(document.getElementById=function(e){return document.all[e]});var ieVersion=null,tempSplit,ieVersion,g_subdialogStack=(-1!=navigator.appVersion.indexOf("MSIE")&&(tempSplit=navigator.appVersion.split("MSIE"),ieVersion=parseFloat(tempSplit[1])),[]),g_sds=0,g_ds=0,g_wk=0,g_oui=[],g_toui=[];function compareStringsUsingLocale(e,t){return e.localeCompare(t)}function compareNumbers(e,t){return e"+e+d+""}function carefullyNotifyLoggedIn(e,t){try{var i=(new Date).toString();mjtLSData("NewlyLoggedInUserId",e?""+e:0),mjtLSData("NewlyLoggedInUserName",t||""),mjtLSData("LoginAttemptTS",i)}catch(a){}}function addOnUnloadItem(e){g_oui[g_oui.length]=e}function addTrueOnUnloadItem(e){g_toui[g_toui.length]=e}function nodeIsChildOf(e,t){if(t)for(;e;){var i=e.parentNode;if(i==t)return 1;e=i}return 0}function scrollSubDListItem(e,t,i){var a=getObj(e+"DialogContentDiv"),e=getObj(t).getElementsByTagName("tbody")[0].getElementsByTagName("tr"),o=0;if(e.length>i){for(var t=e[i],o=t.offsetTop,r=t.offsetParent;r&&nodeIsChildOf(r,a);)o+=r.offsetTop,r=r.offsetParent;a.clientHeight&&(o=o-a.clientHeight/2+t.clientHeight),a.scrollTop=o}}function scrollToHighlightedSubDItem(e,t){var i=t.getElementsByTagName("tbody");if(i.length){var a=i[0].getElementsByTagName("tr");if(a.length)for(var o=0;op+h.offsetHeight?(S.style.visibility="hidden",S.zIndex=-1):(S.style.visibility="visible",S.zIndex=5)}arrScrollTableOldTop[m]=g;var O,j,k,E,P,N,_,x,f=getObj(b+"PagingDiv");f&&(f.parentNode!=document.body&&(f.parentNode.removeChild(f),document.body.appendChild(f)),O=p+h.offsetHeight,j=bottomOfVisibleScreen(),k=f.offsetHeight,_="TD"==(b=getObj(b+"FixedPagingDiv")).parentNode.nodeName,E=j-k+2,P=b?posLeft(b):0,x=0,_?e||(x=1):x=2,P-=x,Object.prototype.hasOwnProperty.call(window,"g_stickyTableHeadersScrollVersion")&&g_stickyTableHeadersScrollVersion===TableHeaderScrollImpl_Enum.thsiFixedPosition?(f.style.bottom="0px",f.style.position="fixed",_=window.pageXOffset||document.documentElement.scrollLeft,f.style.width="calc(100% + "+_+"px)",getObj("v2LeftNavContainer"),_=h.getBoundingClientRect().left,N=rsPageXOffset()?Math.abs(b.getBoundingClientRect().left-_):0,f.style.left=_+x-2-N+"px",f.style.paddingLeft=N+"px",b.style.marginLeft="0px"):(f.style.top=4+E+"px",f.style.width=h.offsetWidth+"px",b&&(f.style.left=P-2+"px")),p+3*k=b.getBoundingClientRect().top&&(f.style.visibility="hidden",f.zIndex=-1),_=f.getAttribute("data-pages"))&&(x=parseInt(_,10),!isNaN(x))&&x<=1&&(f.style.visibility="hidden")}}(g_objPicker&&!isCalendarPopup(g_objPicker)||getObj("typeAheadDiv")&&getObj("typeAheadDiv").formId)&&(g_positionPickerTimer=setTimeout(doPositionPicker,0))}}}function onScrollBrowserWindow(){moveMenu(),Layout.updateSectionHeaderButtons(),positionToolbar(),doPositionPicker()}function scaleScrollingTableHeader(e){getObj("mainToolbar"),getObj("divV2Content");var t=getObj("v2LeftNavContainer"),i=t?parseFloat(getComputedStyle(t).width):0;isNaN(i)&&(i=0),GroupedColumnTableLayoutManagement.makeColumnGroupingAdjustments(),scaleTableTimer&&clearTimeout(scaleTableTimer),scaleTableTimer=null;for(var a=0;a=a?-1==e.className.indexOf(" "+o)&&(e.className+=" "+o,getIsFirefox())&&(e.style.overflowY="scroll"):(e.className=removeClass(e.className,o),getIsFirefox()&&(e.style.overflowY="")),t=+pageWidth(),e.style.maxWidth=t<100?t="100%":t+"px")}function scrollDialogIfNecessary(e,t,i){scrollDialogIfNecessaryV2(e,t=void 0===t?!0:t,i=void 0===i?1:i)}function reScrollDialogIfNecessary(e,t){scrollDialogIfNecessary(e)}function scrollCurrentDialogIfNecessary(){var e;isDialogShowing()&&g_objCurrDialog&&(e=mjt_GetFirstChildWithNodeName(g_objCurrDialog,"FORM"))&&scrollDialogIfNecessary(e.id)}function disabledNoOpOnClickFunction(){return!1}function setDialogDisabledFlag(e,t){(e="uiv2dialogDiv"!==!e.className?e.querySelector(".uiv2dialogDiv"):e)&&(t?e.setAttribute("disabled",t):e.removeAttribute("disabled"))}function disableDialogButtonsOfDialog(e,t){if(e){setDialogDisabledFlag(e,!0);var i=findFirstDescendantWithAClass(e,["dialogBox","cgdialogBox","jtdialogBox","uiv2dialogBox","cguiv2dialogBox","jtuiv2dialogBox"]),a=findFirstDescendantWithAClass(e,["dialogHeader","cgdialogHeader","jtdialogHeader","uiv2dialogHeader","cguiv2dialogHeader","jtuiv2dialogHeader"]),o="";if(i&&a){stringStartsWith(i.className,"jtuiv2")?o="jtuiv2":stringStartsWith(i.className,"cguiv2")?o="cguiv2":stringStartsWith(i.className,"cg")?o="cg":stringStartsWith(i.className,"jt")?o="jt":stringStartsWith(i.className,"uiv2")&&(o="uiv2"),i.className=o+"disabledDialogBox",a.className=o+"disabledDialogHeader",g_bSkipNavWarning=!0;var r=e.childNodes[0];if((r=r&&!r.elements&&"form"!==r.tagName.toLowerCase()&&r.children&&0
'+htmlMultilineEncode(t)+"
","frmTmpMessage",{formTitle:a,contextDetailOrFnSubmit:{fnCancelOrClose:l?function(e){return setTimeout(function(){l({form:e,responseString:t,contextId:i})},0),1}:n?undefined:function(){return postErrorRefresh(),0}},hideOkButton:1,isSubdialog:isDialogShowing(),subdialogDismisalFocusFieldName:o||0,subdialogDismisalFocusFieldId:r||0,cssClassPrefix:s})}function rsCallbackIntermediary(e,t,i){var a,o=i.originalOptions||{},r=o.fnOnCheckResponseError;o.skipDisableDialogButtons||enableDialogButtons(),checkResponseForError(e)?(o=JSON.parse(e),(a=i.fnJSONCallback)&&a(o,{originalPayload:i.originalPayload,originalOptions:i.originalOptions,doingWhat:i.doingWhat,contextId:t})):r&&r(e,t,i)}function jsrsExecuteWithErrorP(e,t,i,a,o){a=a||{};var r=o||{},l='Executing "'+e+'" Command...',n=(i&&(l=i),r.messageCssClassPrefix),e=jsrsExecute(rsCallbackIntermediary,e,[escape(JSON.stringify(a))],r.rsErrorCallback||rsErrorCallbackShowErrorDialogAndRefresh,{showErrorInSubdialog:isDialogShowing(),errorDialogTitle:"Error "+l,errorSubdialogDismisalFocusFieldId:r.errorSubdialogDismisalFocusFieldId,errorSubdialogDismisalFocusFieldName:r.errorSubdialogDismisalFocusFieldName,forceNoRefreshOnErrorExecuting:r.forceNoRefreshOnErrorExecuting,fnPostErrorCallbackMessage:r.fnPostErrorCallbackMessage,originalOptions:o,originalPayload:a,fnJSONCallback:t,doingWhat:i,messageCssClassPrefix:n},0,1,r.overriddenRemoteScriptingTarget);return r.skipInfoMessage||displayTimedMessageP({msgHTML:htmlEncode(l)+"...",cssClassPrefix:n}),r.skipDisableDialogButtons||disableDialogButtons(),e}function hideContextMenu(){var e;return(g_currDialogIsSubmenuDialog||g_currDialogIsViewsList)&&(hideDialog(0,1),e=1),hideContextSubmenus()&&(e=1),e="undefined"!=typeof v2DisplayPan&&v2DisplayPan(0)?1:e}function addViewportResizeEventSync(e){document.addEventListener("ViewportResized",e,!1)}function dispatchViewportResizeEvent(){document.createEvent&&(g_resizeViewportEvent||(g_resizeViewportEvent=document.createEvent("Event")).initEvent("ViewportResized",!0,!0),setTimeout(function(){document.dispatchEvent(g_resizeViewportEvent)},0))}function resizeCurrentDialog(){g_objCurrDialog&&g_objCurrDialog.firstChild&&scrollDialogIfNecessary(g_objCurrDialog.firstChild.id)}function doResize(){hideMappingFO(),g_currDialogIsViewsList||hideContextMenu(),recalculatePageLayout(),scaleScrollingTableHeader(),Layout.updateSectionHeaderButtons(),resizeCurrentDialog(),ChartAdapter.resizeChart(),clearMoveMenuTimer(),setTimeout(moveMenu,0),g_objPicker&&isCalendarPopup(g_objPicker)&&doPositionPicker(),dispatchViewportResizeEvent()}function prepareForSubdialogDisplay(){g_objCurrDialog&&(null!==ieVersion&&ieVersion<7&&(g_objCurrDialog.style.visibility="hidden"),disableDialogButtons())}function prepareForStackedSubdialogDisplay(){g_objCurrDialog&&(null!==ieVersion&&ieVersion<7&&(g_objCurrDialog.style.visibility="hidden"),disableDialogButtons())}function prepareForStackedClientDialogDisplay(){prepareForStackedSubdialogDisplay()}function setFocusIfFocusable(e){var t=!1;if(e&&"none"!=e.style.display&&!e.disabled)if("INPUT"==e.nodeName&&"hidden"!=e.type||"SELECT"==e.nodeName||"BUTTON"==e.nodeName||"TEXTAREA"==e.nodeName){t=!0;try{e.focus(),e.select&&e.select()}catch(i){t=!1}}else if("A"==e.nodeName&&null===e.getAttribute("mjtfocusblocker")){t=!0;try{e.focus()}catch(a){t=!1}}return t}function findFirstFocusableItemWithOutParam(e,t,i,a,o,r){var l=null;if(null!==e){i=i||"uiv2dialogHeader"==e.className;for(var n,s=t?-1:1,c=e.childNodes,d=t?c.length-1:0;0<=d&&dbottomOfVisibleScreen()&&(i=bottomOfVisibleScreen()-t.offsetHeight),e+t.offsetWidth>rightOfVisibleScreen()&&(e=rightOfVisibleScreen()-t.offsetWidth),i"),n.addFlexibleRow({valueHTML:i}),n.showClientDialog()):(s.hideDialogOnSuccess&&hideDialog(),s.refreshOnSuccess&&refreshPageAndScrollPos(),c&&c(e,t),d=!0),d}function rsCallbackHandleStandardJSONResponseWithHideAndRefresh(e,t){var i=t.originalOptions||{};return(t.originalOptions=i).hideDialogOnSuccess=1,i.refreshOnSuccess=1,rsCallbackHandleStandardJSONResponse(e,t)}function rsCallbackProcessV2Dialog(e,t){var i=null,a=(t||{}).originalOptions||{};return rsCallbackHandleStandardJSONResponse(e,t)&&(e.formId?e.dialogContentAsString?(i=processSimpleDialogCallbackP(e.dialogContentAsString,{formId:e.formId,isSubdialog:a.isSubdialog,skipHideDialog:a.skipHideDialog,isStackedSubdialog:a.isStackedSubdialog,dismisalFocusFieldName:a.dismisalFocusFieldName,dismisalFocusFieldId:a.dismisalFocusFieldId,focusItemId:e.forceFocusItemId||undefined,center:a.v1CenterDialog}),a.fnProcessV2DialogOnSuccess&&a.fnProcessV2DialogOnSuccess(e,t,i)):(alert('Missing "dialogContentAsString" in JSON response to dialog request.'),consoleLog("Response:\r\n"+JSON.stringify(e,null,2))):(alert('Missing "formId" in JSON response to dialog request.'),consoleLog("Response:\r\n"+JSON.stringify(e,null,2)))),i}"undefined"==typeof Array.prototype.splice&&(Array.prototype.splice=array_splice),StackedSubdialog.prototype.getObjDialog=function(){return this.objDialog},StackedSubdialog.prototype.GetDialogId=function(){return this.dialogId},StackedSubdialog.prototype.hide=function(){this.objDialog&&(hideDialog(1),this.objDialog.innerHTML="",g_subdialogStack.splice(g_subdialogStack.length-1,1),removeNode(this.objDialog),this.objDialog=null,g_objCurrDialog=this.objBaseDialog,this.objBaseDialog=null,g_showDialogIsStackedSubdialog=0"))}function updateImageLOVsForFieldsIfNecessary(e,t,i){if(e&&t)for(var a=t.split(","),o=0;o'+e+"",t.originalOptions.formId,{hideOkButton:1,formTitle:"Search For...",focusFieldName:"searchTerm",focusFieldOnMobile:!0,suppressDialogConfirmer:!0,skipNavWarning:!0})}function showV2SearchDialog(){var e="frmSearch";isDialogShowing()||jsrsExecuteWithErrorP("Dialog2_GetV2SearchFields",rsCallbackGetV2SearchFields,"Getting Search Dialog",{formId:e,searchTerm:escape(""),typeAheadAdditionalClasses:"typeahead-with-borders",isForToolbar:1,searchCategorySelectId:"searchCategoryDialogSelectId",hiddenResizeSelectId:"dialogHiddenResizeSelect",hiddenResizeOptionId:"dialogHiddenResizeOption",idSuffix:"dialog",hiddenInputId:"dialogSearchCategoryId",searchInputName:"dialogSearchTerm"},{formId:e,skipInfoMessage:!0})}function getWebPage(){if("undefined"!=typeof g_currWebPageId&&g_currWebPageId)return g_currWebPageId;for(var e,t,i=window.location.search,a=(i=i.substr(1,i.length)).split("&"),o=0;o'+htmlMultilineEncode(e)+""})}function ShowSubmenuDialog(e,t,i,a){if(!isDialogShowing()){if(""+t==""||g_objCurrDialogId!=t){hideDialog();for(var o=getObj("submenuDlg"),r="",l=0;l
':''+i[l]+"";o.innerHTML=r;var n=getEventElement(e);return"IMG"==n.nodeName.toUpperCase()&&(n=n.offsetParent),o.style.top=n.offsetHeight+"px",o.style.left=n.offsetLeft+"px",o.style.visibility="visible",o.style.zIndex=200,cancelEvent(e),g_objCurrDialog=o,g_objCurrDialogId=t,!(g_currDialogIsSubmenuDialog=!0)}hideDialog()}}function rsCallbackChangePasswordDialog(e,t){e=processSimpleDialogCallback(e,"changePassword","oldPwd",!1,!1,!0);e&&(e.oldPwd.value="",e.newPwd.value="",e.confPwd.value="")}function ShowChangePasswordDialog(){jsrsExecute(rsCallbackChangePasswordDialog,"Dialog_GetChangePasswordDialog",[],hideTimedMessage),displayTimedMessage("Getting password dialog...")}function rsCallbackSwitchedToUXV2(e){checkResponseForError(e)&&(displayTimedMessage("Refreshing page..."),window.location=pageMySettings)}function isEmptyResponse(e){return" "==e||""===e}function rsCallbackDisplayResponse(e,t,i){if(checkResponseForError(e)){if(i=i||{},!isEmptyResponse(e)){var a,o=i.clientDialogTitle||"";if(o)return a=htmlMultilineEncode(e),hideDialog(),void(i.fnOk?showInfoDialogWithConsequenceP({valueHTML:a,formTitle:o,fnConsequence:function(e){i.fnOk(e,i.fnOkParams)}}):showInfoDialog(a,o));alert(e)}hideDialog()}}function postChangePassword(){("1"==getObj("changePassword").forceChangePassword.value?refreshPageAndScrollPos:hideDialog)()}function rsChangeSelfPassword(e){checkResponseForError(e)&&(isEmptyResponse(e)?postChangePassword():showInfoDialogWithConsequenceP({formTitle:" . . . ",rawValue:e,fnConsequence:postChangePassword}))}function SubmitChangePassword(){var e=getObj("changePassword"),t=e.oldPwd.value,i=e.newPwd.value,a=e.confPwd.value;e.forceChangePassword.value;i!=a?showInfoDialog("Passwords do not match!","Mismatched Passwords",1,"confPwd"):validateClientSidePasswordVals(e.userName,e.newPwd,function(e,t){showInfoDialog(e,"Error Validating New Password",1,"validatePwd")})&&(a="Updating password...",jsrsExecute(rsChangeSelfPassword,"Admin_ChangeSelfPassword",[escape(t),escape(i)],rsErrorCallbackShowErrorDialogAndRefresh,{showErrorInSubdialog:1,errorDialogTitle:"Error "+a},0,1),displayTimedMessage(a+"..."),disableDialogButtons())}function CancelChangePassword(){var e=getObj("changePassword");"1"==e.forceChangePassword.value?(alert("You must change your password."),setFocus(e.oldPwd)):hideDialog()}function scrollParentDialogIfNecessary(e,t,i){for(void 0===t&&(t=1),0;null!==e;){if(null!==getObj(e.id+"DialogContentDiv")){scrollDialogIfNecessary(e.id,t,1);break}e=e.parentNode}}function rescrollParentDialogIfNecessary(e){for(;null!==e;){if(null!==getObj(e.id+"DialogContentDiv")){reScrollDialogIfNecessary(e.id);break}e=e.parentNode}}function showAndPositionButtonPopup(e,t,i,a,o,r){hideDialog();var l=getObj("contextMenuPopUp"),i=(l.innerHTML=i,getObj(t)),t=posTop(i)+i.offsetHeight,i=posLeft(i),n=mjtPageXOffset(),s=mjtPageYOffset(),c=pageWidth(),d=pageHeight(),u=l.offsetWidth,g=l.offsetHeight,o=(o&&s+dSelected Only"),this.allowSearch&&(d='",u+=cdBuildFAFontIconButton({buttonId:"btnSearchForCart",doubleQuoteEncodedOnClickJS:"performCartSearch('' + form.id + '');return false;",fontId:FontIconId_Enum.fiiMagnifyingGlass})),this.activeOnlyLabel&&(a=this.getActiveOnlyCheckboxId(),o=this.isActiveOnlyChecked(),m="performCartToggledActiveOnly('"+n.id+"');",g=generateCheckboxDisplayedAsToggle({fieldId:a,fieldName:a,activeOnlyLabelText:this.activeOnlyLabel,isChecked:o,onclickScript:m,tabIndex:"0"})))),r+='',!this.singleSelect&&e(this)?r+='":(l||c)&&(r+='"),r+='",g&&(r+='\n"),this.cartInfoElement.innerHTML=r+="
'+p+b+"
'+l+""+c+"
'+d+u+"
'+g+"
"}},SimpleShoppingCart.prototype.getActiveOnlyCheckboxId=function(){return this.form.id+".chkActiveOnly"},SimpleShoppingCart.prototype.isActiveOnlyChecked=function(){var e,t=!1;return t=this.activeOnlyLabel&&!this.doShowSelectedOnly()&&(e=this.getActiveOnlyCheckboxId(),t=this.activeOnlyCheckboxDefaultValue,e=getObj(e))?e.checked:t},SimpleShoppingCart.prototype.updateFromCurrentCheckboxList=function(a,e){e=e||"";callFunctionOnAllFieldsWithName(this.form,function(e,t){var i=a(t.value);e.updateItemCheckState(i,t.checked)},this,"chkRow"+e),this.cartField.value=this.getSerializedData(),this.updateCartInfo()},SimpleShoppingCart.prototype.updateCheckBoxesAccordingToCart=function(a){this.singleSelect||(callFunctionOnAllFieldsWithName(this.form,function(e,t){var i=a(t.value),i=e.getDataIndexForId(i);t.checked=null!==i},this,"chkRow"+this.cbNameSuffix),this.form["chkRow"+this.cbNameSuffix]&&highlightCheckedRows(this.form,this.cbNameSuffix))},SimpleShoppingCart.prototype.doShowSelectedOnly=function(){return this.showingSelectedOnly&&this.allowSelectedOnly},SimpleShoppingCartContentDescriptor.prototype.getIdList=function(){return this.idList},SimpleShoppingCartContentDescriptor.prototype.getNames=function(){return this.names},SimpleShoppingCart.prototype.recordComparator=function(e,t,i){e=i(this.data[e]).toLowerCase(),t=i(this.data[t]).toLowerCase();return t
';function ContextMenu(e){var n=this,t=(e="string"==typeof e?{menuClasses:e}:e||{}).menuClasses;this.styleInactiveItems=e.styleInactiveItems,this.MenuItemCount=0,this.Rows=[],this.ListItems=[],t&&(this.MenuClasses=t),this.AddScriptItem=function(e,t,i,a,o){n.AddHTMLTitledScriptItem(htmlEncode(e),t,i,a,o)},this.AddHTMLTitledScriptItem=function(e,t,i,a,o){this.Rows[this.MenuItemCount]='"+e+"",this.MenuItemCount++},this.AddMenuItemP=function(e){var t=e.rawText||"",t=e.itemHTML||htmlEncode(t),i=(e.inactive?"":e.doubleQuoteReadyScript)||"",a=!i,o=e.isSubmenu,r=e.altSubmenu,l=e.checked,n=e.doubleQuoteReadyItemTitle||"",n=n?'data-mwtooltip="'+n+'" ':"",s="",c=e.menuItemId,c=c?' id="'+c+'"':"",d=e.isHelpTextItem,u=e.hide?' style="display:none"':"",g="",m=e.leadItemIconId,p="",b=trim(a&&this.styleInactiveItems?" clsInactiveMenuRow":""),b=b?' class="'+b+'"':"",d=' class="'+("contextMenuRow"+(e.isHeader?" contextMenuHeader":"")+(d?" clsMenuHelpText":"")+(e.isFullWidthHeader?" contextMenuFullRowHeader":""))+'"',h=e.additionalIconClasses||"";m&&(p='&#'+getRawFontId(m)+";"),l&&(s='&#'+getRawFontId(FontIconId_Enum.fiiCheck)+";"),o&&(g='&#'+getRawFontId(FontIconId_Enum.fiiRightChevron)+";"),r&&(g='&#'+getRawFontId(r.fontId||FontIconId_Enum.fiiRightChevron)+";"),this.Rows[this.MenuItemCount]=""+("
"+(p?'':"")+p+t+(p?"":"")+"
")+s+g+"",this.MenuItemCount++},this.AddSubmenuScriptItem=function(e,t){this.Rows[this.MenuItemCount]=''+htmlEncode(e)+'  ',this.MenuItemCount++},this.AddHTMLTitledSubmenuScriptItem=function(e,t){this.Rows[this.MenuItemCount]=''+e+'  ',this.MenuItemCount++},this.AddHTMLTitledLinkItem=function(e,t,i,a){this.Rows[this.MenuItemCount]='",this.MenuItemCount++},this.AddLinkItem=function(e,t,i,a){this.AddHTMLTitledLinkItem(htmlEncode(e),t,i,a)},this.AddInactiveHTMLTitledItem=function(e,t){this.Rows[this.MenuItemCount]='',t&&(this.Rows[this.MenuItemCount]+='&#'+FontIconId_Enum.fiiCheck+";"),this.Rows[this.MenuItemCount]+=e+"",this.MenuItemCount++},this.AddInactiveItem=function(e,t){n.AddInactiveHTMLTitledItem(htmlEncode(e),t)},this.AddSeparator=function(){this.Rows[this.MenuItemCount]=g_strSeparatorContent,this.MenuItemCount++},this.AddSeparatorIfNecessary=function(){this.MenuItemCount&&this.Rows[this.MenuItemCount-1]!=g_strSeparatorContent&&this.AddSeparator()},this.GetHTML=function(e){e=e?"":this.MenuClasses;return'"+this.Rows.join("")+"
"},this.Show=function(e,t,i,a){if(isDialogShowing()){for(var o=!1,r=getEventElement(e);r;){if(r==g_objCurrDialog||r==oPopup){o=!0;break}r=r.parentNode}if(!o)return}else hideNonDialog();var l,n;0!==this.MenuItemCount&&((l=getObj("contextMenuPopUp")).fnOnHide="function"==typeof a?a:null,l.style.top="0px",l.style.left="0px",l.innerHTML=this.GetHTML(),this.MenuClasses?l.className="dialogDiv"+(this.MenuClasses?" "+this.MenuClasses:""):l.className="dialogDiv",a=eventPageY(e)+2,n=eventPageX(e)+2,isNaN(t)||isNaN(i)||(n=t,a=i),a+l.offsetHeight>bottomOfVisibleScreen()&&(a=a-l.offsetHeight-4),n+l.offsetWidth>rightOfVisibleScreen()&&(n=n-l.offsetWidth-4),abottomOfVisibleScreen()&&(r=bottomOfVisibleScreen()-o.offsetHeight),l+o.offsetWidth>rightOfVisibleScreen()&&(l=posLeft(e)-o.offsetWidth),rPage Number:',"GotoPageNum","Go To Page Number","pageNumber",{fnSubmit:SubmitGotoPageNum},0,0,0,0,a?1:0)}function SubmitGotoSelectionListPageNum(){submitGotoPageNumUsingFunction()}function csShowFunctionGotoPageNum(e,t,i,a){var o=isDialogShowing(),r=(r=(r=(r=(r="")+("")+"")+("")+(""))+""+"Page Number:")+("")+"";showDialogP(r,"GotoPageNum",{formTitle:"Go To Page Number",skipCentering:1,useStackedDialog:1,contextDetailOrFnSubmit:{fnSubmit:SubmitGotoPageNum,fnCancelOrClose:CancelGotoPageNum,callbackData:{}},isSubdialog:o})}function ShowFunctionGotoPageNum(e,t,i,a){var o=isDialogShowing();jsrsExecute(rsCallbackProcessSimpleDialogWithParams,"Dialog_GetGotoPageNumByFunctionDialog",[t,a,i,o?1:0],hideTimedMessage,{useSavedEventPagePosition:!0,formId:"GotoPageNum",isStackedSubdialog:o?1:0}),displayTimedMessage("Getting Goto Page Dialog...")}function SortPageWorkhorse(e){isDialogShowing()||(saveScrollPos(),displayTimedMessage("Re-sorting..."),window.location=e)}function buildSortPageWorkhorse(e,t,i,a,o){return!!t?"SortPageWorkhorse(unescape('"+escape(t+e)+"'))":i+"('"+e+"', "+a+", unescape('"+escape(o)+"'))"}function promptToSortPage(event,addPreSortColumnMenuItemsFunction_,addColumnMenuItemsFunction_,columnParams_,sortBy_,omitAscendingOption_,omitDescendingOption_,url_,sortFunction_,pageNum_,searchTerm_,tableId_){var ascendingSortBy,descendingSortBy,enableDefault_=!1,descendingSortBy=0===sortBy_.indexOf("a")?(ascendingSortBy=sortBy_,"d"+sortBy_.substring(1)):(ascendingSortBy="a"+sortBy_.substring(1),sortBy_);if(enableDefault_&&g_isDoubleClickEvent&&!addPreSortColumnMenuItemsFunction_){if(!omitAscendingOption_)return void eval(buildSortPageWorkhorse(ascendingSortBy,url_,sortFunction_,pageNum_,searchTerm_));if(!omitDescendingOption_)return void eval(buildSortPageWorkhorse(descendingSortBy,url_,sortFunction_,pageNum_,searchTerm_))}var theMenu=new ContextMenu;addPreSortColumnMenuItemsFunction_&&addPreSortColumnMenuItemsFunction_(theMenu,columnParams_,!0)||(omitAscendingOption_||theMenu.AddHTMLTitledScriptItem("↑ Sort ascending",buildSortPageWorkhorse(ascendingSortBy,url_,sortFunction_,pageNum_,searchTerm_),enableDefault_&&!addPreSortColumnMenuItemsFunction_),omitDescendingOption_||theMenu.AddHTMLTitledScriptItem("↓ Sort descending",buildSortPageWorkhorse(descendingSortBy,url_,sortFunction_,pageNum_,searchTerm_),enableDefault_&&!addPreSortColumnMenuItemsFunction_&&omitAscendingOption_),addColumnMenuItemsFunction_&&addColumnMenuItemsFunction_(theMenu,columnParams_,!0))||0",""!==populateAttrInitValue[a])&&(getObj("Attr"+a+"Value").value=populateAttrInitValue[a]),void clearCachedAttrValsForAttrNum(a)}function clearProductAttributeSelectionRSCalls(){for(var e=1;e<=5;e++)populateAttrContextId[e]&&mjtrsAbort(populateAttrContextId[e]),populateAttrContextId[e]=""}function getProductAttributesSelections(e,t,i,a,o,r,l,n,s,c,d){if(d){if(d.getAttribute("data-mjtSkipUnchangedProductLastVal")==t)return;d.setAttribute("data-mjtSkipUnchangedProductLastVal",t)}var u=t.split("?"),g=(s=void 0===s||s?1:0,null);if(a&&(g=a.split("?")),null===s&&(s=1),clearProductAttributeSelectionRSCalls(),o&&r)return getQuoteLineProductAttrSelV2(u,g,e,i,o,r);for(var m=1;m<=5;m++){var p=!1,b=getObj(e+m+"Type"),h=getObj(e+m+"Value"),f=(i+2*m-1Are you sure you want to create "+a+" "+htmlEncode(t)+" with the same name?","Duplicate "+t,{},1))),!1}function rsCallbackValidateNewJobName(e){var t=getObj("createJob"),i=t.jobProcessName.value,a=trim(t.jobName.value),o=t.customerId.value,r=t.jobTemplateId.value;enableDialogButtons(),setFocus(t.jobName),confirmCreateDuplicateJobIfNecessary(e,i,function(){var e="Creating New "+i;jsrsExecute(rsCallbackSuccessfullyCreatedNewJob,"Job_CreateJob",[escape(a),o,r,t.jobProcessId.value,t.defaultSalespersonId?t.defaultSalespersonId.value:"",t.defaultSalespersonId?0:1],rsErrorCallbackShowErrorDialog,{jobProcessId:t.jobProcessId.value,showErrorInSubdialog:1,errorDialogTitle:"Error "+e},0,1),displayTimedMessage(htmlEncode(e)+"..."),disableDialogButtons()})}function SubmitCreateNewJob(){var e=getObj("createJob"),t=e.jobProcessName.value,i=new FormValidator;i.CSValidateRequiredField(e.jobName,"Please enter a "+t+" Name")&&(i.CSValidateRequiredField(e.customerId,"Please select an Account","customerName")?(jsrsExecute(rsCallbackValidateNewJobName,"Job_GetJobByName",[escape(e.jobName.value),e.customerId.value],enableDialogButtons),displayTimedMessage("Validating "+htmlEncode(t)+" Name..."),disableDialogButtons()):setFocus(e.customerName))}function rsCallbackTemplateOptions(e,t){g_templateContextId==t&&checkResponseForError(e)&&(getObj("createQuoteTemplates").innerHTML="")}function getDummyTemplateCBOPlaceholder(){return''}var g_lastQuotePriceType=null;function changeQuotePriceType(e){e?setTimeout("changeQuotePriceType( false);",0):(e="",e=(getObj("createQuote").createQuotePriceTypeId||getObj("createQuotePriceTypeId")).value,null!==g_lastQuotePriceType&&g_lastQuotePriceType==e||((g_lastQuotePriceType=e)?(g_templateContextId="",getObj("createQuoteTemplates").innerHTML="Loading..."+getDummyTemplateCBOPlaceholder(),g_templateContextId=jsrsExecute(rsCallbackTemplateOptions,"Quote_GetPriceTypeTemplateOptionElements",e,hideTimedMessage),displayTimedMessage("Getting Quote Templates...")):getObj("createQuoteTemplates").innerHTML='No Price list Selected'+getDummyTemplateCBOPlaceholder()))}function rsCallbackPriceTypeOptions(e,t){g_priceTypeContextId==t&&checkResponseForError(e)&&(getObj("createQuotePriceTypes").innerHTML="",changeQuotePriceType(!(g_lastQuotePriceType=null)))}function changeQuoteCustomer(){for(var e,t=getObj("createQuote"),i=QuoteType_Enum.mjtAccountQuote,a=0;aQuotes can't be added to inactive accounts.","Account Is Inactive")}function rsCallbackViewNewCGQuote2(e,t){t=((t||{}).originalOptions||{}).expectedIdFieldName||"id";hideDialog(),window.location=pageCGEditQuote+e[t]}function submitCreateNewCGQuote(){var e=getObj("createQuote"),t=new FormValidator;if(t.CSValidateRequiredField(e.quoteName,"Please enter a Quote Name")){for(var i,a=!1,o="1",r=0;rPrice List:",showSubdialog(a,"frmAssignPLToAcount","Assign Price List To Account","cboPLForAccount",{fnSubmit:submitAssignCGToAccount,callbackData:{accountId:e,arrPLs:l}},0,0,0,0,"cboPriceList",0,0,g_isCounterGo?"":"cg")}else showInfoDialog("There are no active Price Lists that haven't already been assigned to this account.","No Active Price Lists Available",1)}}function assignPLToAccountFromCreateCGQuote(e){jsrsExecute(rsCallbackGetCGPLsToAssignToAccount,"CG_GetCGPLsToAssignToAccount",[e],enableDialogButtons,{accountId:e}),displayTimedMessage("Getting Price Lists available to be added to the account"),disableDialogButtons()}function changedPLOption(){var e=getObj("createQuote"),t=e.cboPriceList;t.options[t.selectedIndex].getAttribute("data-mjtassignpl")&&(t.selectedIndex=0,assignPLToAccountFromCreateCGQuote(e.accountId.value))}function rsCallbackCGPriceListOptions(e,t){var i,a;g_priceTypeContextId==t&&checkResponseForError(e)&&((t=getObj("createCGQuotePriceLists")).innerHTML="",g_lastQuotePriceType=null,(i=(a=(e=getObj("cboPriceList")).options).length)<2)&&(e.style.display="none",e=document.createElement("div"),t.appendChild(e),i?e.innerHTML=htmlEncode(a[0].innerHTML):(e.innerHTML=i?htmlEncode():"No Price List Found For Selected Account",e.className="helpText"))}function changeCGQuoteAccount(){for(var e,t=getObj("createQuote"),i=(t.accountId?t.accountId.value:"")||(t.accountSelect?t.accountSelect.value:""),a=!1,o="1",r=0;rNo Account Selected'+getPriceTypesCBOPlaceholder():(g_priceTypeContextId="",getObj("createCGQuotePriceLists").innerHTML="Loading..."+getPriceTypesCBOPlaceholder(),g_priceTypeContextId=jsrsExecute(rsCallbackCGPriceListOptions,"CG_GetAccountCGPriceListOptionElements",[e?i:""],hideTimedMessage),displayTimedMessage("Getting Price List options"))}function changeCGQuoteType(){for(var e,t=getObj("createQuote"),i=QuoteType_Enum.mjtAccountQuote,a=0;aCG Quotes can't be added to inactive accounts.","Account Is Inactive")}function getJTQuoteUrl(e){return pageQuoteDetail+e}function getJTQuoteRevisionUrl(e){return pageQuoteDetail+"?revId="+e}function rsCallbackViewNewQuote(e){checkResponseForError(e)?(hideDialog(),window.location=getJTQuoteUrl(e)):enableDialogButtons()}function SubmitCreateNewQuote(){var e=getObj("createQuote"),t=new FormValidator;if(t.CSValidateRequiredField(e.quoteName,"Please enter a Quote Name")){for(var i="1",a=0;a"+e+"":getObj("createPurchaseOrderCostTypes").innerHTML="(No active cost lists for this supplier)")}function rsCallbackShowNewSupplierSubdialog(e){processSimpleDialogCallback(e,"createSupplier","name",!0,!0)}function showNewSupplierSubdialog(e){e=getObj(e);"-1"==e.supplierId.value&&(selectFirstOption(e.supplierId),jsrsExecute(rsCallbackShowNewSupplierSubdialog,"Dialog_GetNewSupplierSubdialog",[],enableDialogButtons),displayTimedMessage("Getting New Supplier Subdialog"),disableDialogButtons())}function changePOSupplier(){var e=getObj("createPurchaseOrder");"-1"==e.supplierId.value?showNewSupplierSubdialog(e.id):""!==e.supplierId.value?(g_costTypeContextId="",getObj("createPurchaseOrderCostTypes").innerHTML="Loading...",g_costTypeContextId=jsrsExecute(rsCallbackCostTypeOptions,"PO_GetSupplierCostTypeOptionElements",e.supplierId.value)):getObj("createPurchaseOrderCostTypes").innerHTML=""}function rsCallbackNewPODialog(e,t){checkResponseForError(e)&&(hideDialog(),getObj("dynamicDialog").innerHTML=e,changeGeneratePONumber(),changePOSupplier(),positionAndShowDialog(!1,(e=getObj("createPurchaseOrder")).parentNode,!1,e.supplierId,!0))}function ShowNewPODialog(e,t,i){var a="Getting New Purchase Order Dialog";jsrsExecute(rsCallbackNewPODialog,"Dialog_GetNewPODialog",[t,i],rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:"Error "+a},0,1),displayTimedMessage(a+"...")}function buildPageURLForPO(e){return pagePODetail+e+"?"}function rsCallbackViewNewPO(e){checkResponseForError(e)&&(g_bSkipNavWarning=!0,window.location=buildPageURLForPO(e))}function SubmitCreateNewPO(){var e=getObj("createPurchaseOrder"),t=new FormValidator;if(t.CSValidateRequiredField(e.supplierId,"Please select a Supplier")){var i="";if(!e.generatePONumber.checked){if(!t.CSValidateRequiredField(e.poNumber,"Please enter a PO Number"))return;i=e.poNumber.value}"-1"==e.costTypeId.value?(alert("No active cost lists for this supplier."),setFocus(e.supplierId)):t.ValidateRequiredField(e.shipToLocationId,"Please select a Ship-To Location")&&(t="",t=(e.costTypeId||getObj("costTypeId")).value,jsrsExecute(rsCallbackViewNewPO,"PO_CreatePurchaseOrder",[e.supplierId.value,e.jobId.value,t,e.shipToLocationId.value,escape(i)],enableDialogButtons),displayTimedMessage("Creating Purchase Order..."),disableDialogButtons())}}function submitDuplicatePO(){var e,t,i,a=getObj("createPurchaseOrder")||getObj("duplicatePO"),o=new FormValidator,r="";if(!a.generatePONumber.checked){if(!o.CSValidateRequiredField(a.poNumber,"Please enter a PO Number"))return;r=a.poNumber.value}o.ValidateRequiredField(a.shipToLocationId,"Please select a Ship-To Location")&&o.CSValidateDateField(a.orderDate,"Order Date",!0)&&o.CSValidateDateField(a.expectedReceiptDate,"Expected Delivery Date",!0)&&o.CSValidateNumberField(a.taxPct,"Tax Rate %",!0)&&o.CSValidateAttributeFields(a)&&(e=o.ModifiedFieldIds,o=o.ModifiedFieldValues,t=getListOfCheckedRowValues(a,0),i="Creating Duplicate Purchase Order",jsrsExecute(rsCallbackViewNewPO,"PO_DuplicatePO",[a.poId.value,escape(r),a.supplierId.value,a.costListId.value,a.shipToLocationId.value,getDateForUrlParam(a.orderDate.value),getDateForUrlParam(a.expectedReceiptDate.value),trim(a.taxPct.value),escape(a.description.value),escape(e),escape(o),escape(t)],rsErrorCallbackShowErrorDialog,{showErrorInSubdialog:1,errorDialogTitle:"Error "+i},0,1),displayTimedMessage(i+"..."),disableDialogButtons())}function rsCallbackNewApptDialog(e,t){processSimpleDialogCallback(e,"createAppt","apptName",!0)}function showNewApptDialog(e,t,i,a){jsrsExecute(rsCallbackNewApptDialog,"Dialog_GetNewApptDialog",[getDateForUrlParam(t),i,a],rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:"Error Getting New Appointment Dialog"},0,1),displayTimedMessage("Getting Appointment Dialog...")}function SubmitCreateNewAppt(){var e=getObj("createAppt"),t=new FormValidator,i=e.recurringId.value;if(t.CSValidateRequiredField(e.apptName,"Please enter a Name")&&t.CSValidateDateField(e.startDate,"Start Date",!1)&&validateDurationContents(e.schedDuration,"Duration")&&validateTimeContents(e.schedTime,"Time")){if(i){t=i.split("?");if(t.length&&2'+htmlMultilineEncode('The quote, "'+a+'",\nhas already been emailed'+(1==e?"":" "+e+" times")+'.\n\nAre you sure you want to delete it?"')+"",i.promptingToIgnoreEmails=1):o='Are you sure you want to delete the quote, "'+htmlEncode(a)+'"?',displaySimpleConfirmationDialogP(postConfirmationDeleteCGQuote,o,{formTitle:"Delete Quote",okButtonDisplayText:"Delete",contextDetail:i}))}function confirmDeleteCGQuote(e,t,i){hideDialog();var a="Checking Quote Dependencies";jsrsExecute(rsCallbackConfirmDeleteCGQuote,"CG_CheckCGQuoteDependencies",e,rsErrorCallbackShowErrorDialogAndRefresh,{quoteId:e,quoteName:t,url:i||0,errorDialogTitle:"Error "+a},0,1),displayTimedMessage(a+"...")}function submitCGQuoteSummaryOptions(){var e,t,i,a=getObj("viewOptions"),o=getURLEncodedFiltersFromForm(a);(new FormValidator).CSValidateNumberField(a.pageSize,"Rows per page",!0)&&(e=pageCGQuotes+"&view=0",""!==trim(a.priceListId.value)&&(e+="&priceList="+trim(a.priceListId.value)),""!==trim(a.salespersonId.value)&&(e+="&salesperson="+trim(a.salespersonId.value)),a.accountId&&a.accountId.value&&(e+="&accountId="+a.accountId.value),i=a.sortColumnName.value,t=getObj("optionsFieldCart"),t=ToolMan.dragsort().encodeNestedListStructure(t,jobProcessCartStripper),-1<(i=ToolMan.dragsort().flatIndexOfItem(t,i))&&(e+="&sort="+a.sortDirection.value+i),""!==t&&(e+="&cols="+t),""!==trim(a.pageSize.value)&&(e+="&pageSize="+trim(a.pageSize.value)),""!==o&&(e+="&filters="+o),a.currentViewId&&a.currentViewId.value&&""!==trim(a.currentViewId.value)&&(e+="&mrv="+trim(a.currentViewId.value)),g_bSkipNavWarning=!0,disableDialogButtons(),displayTimedMessage("Updating Quote Options..."),window.location=e)}function showCGQuoteSummaryOptions(e,t,i,a,o,r,l,n,s,c){c=c||"",showOptionsDialog("Dialog_GetCGQuotesOptionsDialog",[escape(t),escape(i),escape(a),escape(o),escape(r),l?1:0,escape(n),s,c])}function changePrintQuoteType(){var e=getObj("printableQuote");if(e.printTypeObject){for(var t=e.printTypeObject[0].checked,i=0;i'+i+''+a+"":i+a;i?(o.addFlexibleRow({valueHTML:i='"}),e?o.addFlexibleFieldRow({rawLabel:"Print As",valueHTML:''}):(o.addFlexibleFieldRow({rawLabel:"Print As",valueHTML:cdBuildRBP("docType","printTypePDF","PDF",{checked:!0,fieldValue:"pdf"}),hideRow:!0}),o.addTextFieldRow("chkMakeDefault",{fieldValue:"1",hideRow:1})),(a=o.showClientDialog())&&(mjtElemData(a,"quoteId",t.quoteId),mjtElemData(a,"quoteRevisionId",t.quoteRevisionId),changePrintQuoteType())):showInfoDialog("There are no active Forms available for printing a quote.","No Active Forms")}function showPrintableQuoteRevisionV2(e,t){hideDialog(),jsrsExecuteWithErrorP("Dialog2_GetPrintableQuoteRevisionInfoV2",rsCallbackHandleStandardJSONResponse,"Getting Printable Quote Revision Info",{quoteId:e,quoteRevisionId:t},{fnOnSuccess:rsCallbackProcessPrintableQuoteRevisionInfoV2})}function getPrintableQuoteSelections(){var e=getObj("printableQuote"),t={quoteId:mjtElemData(e,"quoteId"),makeDefault:e.chkMakeDefault&&e.chkMakeDefault.checked,isPacket:!1,packetId:"",formId:""},e=e.cboFormOrPacket.value.split(":");return t.isPacket="P"==e[0],1
",s=0;s 
'+htmlEncode(r[s].quoteName)+"";r.length
(showing quotes 1-'+r.length+" of "+l+")"),n+="",showComplexInfoDialog(n,"Cannot delete price list",null,null,null,!0)}else e?(n='
'+htmlMultilineEncode('The Price List, "'+a+'",\nis associated with '+e+" Account"+(1==e?"":"s")+'.\n\nAre you sure you want to delete it?"')+"
",i.promptingToIgnoreAccountPriceLists=1):n='Are you sure you want to delete the Price List, "'+htmlEncode(a)+'"?',displaySimpleConfirmationDialogP(postConfirmationDeleteCGPriceList,n,{formTitle:"Delete Price List",okButtonDisplayText:"Delete",contextDetail:i})}}function confirmDeleteCGPriceList(e,t){hideDialog(),jsrsExecute(rsCallbackConfirmDeleteCGPriceList,"CG_CheckCGPriceListDependencies",e,hideTimedMessage,{priceListId:e,priceListName:unescape(t)}),displayTimedMessage("Checking Price List Dependencies...")}function sortCGPriceLists(e,t,i){var a=getObj("frmSelectPriceLists"),o=reconstructSimpleShoppingCart(a.id),r=o.doShowSelectedOnly()?1:0,o=o.getContentDescriptor().getIdList();jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"CG_GetSelectCGPriceListsTable",[a.id,a.parentFormId.value,escape(o),e,t,r],enableDialogButtons,{formId:a.id,tableId:a.id+"_priceListTable"}),displayTimedMessage("Getting "+getPrefixedCGPLString()+" Table..."),disableDialogButtons()}function searchOrSelectedCGPriceLists(e){sortCGPriceLists("",0,"")}function rsCallbackGetSelectCGPriceListsDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectPriceLists",null,!1,i.dismisalFocusFieldName,null,!0);e&&(getObj(e.id+"_priceListTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"cartInfoSpan",searchOrSelectedCGPriceLists,!1,!0,!1,null,null).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectCGPriceListsDialog(e,t,i){var a=getObj(t),a=getCompoundSelectionValue(a.priceListId,a.priceListIdSelect);jsrsExecute(rsCallbackGetSelectCGPriceListsDialog,"CG_GetSelectCGPriceListsDialog",[t,escape(a)],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select "+getPrefixedCGPLString()+" Dialog..."),disableDialogButtons()}function submitSelectCGPriceLists(e){submitSelectCustomCompoundSelect(e,"priceList")}function MoveUpItemsInList(e){for(var t,i=1;i(i=i<100?100:i))&&(e.style.height=i+"px",e.className="contextMenuContentScrolling")}function scrollChangeViewMenuIfNecessary(){scrollButtonMenuIfNecessary("ChangeViewMenuDiv")}function showAndPositionViewPopup(e,t,i){showAndPositionButtonPopup(e,"btnShowViews",t,i),scrollChangeViewMenuIfNecessary()}function ShowChangeViewDialog(e,t,i,a,o){var r;isDialogShowing()||(o=o||"",r="Getting Select View Dialog",jsrsExecute(rsCallbackProcessSimpleDialogWithParams,"Dialog_GetUIV2ChangeViewDialog2",[t,i,escape(a),o],rsErrorCallbackShowErrorDialogAndRefresh,{formId:"frmSelectView",errorDialogTitle:"Error "+r},0,1),displayTimedMessage(r+"..."))}function changedSelectViewSearchFieldTimer(){var e,t,i=getObj("frmSelectView"),a=i?i.pageViewSearchText:0,o=a?a.value.toLowerCase():0,r=a?a.getAttribute("data-lastVal"):0,l=1,n=[];if(r!=o){for(e=1;;){if(!getObj("pageViewSelectionSectionHeader"+e))break;n[e]=0,++e}a.setAttribute("data-lastVal",o);for(var s=0,l=1;;){if(!(t=getObj("selViewRow"+l)))break;var c,d=0<=(c=getObj("selViewContent"+l)).getAttribute("data-name").toLowerCase().toLowerCase().indexOf(o);t.style.display=d?"":"none",d&&(n[e=c.getAttribute("data-sectionIdx")]=1,s++),++l}r=getObj("viewsDialogNoViewsMatchText");for(0===s?!r&&((r=document.createElement("div")).id="viewsDialogNoViewsMatchText",r.className="helpText",r.innerHTML="There are no views that match the search criteria.",a=i.querySelector(".view-search"))&&a.appendChild(r):r&&r.remove(),e=1;e"+htmlEncode(r)+""):(c&&(c+=""),r=a.innerText,c+=''));c?(c+="",t=cdBuildReadOnlyFieldRowP({rawLabel:"Default View",valueHTML:'"}),showDialogP(t,"frmSetDefaultView",{formTitle:"Select Default View",focusFieldName:"cboSetDefView",focusFieldOnMobile:1,okButtonDisplayText:"Save",contextDetailOrFnSubmit:{fnSubmit:submitSelectDefaultView,callbackData:{}},isSubdialog:1})):showInfoDialog("Either there are no views defined, or you've filtered them all out.","No Views Avaialable",1)}function JobProductMenu(e,t,i,a,o,r){var l=new ContextMenu;1==r&&jtHasAccess(JTSecuredObject_Enum.mjtInventory,AccessRight_Enum.mjtARRead)&&(l.AddLinkItem("View Current Inventory",pageInventoryDetail+"&variantId="+i),l.AddLinkItem("View Inventory Transactions",pageInventoryTxns+"&variantId="+i)),l.Show(e)}function getSerialNumberUrl(e){return pageSerialNumberDetail+e}function rsCallbackEditSerialNumberDialog(e,t){updateAttributeLOVsIfNecessary(processSimpleDialogCallback(e,"editSerialNumber",null,!0))}function showEditSerialNumber(e,t){var i="Getting Edit Serial Number Dialog";jsrsExecute(rsCallbackEditSerialNumberDialog,"Inventory_GetEditSerialNumberDialog",t,rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:i},0,1),displayTimedMessage(i+"...")}function SubmitEditSerialNumber(){var e,t=getObj("editSerialNumber"),i=new FormValidator;i.CSValidateRequiredField(t.serialNumber,"Please enter a serial number")&&i.CSValidateAttributeFields(t)&&(e=i.ModifiedFieldIds,i=i.ModifiedFieldValues,jsrsExecute(rsCallbackRefreshPageAndScrollPos,"Inventory_UpdateSerialNumber",[escape(t.serialNumberId.value),escape(t.serialNumber.value),escape(t.batchNumber.value),escape(t.description.value),t.inventoryLocationId.value,escape(e),escape(i)],enableDialogButtons),displayTimedMessage("Updating Serial Number..."),disableDialogButtons())}function RunReport(){var e=getObj("flexForm");setTimeout('window.location = "'+pageReport+"&view="+e.param1.value+'";',0)}function rsCallbackEditAttachedFileDialog(e,t){updateAttributeLOVsIfNecessary(processSimpleDialogCallback(e,"editFileAttributes","description",!0))}function ShowEditFileAttributes(e,t,i){var a="Getting Edit File Attributes Dialog";i=i||0,jsrsExecute(rsCallbackEditAttachedFileDialog,"Dialog_GetEditAttachedFileDialog",[t,i],rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:"Error "+a},0,1),displayTimedMessage(a+"...")}function submitEditFileAttributes(){var e,t,i,a=getObj("editFileAttributes"),o=new FormValidator;o.CSValidateAttributeFields(a)&&(e=o.ModifiedFieldIds,o=o.ModifiedFieldValues,t="",i="Updating Attached File",a.phaseId&&(t=getCompoundSelectionValue(a.phaseId,a.phaseIdSelect)),jsrsExecute(rsCallbackRefreshPageAndScrollPos,"Job_UpdateAttachedFileAttributes",[a.fileId.value,escape(a.description.value),escape(e),escape(o),t],rsErrorCallbackShowErrorDialog,{showErrorInSubdialog:1,errorDialogTitle:"Error "+i},0,1),displayTimedMessage(i+"..."),disableDialogButtons())}function initShoppingCart(e){e=e||"";e=getObj("optionsFieldCart"+e);e&&ToolMan.dragsort().makeListSortable(e,verticalDragSortOnly)}function ShowJobSummaryOptions(e,t,i,a,o,r,l,n,s,c,d,u,g,m,p,b){b=b||"",showOptionsDialog("Dialog_GetJobsOptionsDialog",[t,escape(i),escape(a),escape(o),r,l,n,escape(s),escape(c),escape(d),u?1:0,escape(g),m,p?1:0,b])}function SubmitJobSummaryOptions(e){var t,i=getObj("viewOptions"),a=getURLEncodedFiltersFromForm(i),o=new FormValidator;!o.CSValidateNumberField(i.pageSize,"Rows per page",!0)||0"+s+"",d="mjt_GetFirstChildWithNodeName(this,'SPAN').style.color='white'",u="mjt_GetFirstChildWithNodeName(this,'SPAN').style.color='"+c+"'"),r==n[0]?t.AddInactiveHTMLTitledItem(s,!0):0===parseInt(n[4],10)&&t.AddHTMLTitledScriptItem(s,"updateJobActivityStatus('"+o+"', '"+n[0]+"', '"+r+"', '"+a+"')",!1,d,u)}t.ShowCallbackSubmenu("updateJobActivityStatusSubmenu",1)}function checkMustUpdateCachedActivityStatus(){return 3e4<=(new Date).getTime()-g_arrStatusesTS.getTime()}function updateCachedActivityStatuses(e){e=JSON.parse(e).arrStatuses;g_arrStatuses=e,g_arrStatusesTS=new Date}function rsCallbackGetActivityStatusesForUpdateSubMenu(e,t,i){checkResponseForError(e)&&contextMenu_isCallbackSubmenuContext(t)&&(updateCachedActivityStatuses(e),doShowUpdateJobActivityStatusSubmenu(i.objShowSubmenuParams))}function ShowUpdateJobActivityStatusSubmenu(e,t,i,a){var o;jtHasAccess(JTSecuredObject_Enum.mjtJobActivity,AccessRight_Enum.mjtARUpdate)&&(i={statusId:i,activityId:t,serializedAllocationWarning:a},t=new ContextMenu,a="Getting Activity Statuses",o=checkMustUpdateCachedActivityStatus(),t.dismissCallbackSubmenuIfShowing("updateJobActivityStatusSubmenu",1,e)||(o?(contextMenu_initForCallbackSubmenu(e,jsrsExecute(rsCallbackGetActivityStatusesForUpdateSubMenu,"Job_GetJobActivityStatuses",[],rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:a,objShowSubmenuParams:i},0,1)),displayTimedMessage(a+"...")):(contextMenu_initForCallbackSubmenu(e,0),doShowUpdateJobActivityStatusSubmenu(i))))}function updateJobActivityStatus(e,t,i,a){var o=getActivityStatusInfo(t),i=getActivityStatusInfo(i);if("3"==o.activityStatusTypeId&&"3"!=i.activityStatusTypeId&&"1"==a&&isInventoryEdition)if(!window.confirm("This activity has allocated material without assigned serial numbers.\n\nDo you want to mark this activity as Complete?"))return!1;jsrsExecute(rsCallbackRefreshPageAndScrollPos,"Job_UpdateJobActivityStatus",[e,t],rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:"Error Updating Job Activity Status"},0,1),displayTimedMessage("Updating Job Activity Status..."),disableDialogButtons()}function changeRecurrenceFrequency(){for(var e=getObj("appointmentRecurrence"),t=AppointmentRecurrenceFrequency_Enum.arfDaily,i=0;i"+t+"":t,"selectedDateFilterSpecType(event,'"+i.form.id+"','"+i.id+"',"+a+","+(o||"undefined")+(r?",'"+r+"'":"")+",'"+n+"')")}function showSelectDateFilterSpecTypeMenu(e,t,i,a,o){var r=new ContextMenu("clsDateFilterMenu"),l=o?"."+o:"";a||(i||addDateFilterSpecItem(r,"Any",t,DateRequiredType_Enum.mjtDateNullable,"",a,o),addDateFilterSpecItem(r,"Empty",t,DateRequiredType_Enum.mjtDateNull,"",a,o),r.AddInactiveHTMLTitledItem('
On or Before
')),a&&a!=DateRequiredType_Enum.mjtDateOnOrBefore||(addDateFilterSpecItem(r,"# of days ago",t,DateRequiredType_Enum.mjtDateOnOrBefore,DateRestrictionType_Enum.RelativeBackward,"txtDateFilterSimpleRelDateDays"+l,a,o),addDateFilterSpecItem(r,"# of days from today",t,DateRequiredType_Enum.mjtDateOnOrBefore,DateRestrictionType_Enum.RelativeForward,"txtDateFilterSimpleRelDateDays"+l,a,o),addDateFilterSpecItem(r,"Date",t,DateRequiredType_Enum.mjtDateOnOrBefore,DateRestrictionType_Enum.Absolute,"txtDateFilterSimpleRelDateDate"+l,a,o)),a||r.AddInactiveHTMLTitledItem('
On or After
'),a&&a!=DateRequiredType_Enum.mjtDateOnOrAfter||(addDateFilterSpecItem(r,"# of days ago",t,DateRequiredType_Enum.mjtDateOnOrAfter,DateRestrictionType_Enum.RelativeBackward,"txtDateFilterSimpleRelDateDays"+l,a,o),addDateFilterSpecItem(r,"# of days from today",t,DateRequiredType_Enum.mjtDateOnOrAfter,DateRestrictionType_Enum.RelativeForward,"txtDateFilterSimpleRelDateDays"+l,a,o),addDateFilterSpecItem(r,"Date",t,DateRequiredType_Enum.mjtDateOnOrAfter,DateRestrictionType_Enum.Absolute,"txtDateFilterSimpleRelDateDate"+l,a,o)),a||(r.AddSeparator(),addDateFilterSpecItem(r,"Range of Dates",t,DateRequiredType_Enum.mjtDateRange,"",a,o)),r.Show(e)}var g_loadingAttrFilterDetailsId=null;function rsCallbackEditAttrFilterDetails(e,t){var i;t==g_loadingAttrFilterDetailsId&&(g_loadingAttrFilterDetailsId=null,checkResponseForError(e))&&(t=getMajorFilterType(getObj("editJobFilter")),i=getObj("attrFilterDetails"),t==DynSQLComponentTypes_Enum.mjtSingleJobAttributeValue||t==DynSQLComponentTypes_Enum.mjtJobReportAttributeValue?i=getObj("jobAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtSingleCustAttributeValue?i=getObj("custAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtSingleQuoteAttributeValue?i=getObj("quoteAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtSingleCGQuoteAttributeValue||t==DynSQLComponentTypes_Enum.mjtSingleCGOrderAttributeValue?i=getObj("cgquoteAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtSingleSerialNumberAttributeValue?i=getObj("serialNumberAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtActivityAttributeValue?i=getObj("activityAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtPOAttributeValue?i=getObj("poAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtSupplierAttributeValue?i=getObj("supplierAttrFilterDetails"):t==DynSQLComponentTypes_Enum.mjtJobFormAttributeValue&&(i=getObj("jobFormFieldFilterDetails")),i.innerHTML=e,getObj("editJobFilter").cart&&getObj("editJobFilter").initValue&&initializeShoppingCartSelectionList("editJobFilter",getObj("editJobFilter").initValue.value,"LongListFilter"),getObj("dateAttrFilter")?changeDateRequirement():getObj("numberAttrFilter")?changeV2NumberFilterRelation():getObj("initializeCheckboxId")?(highlightCheckedRows(getObj("editJobFilter")),synchronizeAllRowsCheckbox(getObj("editJobFilter"))):getObj("textAttrFilter")&&changedV2TextFilterMode(),scrollCurrentDialogIfNecessary())}function changeSelectedAttr(e){var t,i=getObj("editJobFilter"),a=getMajorFilterType(i),o="",r=(a==DynSQLComponentTypes_Enum.mjtSingleJobAttributeValue||a==DynSQLComponentTypes_Enum.mjtJobReportAttributeValue?(getObj("jobAttrs")&&(o=getObj("jobAttrs").value),t=getObj("jobAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtSingleCustAttributeValue?(getObj("custAttrs")&&(o=getObj("custAttrs").value),t=getObj("custAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtSingleQuoteAttributeValue?(getObj("quoteAttrs")&&(o=getObj("quoteAttrs").value),t=getObj("quoteAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtSingleCGQuoteAttributeValue||a==DynSQLComponentTypes_Enum.mjtSingleCGOrderAttributeValue?(getObj("cgquoteAttrs")&&(o=getObj("cgquoteAttrs").value),t=getObj("cgquoteAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtSingleSerialNumberAttributeValue?(getObj("serialNumberAttrs")&&(o=getObj("serialNumberAttrs").value),t=getObj("serialNumberAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtActivityAttributeValue?(getObj("activityAttrs")&&(o=getObj("activityAttrs").value),t=getObj("activityAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtPOAttributeValue?(getObj("poAttrs")&&(o=getObj("poAttrs").value),t=getObj("poAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtSupplierAttributeValue?(getObj("supplierAttrs")&&(o=getObj("supplierAttrs").value),t=getObj("supplierAttrFilterDetails")):a==DynSQLComponentTypes_Enum.mjtJobFormAttributeValue&&(getObj("jobFormFields")&&(o=getObj("jobFormFields").value),t=getObj("jobFormFieldFilterDetails")),"");null!==getObj("initstr")&&(r=getObj("initstr").value),""!==o&&(null!==g_loadingAttrFilterDetailsId&&mjtrsAbort(g_loadingAttrFilterDetailsId),g_loadingAttrFilterDetailsId=jsrsExecute(rsCallbackEditAttrFilterDetails,"Job_GetAttrFilterDetails",[escape(r),escape(o),a,getWebPage(),e,"1"==i.isNewFilter.value?1:0]),t.innerHTML='Loading...')}function getFilterIdListInfoFromForm(e,t){var i={},a=getObj("attr"+t);if(a=a||getObj("attrVals")){var t="1"==a.getAttribute("data-isJobStatus"),o="1"==a.getAttribute("data-isFormFieldCB"),r="1"==a.getAttribute("data-isDropdownPhraseFilter"),l=[],n=[];if(i.arrIds=l,i.arrNames=n,o)getObj("rbFFCBChecked").checked?(l.push("1"),n.push("Checked")):getObj("rbFFCBUnChecked").checked&&(l.push("0"),n.push("Not Checked"));else if(t)(o=(o=getObj("rbTwoStateFilterState1")).checked||(o=getObj("rbTwoStateFilterState2")).checked?o:null)&&(l.push(o.value),n.push(o.getAttribute("data-displayVal")));else if(r){var s,c,d=0,u=0;for(i.arrRawPreamble=[];;){if(!a.hasAttribute(c="data-mjtrawpreamble"+u))break;i.arrRawPreamble[u]=a.getAttribute(c),++u}for(i.isDropdownPhraseFilter=1;;){if(!(s=e["cboPhraseFilter"+d]))break;l[l.length]=s.value,n.push(s.options[s.selectedIndex].getAttribute("data-mjtDisplayValue")),++d}}else for(var g=a.getElementsByTagName("input"),m=0;mLoading Filter Details...'):getObj("editFilterDetails").innerHTML='
No Filter Type Selected')}function initJobFilterEdit(e){changeMajorFilterType(e||"")}function updateFilterListSize(){var e,t=getObj("activeFilterTable");e=t.rows?t.rows.length?1:0:mjt_GetChildrenWithNodeName(t,"LI").length?1:0,getObj("filterList").style.display=e?"":"none",scrollParentDialogIfNecessary(t)}function reStripeFilters(){var e=document.querySelectorAll("#activeFilterTable li table tr:first-child");if(e)for(var t=0;t",a=getObj("activeFilterTable")),document.createElement("li")),a=(a.appendChild(l),l.id="filterLI"+o,(a=document.createElement("table")).style.width="100%",l.appendChild(a),(l=a.insertRow(a.rows.length)).setAttribute("data-filterId",o),l.id="filterRow"+o,document.createElement("input")),e=(a.type="hidden",a.id="filter"+o,a.name="filter"+o,a.value=e,l.insertCell(l.cells.length)),n=l.insertCell(l.cells.length),l=l.insertCell(l.cells.length),t=(l.className="buttonCell",e.name="filterName"+o,e.id="filterName"+o,e.innerHTML=t,"showSelectFilterDialog(event,null,'"+r+"','filter"+o+"','filterName"+o+"','"+(i||"")+"')");e.className="clickable underlined",e.setAttribute("onclick",t),n.style.display="none",n.appendChild(a),l.innerHTML=cdBuildFAFontIconButton({doubleQuoteEncodedOnClickJS:"DeleteFilter('filterRow"+o+"')",fontId:FontIconId_Enum.fiiCircledMinusRemove_Ionicon,additionalFontClasses:"bold",additionalButtonClasses:"compactButton"}),reStripeFilters(),updateFilterListSize()}function DeleteFilter(e){var e=getObj(e),t=e.getAttribute("data-filterId"),t=getObj("filterLI"+t),i=e.nextSibling;for(e.style.display="none";null!==i;)"evenRow"==i.className?i.className="oddRow":"oddRow"==i.className&&(i.className="evenRow"),i=i.nextSibling;t&&(t.style.display="none",removeNode(t)),removeNode(e),reStripeFilters(),updateFilterListSize()}function validateInvSummaryColumnSelection(e){var t,i=!0,a=!1,o=!1,e=e.toUpperCase();return(o=2',document.createElement("UL"));i.appendChild(a),a.setAttribute("mjtgroupingid",t),a.setAttribute("class","innerList"),a.setAttribute("className","innerList"),a.appendChild(e)}function fo_CollapseAll(e){if(null!==e)for(var t=e.getElementsByTagName("div"),i=0;i(current selection)"))&&fo_ClearCurrentSelectionFromField(r,o,a)}}function fo_ExpandToNode(e,t){var i;fo_ClearCurrentSelectionFromFields(e),1(current selection)",fo_ExpandParentNodes(e,i.parentNode))}function addFieldToCart(e,t,i,a,o,r,l){l=l||null,o=o||"",r=r||"fieldCart";var n=getObj(r+o),s=(n||alert("addFieldToCart() - Can't find the cart with id="+r+o),n.getElementsByTagName("li").length);if(1==a&&0",a=(l&&(e+=""),e+="
&#"+getRawFontId(FontIconId_Enum.fiiUpDownArrow)+";"+t+"\n"+l+"
",!1),u=!1;if(null!==i){for(var g=mjt_GetChildrenWithNodeName(n,"LI"),m=0;m\n
    \n"+e+"
":e),0===s&&0(in use)")}}function AddReportField(e,t,i,a){a=a||"",t=t||0;getObj("selectReportFields");var o,r,l,n,s=getObj(e);"fieldTreeLeaf"==s.getAttribute("data-fieldtreetype")&&(r=(o=getObj(e)).innerHTML,n=null,markLeavesDisabled(n=(n=(l=s.getAttribute("mjtcartcommonid"))?g_commonFieldSet[l]:n)||[e]),addFieldToCart(e,r,s.getAttribute("mjtparentgroupid"),t,a,null,l),rescrollParentDialogIfNecessary(o))}function filterFSTree(){var e=getObj("fieldTreeFilterField"),t=e.value,i="data-lastFilterValue";e.getAttribute(i)!=t&&(filterFOTreeForNewFilterTerm(t),e.setAttribute(i,t))}function delayedFilterFSTree(){clearTimeout(g_filterFSTreeTimer),g_filterFSTreeTimer=setTimeout(filterFSTree,250)}function verticalDragSortOnly(e){e.toolManDragGroup.verticalOnly()}function ClearAllReportFields(e){e=e||"",getObj("optionsFieldCart"+e).innerHTML=""}function submitPrintBarcodeLabelsForm(){var e=getObj("printBarcodeLabelForm"),t=new FormValidator;if(t.CSValidateRequiredField(e.formTemplateId,"Please select a Label")){var i=e.formTemplateId.value.split("?"),a=i[0],o=parseInt(i[1],10),i=parseInt(i[2],10),a=buildUrlPrefixWithParamSeparator(pageLegacyLabelForms)+"inline=1&formTemplateId="+a;if(e.poId&&(a+="&poId="+e.poId.value),e.poReceiptId&&(a+="&poReceiptId="+e.poReceiptId.value),e.snIdList&&(a+="&snIdList="+e.snIdList.value),1There are no active Activity Forms defined.
You can define or activate Activity Forms on the Job Settings page.',"No Activity Forms Defined",1,"ok");t+="&formatId="+e.calendarForm.value;i="";(i=e.printActFormId&&e.printActFormIdSelect?getCompoundSelectionValue(e.printActFormId,e.printActFormIdSelect):i)&&(t+="&forms="+i)}e.pagebreak&&e.pagebreak.checked&&(t+="&pb=3");for(var a="pdf",o=0;o=e.targetValidationStage)return!0;showDialogP(""+e.htmlMessage+"","frmConfirmSkipAndValidateUser",{formTitle:e.formTitle,isSubdialog:1,subdialogDismisalFocusFieldName:e.focusFieldName,okButtonDisplayText:"Continue",contextDetailOrFnSubmit:{fnSubmit:function(){hideSubdialog(),e.fnValidateNewStage(e.targetValidationStage)}}})}function confirmAnyOrSelection(e,t,i,a,o,r){if(e.userLoginTypeId.value!=UserLoginType_Enum.ultxShop||getAnyOrSelectedIsAny(e,t)||getCompoundSelectionValue(e["allowed"+t+"Id"],e["allowed"+t+"IdSelect"])||confirmAndProceedWithValidation({fnValidateNewStage:r,formTitle:"No "+i+" Selected",htmlMessage:"You have not selected any "+htmlEncode(i)+".
This Shop User will not be able to see anything.

Are you sure you want to keep these settings?",focusFieldName:"allowed"+t+"IdSelect",validationStage:a,targetValidationStage:o}))return!0}function confirmInternalRoleOrAdminSelection(e){if(getCompoundSelectionValue(e.roleId,e.roleIdSelect)||isAdminInUserDialog(e))return 1;(e=new ClientDialogBuilder({formTitle:"No Role Selected",subdialogDismisalFocusFieldName:"roleIdSelect"})).addFlexibleRow({rawValue:"You have not selected a Role\n\nWithout a Role, this user would not be authorized for any actions."}),e.showClientDialog()}function confirmExternalRoleSelection(e){if(getCompoundSelectionValue(e.externalRoleId,e.externalRoleIdSelect))return 1;e=new ClientDialogBuilder({formTitle:"No Role Selected",subdialogDismisalFocusFieldName:"externalRoleIdSelect"});e.addFlexibleRow({rawValue:"You have not selected a Role\n\nWithout a Role, this user would not be authorized for any views."}),e.showClientDialog()}function validateUserForCreateOrEdit(t,e,i,a){var o=new FormValidator,r=t.userLoginTypeId.value,l=t.userCGLoginTypeId.value,n=t.userNVLoginTypeId.value,r=r==UserLoginType_Enum.ultxRestAPI||l==UserCGLoginType_Enum.ucgltxRestAPI||n==UserNVLoginType_Enum.unvltRestAPI,l=function(e){validateUserForCreateOrEdit(getObj(t.id),e,i,a)};if(e=e||UserValidationConfirmationStages_Enum.uvsNone,!a){if(!o.CSValidateRequiredField(t.userName,"Please enter a name."))return;if(!r&&t.newPwd&&t.confPwd&&t.newPwd.value!=t.confPwd.value)return void showInfoDialog("The passwords you have entered do not match.","Mismatched Passwords",1,"newPwd");if(!r&&t.newPwd&&!validateClientSidePasswordVals(t.userName,t.newPwd,function(e,t){showInfoDialog(e,"Error Validating Password",1,"newPwd")}))return;if(t.disableAsOfDate&&!o.CSValidateDateField(t.disableAsOfDate,"Auto-disable date",!0))return;if(!(t.userId||r||trim(t.email.value).length||confirmAndProceedWithValidation({fnValidateNewStage:l,formTitle:"Missing Email Address",htmlMessage:"You have not specified an email address for this user.
An email address is required in order to perform a password reset.

Are you sure you want to omit an email address?",focusFieldName:"email",validationStage:e,targetValidationStage:UserValidationConfirmationStages_Enum.uvsMissingEmail})))return;if(t.disableAsOfDate&&t.disableAsOfDate.value&&(!t.isDisabled||!t.isDisabled.checked)&&parseDateString(t.disableAsOfDate.value)<=new Date)return void showInfoDialog("Set the Auto-disable date to a future date so that the user will not be immediately disabled.","Invalid Auto-Disable Date",1,"disableAsOfDate")}if(t.roleIdSelect&&(!g_isCounterGo&&!g_isNVInventory&&t.userLoginTypeId.value==UserLoginType_Enum.ultxInternal||g_isCounterGo&&t.userCGLoginTypeId.value==UserCGLoginType_Enum.ucgltxInternal||g_isNVInventory&&t.userNVLoginTypeId.value==UserNVLoginType_Enum.unvltInternal)){if(!confirmInternalRoleOrAdminSelection(t))return}else if(t.userLoginTypeId.value==UserLoginType_Enum.ultxExternal){if(!(t.allowSelectRoles&&"1"!=t.allowSelectRoles.value||confirmExternalRoleSelection(t)))return;if(t.accountId&&t.accountName&&"hidden"!=t.accountName.type&&!t.accountId.value&&!combineJobProcessBasedJobIdSelections(t)&&!confirmAndProceedWithValidation({fnValidateNewStage:l,formTitle:"No Jobs or Accounts Selected",htmlMessage:"You have not selected any Jobs or Accounts.
This user will not be authorized to view any data.

Are you sure you want to keep these settings?",focusFieldName:"",validationStage:e,targetValidationStage:UserValidationConfirmationStages_Enum.uvsExternalUserMissingJobsAndAccounts}))return}else if(t.userCGLoginTypeId.value==UserCGLoginType_Enum.ucgltxAccount&&t.accountId&&t.accountName&&"hidden"!=t.accountName.type){if(!t.accountId.value&&!confirmAndProceedWithValidation({fnValidateNewStage:l,formTitle:"No Accounts Selected",htmlMessage:"You have not selected any Accounts.
This user will not be authorized to view any data.

Are you sure you want to keep these settings?",focusFieldName:"accountName",validationStage:e,targetValidationStage:UserValidationConfirmationStages_Enum.uvsAccountUserMissingAccounts}))return;if(!t.quoteFormId.value&&!confirmAndProceedWithValidation({fnValidateNewStage:l,formTitle:"No Forms Selected",htmlMessage:"You have not selected any CG Quote Forms.
This user will not be authorized to print any quotes.

Are you sure you want to keep these settings?",focusFieldName:"quoteFormName",validationStage:e,targetValidationStage:UserValidationConfirmationStages_Enum.uvsAccountUserMissingCGQuoteForms}))return}if(t.loginFromAnywhere&&!t.loginFromAnywhere.checked){n=getCompoundSelectionValue(t.loginLocationId,t.loginLocationIdSelect);if(!n&&!confirmAndProceedWithValidation({fnValidateNewStage:l,formTitle:"No Login Locations Selected",htmlMessage:"You have not selected any Login Locations.
This user will not be able to login at all.

Are you sure you want to keep these settings?",focusFieldName:"loginLocationIdSelect",validationStage:e,targetValidationStage:UserValidationConfirmationStages_Enum.uvsMissingLoginLocations}))return}if(t.userLoginTypeId.value==UserLoginType_Enum.ultxShop){if(!confirmAnyOrSelection(t,"PageView","Views",e,UserValidationConfirmationStages_Enum.uvsShopUserMissingPageViews,l))return;if(!confirmAnyOrSelection(t,"ActivityType","Activities",e,UserValidationConfirmationStages_Enum.uvsShopUserMissingActivityTypes,l))return;if(!confirmAnyOrSelection(t,"Assignee","Assignees",e,UserValidationConfirmationStages_Enum.uvsShopUserMissingAssignees,l))return}i()}function rsCallbackShowNewInvLocationSubdialog(e){processSimpleDialogCallback(e,"createInventoryLocation",null,!0,!0)}function ChangeInventoryLocation(e,t){var i=getObj(e)["inventoryLocationId"+t];"-1"==i.value&&(selectFirstOption(i),jsrsExecute(rsCallbackShowNewInvLocationSubdialog,"Dialog_GetNewInvLocationSubdialog",[escape(e),escape(t)],enableDialogButtons),displayTimedMessage("Getting New Inventory Location Subdialog"),disableDialogButtons())}function rsCallbackSubmitCreateInventoryLocationSubdialog(e,t,i){if(checkResponseForError(e)){var a=getObj(i.originalFormId),i=i.idSuffix,o=a["inventoryLocationId"+i],r=e.split("?");if(addOption(o,r[0],r[1],!0),"assignSerialNumbers"==a.id)for(var l=parseInt(a.lineCount.value,10),n=parseInt(i,10),s=0;s
Are you sure you wish to proceed?","Create Field and Auto-Generate Values",i,1,"btnOk","Create Field and "+e+" Values"):doCreateAttributeType(i))}function SubmitCreateAttributeType(e,t){var i=getObj("createAttributeType"),a=new FormValidator,o=i.attributeDataTypeId.value;if(a.CSValidateRequiredField(i.name,"Please enter a Name")&&i.attributeUsage.value)if(o){if(i.attributeUsage.value!=""+AttributeUsage_Enum.ParentAttribute||""!==i.childAttrTypeId.value){if(o==AttributeDataTypes_Enum.AutoNumber){if(!a.CSValidateIntegerField(i.nextNumber,"Starting Number",1,null,null))return;if(!a.CSValidateIntegerField(i.padZeros,"Display At Least (...) Digits",0,1,20))return}o==AttributeDataTypes_Enum.SelectFromList&&!a.CSValidateRequiredField(i.listOfValues,"Please enter at least one value")||(e={attrCreationCallbackName:e=e||"rsCallbackRefreshPageAndScrollPos",strJobProcessIds:a=getCompoundSelectionValue(i.jobProcessId,i.jobProcessIdSelect),isSubdialog:t},o==AttributeDataTypes_Enum.AutoNumber&&i.populateExisting.checked?(jsrsExecute(rsCallbackGetAutoGenObjectCountForCustomFieldOnCreate,"Admin_GetAutoGenObjectCountForCustomField",["",i.attributeUsage.value,a],enableDialogButtons,e),disableDialogButtons(),displayTimedMessage("Checking auto-generation count.")):doCreateAttributeType(e))}}else showInfoDialog("Please select a Data Type.","No Data Type Selected",1,"attributeDataTypeId")}function changeAttributeDataType(e){var e=getObj(e),t=e.attributeDataTypeId.value,i=t==FormFieldDataTypes_Enum.SelectFromList,a=getObj("createAttrHasColorRow"),a=(a&&(a.style.display=i?"":"none"),getObj("rowPreviewImageOnEdit")),a=(a&&(a.style.display=i&&e.hasImage&&e.hasImage.checked?"":"none"),getObj("createAttrHasImageRow")),i=(a&&(a.style.display=t==FormFieldDataTypes_Enum.SelectFromList?"":"none"),getObj("createAttrIsSearchableRow"));i&&(i.style.display=t==FormFieldDataTypes_Enum.SelectFromList?"":"none"),getObj("createAttrSortAlphaRow").style.display=t==FormFieldDataTypes_Enum.SelectFromList?"":"none",getObj("createAttrNextNumberRow").style.display=t==FormFieldDataTypes_Enum.AutoNumber?"":"none",getObj("createAttrPadZerosRow").style.display=t==FormFieldDataTypes_Enum.AutoNumber?"":"none",getObj("createAttrAutoNumberPrefixRow").style.display=t==FormFieldDataTypes_Enum.AutoNumber?"":"none",getObj("createAttrAutoNumberSuffixRow").style.display=t==FormFieldDataTypes_Enum.AutoNumber?"":"none",getObj("createAttrAutoNumberPopulateExistingRow").style.display=t==FormFieldDataTypes_Enum.AutoNumber?"":"none",e.listOfValues&&(getObj("createAttrListOfValuesRow").style.display=t==FormFieldDataTypes_Enum.SelectFromList?"":"none",e.listOfValues.style.display=t==FormFieldDataTypes_Enum.SelectFromList?"":"none")}function sharedExecuteGetCreateAttributeTypeSubdialog(e,t,i,a,o){jsrsExecute(rsCallbackProcessSimpleDialogWithParams,"Dialog_GetCreateAttributeTypeSubdialog",[e,t,i,a?1:0,o||""],enableDialogButtons,{formId:"createAttributeType",center:!0,isSubdialog:!0,isStackedSubdialog:!0,fnProcessFormOnSuccess:function(){try{changeAttributeUsage()}catch(e){}changeAttributeDataType("createAttributeType")}})}function ChangeProductAttribute(e,t){var i,a,o=getObj("createJobActivityProduct"),r=getObj("createJobActivityProductAttr"+t+"Type");(r=(r=r||getObj("createQuoteProductAttr"+t+"Type"))||getObj("createPOLineAttr"+t+"Type"))&&(i=(i=r.getAttribute("data-mjtattrtypename"))||r.innerHTML.replace(/\:$/,""),a=r.getAttribute("attrtypeid")),a&&i||(r=getObj("attributeTypeId"))&&r.value&&r.options&&(a=a||r.value,i=i||r.options[r.selectedIndex].text),"-1"==(r=0Save'}),i&&r.addFlexibleFieldRow({rawLabel:"Attribute Name",rawValue:i}),r.addFlexibleFieldRow({rawLabel:"New Value",valueHTML:""}),r.showClientDialog(),setTimeout(function(){updateProductAttributeValueImage(t)},0)):updateProductAttributeValueImage(t),checkNecessityOfNoImageMessage(),"function"==typeof clearSelectedInventoryData&&clearSelectedInventoryData(),o&&"function"==typeof buildAddMaterialToActivitySNPicker&&(o.main_cart.value="",buildAddMaterialToActivitySNPicker())}function rsCallbackSubmitProductAttrValSubdialog(e){if(checkResponseForError(e)){var t,i=e.split("?"),a=0'+a,t.innerHTML=a)}function resetRefreshTimer(e,t){t=t||1,refreshDisplayedCountdown(e),g_autoRefreshTimer=setTimeout(autoRefreshIfNecessary,1e3*t)}function initAutoRefresh(e){g_lastRefreshTime=new Date,g_lastUserActivityTime=g_lastRefreshTime,resetRefreshTimer(g_refreshRate=60*e)}function rsCallbackGetCanAutoRefresh(e,t,i){var a=i.fnDenied,o=i.params;hideTimedMessage(),checkResponseForError(e)&&e&&e.length&&"1"==e.substring(0,1)?i.fnPermitted(o):a(o)}function rsCallbackErrorGetCanAutoRefresh(e,t,i){hideTimedMessage(),i.fnDenied(i.params)}function testIfCanAutoRefresh(e,t,i,a){jsrsExecute(rsCallbackGetCanAutoRefresh,"Admin_GetCanAutoRefresh",[],rsCallbackErrorGetCanAutoRefresh,{fnPermitted:t,fnDenied:i,params:a},0,1),e&&displayTimedMessage(e)}function autoRefreshIfNecessary(e){clearTimeout(g_autoRefreshTimer);var t=new Date,i=g_refreshRate-(t.getTime()-g_lastUserActivityTime.getTime())/1e3;i<1&&(i=1),!isDialogShowing()&&(t.getTime()-g_lastUserActivityTime.getTime())/1e3>=g_refreshRate?e?(saveSettingsAndNavigateTo(window.location),displayTimedMessage("Refreshing Page...")):testIfCanAutoRefresh("Checking server state before auto-refreshing...",function(){autoRefreshIfNecessary(!0)},function(e){initAutoRefresh(g_refreshRate/60)},0):resetRefreshTimer(i)}function displayAutoRefreshSection(){getObj("autoRefreshOptions").style.display=""}function autoRefreshOptionChanged(){var e=getObj("autoRefreshOptions");getObj("chkAutoRefresh").checked?setTimeout(displayAutoRefreshSection,50):e.style.display="none"}function getAutoRefreshRate(){var e=getObj("chkAutoRefresh");return e.checked?trim(e.form.refreshRate.value):""}function rsCallbackEditJobHeaderDialog(e,t){updateAttributeLOVsIfNecessary(processSimpleDialogCallback(e,"editJobHeader"))}function ShowEditJobHeader(e){var t="Getting Edit Job Header Dialog";jsrsExecute(rsCallbackEditJobHeaderDialog,"Dialog_GetEditJobHeaderDialog",e,rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:"Error "+t},0,1),displayTimedMessage(t+"...")}function duplicateJob(e,t,i,a){a="Getting Duplicate "+htmlEncode(a)+" Dialog";jsrsExecute(rsCallbackCheckAllRowsAndUpdateLOVAttrsOfDialog,"Dialog_GetDuplicateJobDialog",t,rsErrorCallbackShowErrorDialogAndRefresh,{formName:"duplicateJob",errorDialogTitle:"Error "+a},0,1),displayTimedMessage(a+"...")}function performSubmitEditJobHeader(e){var t="Saving Data";jsrsExecute(rsCallbackRefreshPageAndScrollPos,"Job_UpdateJobFields",e,rsErrorCallbackShowErrorDialogAndRefresh,{showErrorInSubdialog:1,errorDialogTitle:"Error "+t},0,1),displayTimedMessage(t+"..."),disableDialogButtons()}function rsCallbackDuplicateJob(e,t,i){checkResponseForError(e)&&(hideDialog(),displayTimedMessage("Displaying new "+htmlEncode(i.jobProcessName)+"..."),window.location=arrPageJobDetail[i.jobProcessId]+e)}function performSubmitDuplicateJob(e,t,i){jsrsExecute(rsCallbackDuplicateJob,"Job_DuplicateJob",e,enableDialogButtons,{jobProcessId:t,jobProcessName:i}),displayTimedMessage("Duplicating "+htmlEncode(i)+"..."),disableDialogButtons()}function rsCallbackValidateNewJobNameForEdOrDup(e,t,i){enableDialogButtons();var a=getObj(i.formId);setFocus(a.jobName),confirmCreateDuplicateJobIfNecessary(e,i.jobProcessName,function(){submitEditOrDuplicateJob(i.duplicate,!0,1)})}function verifyJobNameOnEditOrDuplicateJobHeader(e){var t=getObj(e?"duplicateJob":"editJobHeader"),i=new FormValidator;i.ValidateRequiredField(t.accountId,"Please select an Account")&&i.CSValidateRequiredField(t.jobName,"Please enter a "+t.jobProcessName.value+" Name")&&(jsrsExecute(rsCallbackValidateNewJobNameForEdOrDup,"Job_GetJobByName",[escape(t.jobName.value),t.accountId.value,e?"":t.jobId.value],enableDialogButtons,{duplicate:!!e,jobProcessId:t.jobProcessId.value,jobProcessName:t.jobProcessName.value,formId:t.id}),disableDialogButtons(),displayTimedMessage("Validating "+htmlEncode(t.jobProcessName.value)+" Name..."))}function performPrepareSubmitEditJob(){var e=getObj("editJobHeader");e.jobName.value!=e.origJobName.value?verifyJobNameOnEditOrDuplicateJobHeader(!1):submitEditOrDuplicateJob(!1,!1,1)}function performPrepareSubmitDuplicateJob(){verifyJobNameOnEditOrDuplicateJobHeader(!0)}function addDisplayFieldForQuote(e,t){var i=getObj("optionsFieldCart"),t='\n
  • &#"+getRawFontId(FontIconId_Enum.fiiUpDownArrow)+";"+t+"
  • ";i.innerHTML+=t,ToolMan.dragsort().makeListSortable(i,verticalDragSortOnly)}function submitAddQuoteTextDisplayField(){var e=getObj("editQuoteRevision"),t=(e=e||getObj("editQuoteSettings")).fieldCount.value,e=(e=getObj("createQuoteTextDisplayFieldDialog"),trim(e.txtValue.value)),t=t+"_T"+escape(e),e="Text: "+htmlEncode(e);hideSubdialog(),enableDialogButtons(),addDisplayFieldForQuote(t,e)}function rsGetCreateQuoteTextDisplayFieldDialog(e,t){processSimpleDialogCallback(e,"createQuoteTextDisplayFieldDialog",null,!1,!0)}function promptForQuoteTextDisplayField(){jsrsExecute(rsGetCreateQuoteTextDisplayFieldDialog,"Quote_GetCreateQuoteTextDisplayFieldDialog",[],enableDialogButtons),disableDialogButtons(),displayTimedMessage("Getting Text Display Field Dialog")}function rsCallbackPrintIssueDialog(e,t){var i;checkResponseForError(e)&&(hideDialog(),getObj("dynamicDialog").innerHTML=e,(e=getObj("printIssue")).chkRow&&"boolean"==typeof e.chkRow.checked&&(e.chkRow.checked=!0,highlightOneCheckedRow(e.chkRow),synchronizeAllRowsCheckbox(e)),(i=getObj("issuesDiv"))&&(i.style.height=300Uploading...'),g.onreadystatechange=function(){if(4===g.readyState){var e="";if(200===g.status){var t=g.responseText;try{var i=JSON.parse(t);i.error?(e='An error occurred uploading the file, "'+b.name+'":\n',i.error.message&&(e+=i.error.message),i.error.stackTrace&&(e+="\n"+i.error.stackTrace)):i.success||(e="Upload failed:\n"+t)}catch(a){e="Upload failed:\n"+t}e||(l?l(b,g):p&&(p.innerHTML=b.name+" ("+formatFileSize(b.size)+') Upload complete',o.alreadyUploaded=1))}else e="Upload failed, please retry.";e&&(n?n(b,g,e):(g_hasFileDragDropError=!0,p&&(p.innerHTML=b.name+" ("+formatFileSize(b.size)+") "+buildRemoveFileLink(o.id)+'
    '+htmlMultilineEncode(e)+"
    "))),n||l||advanceToNextFileIfNecessary(r)}},g.send(m)}}function doUploadFiles(e){var t,i;disableDialogButtons(!g_arrFileDragDropFileInfos.length),0=g_arrFileDragDropFileInfos.length||uploadFile(g_arrFileDragDropFileInfos[t++],i,e)})()):e.submit(),saveScrollPos(),displayTimedMessage("Uploading file...")}function cancelFileUploadSubmission(e,t){return g_disableFileDragDrop=!1,1}function rsCallbackCheckFileName(e){var t,i;g_disableFileDragDrop=!1,enableDialogButtons(),checkResponseForError(e)&&(t=getObj("createFile"),isEmptyResponse(e)?doUploadFiles(t):(i=-1=e?t.style.display="none":t.style.display="block",resizeCurrentDialog()}function processUploadFileAsImageForThumbnail(i,a){var e=new FileReader;e.onload=function(e){var e=e.target,t=new Image;t.onload=function(e){i.objLoadedImage=t,a&&a()},t.onerror=function(e){fileDragRemove(i.id),showInfoDialog('Failed to load "'+htmlEncode(i.file.name)+'" as an image.',"Invalid Image",1)},t.src=e.result,getObj("imgThumb"+i.id).src=e.result},e.readAsDataURL(i.file)}function draggedFileHasValidType(e){var t=(e.file||0).name||"",i=ClientFunctions.getFileComponentsFromFilePath(t).extension,t=(e.uploadSettings||0).acceptedFileTypes||[],e=!0;return e=i&&t.length?t.some(function(e){return e===i}):e}function fileDragDrop(e){if(fileDragOver(e),!g_disableFileDragDrop){for(var t=e.target;"form"!==t.tagName.toLowerCase()&&t;)t=t.parentNode;if(t){var i,a=t,o=findFirstDescendantWithAClass(a,["uploadedFiles"]),r=getFileUploadLimit(a),l=getUploadFilesSettings(a),n=l.requiresRenderThumbnail,s=(e.target.files&&e.target.files.length?e.target:e.dataTransfer).files;if(-1r)showInfoDialog("You have selected too many files.

    You may only select "+r+" "+(1"+(g_arrFileDragDropFileInfos.length?"
    If you wish to replace a file, remove it and add a new one.":""),"Too Many Files Selected",1);else{for(i=0;i '+g+" "+d:g+=d,c.id="dragDropFileSection"+p,c.innerHTML=g,o.appendChild(c),n&&processUploadFileAsImageForThumbnail(b)):showInfoDialog('The following file is not a supported type:

    '+htmlEncode(m.name)+'

    '+l.invalidFileTypeHelpMessage+"","Invalid File",1)}a.fileName&&!a.fileName.length&&(a.fileName.value=""),toggleFilesToUploadList(a)}}}}function enableFileDragDrop(e){g_arrFileDragDropFileInfos=[];var t=new XMLHttpRequest;"undefined"!=typeof window.File&&"undefined"!=typeof window.FileList&&"undefined"!=typeof window.FileReader&&"undefined"!=typeof t.upload&&((t=findFirstDescendantWithAClass(e,["fileDropMessageContainer"]))&&(t.style.display="block"),e.fileName.addEventListener("change",fileDragDrop),e.addEventListener("dragover",fileDragOver),e.addEventListener("dragleave",fileDragOver),e.addEventListener("drop",fileDragDrop))}function rsCallbackGetCreateAttachedFileDialog(e,t){g_arrFileDragDropFileInfos=[];e=processSimpleDialogCallback(e,"createFile",null,!0);e&&enableFileDragDrop(e)}function showCreateFile(e,t,i,a){var o="Getting Create Attached File Dialog";jsrsExecute(rsCallbackGetCreateAttachedFileDialog,"Dialog_GetCreateAttachedFileDialog",[t,i,a||""],rsErrorCallbackShowErrorDialogAndRefresh,{errorDialogTitle:"Error "+o},0,1),displayTimedMessage(o+"...")}function SelectSearchFilter(){var e,t=getObj("editJobFilter");(new FormValidator).CSValidateRequiredField(t.searchTerm,"Please enter a search term")&&(e=trim(t.searchTerm.value),selectFilter(escape(t.componentType.value+"|"+t.searchFilter.value+":"+escape(escape(e)))+"?"+escape(htmlEncode("Search for '"+e+"'"))))}function rsCallbackValidateUpdateViewName(e){var t=getObj("editPageView"),i=t.pageViewId.value,a=t.pageId.value==WebPages_Enum.Report?"report":"view";if(checkResponseForError(e)&&!isEmptyResponse(e)&&i!=e){if(!jtHasAccess(JTSecuredObject_Enum.mjtViews,AccessRight_Enum.mjtARDelete))return alert("A "+a+" with this name already exists and you do not have permission to delete it."),void setFocus(t.viewName);if(!confirm("A "+a+" with this name already exists. Do you want to overwrite the existing "+a+"?"))return void setFocus(t.viewName)}jsrsExecute(rsCallbackRefreshPageAndScrollPos,"Admin_UpdatePageView",[escape(t.pageId.value),escape(t.viewName.value),t.defaultView?t.defaultView.checked?"1":"0":"",t.pageViewGroupId.value,escape(t.pageViewId.value)],enableDialogButtons),displayTimedMessage("Saving "+a+"..."),disableDialogButtons()}function submitEditPageView(){var e=getObj("editPageView"),t=e.pageId.value==WebPages_Enum.Report?"Report":"View";(new FormValidator).CSValidateRequiredField(e.viewName,"Please enter a name.")&&(jsrsExecute(rsCallbackValidateUpdateViewName,"Admin_GetViewByName",[escape(e.pageId.value),escape(e.viewName.value),escape(e.visibilityTypeId.value)],hideTimedMessage),displayTimedMessage("Validating "+t+" Name..."))}function showEditPageView(e,t,i,a){jsrsExecuteWithErrorP("Dialog2_GetEditPageViewDialog",rsCallbackProcessSimpleDialogP,i?"Getting Rename Report Dialog":"Getting Rename View Dialog",{pageId:e,pageViewId:t,isCurrentView:a?1:0},{formId:"editPageView",isSubdialog:!i})}function SetActivityAssignee(e,t,i,a,o){e=getObj(e);e&&(setCompoundSelectionValue(e[t],e[i],e[a],o,""),(t=e[a]).focus)&&t.focus()}function sortAssignees(e,t,i){var a=0,o=getObj("frmSelectAssignees"),r=reconstructSimpleShoppingCart(o.id),l=r.isActiveOnlyChecked(),l="1"!=o.includeInactive.value||l?0:1,n="1"==o.includeUnassignedOption.value?1:0,s="1"==o.includeMyselfOption.value?1:0,i=(r.doShowSelectedOnly()&&(a=1),r=r.getContentDescriptor().getIdList(),i.split(",")),i=unescape(i[0]);jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectAssigneesTable",["",escape(r),e,t,i,a,l,n,s],enableDialogButtons,{formId:o.id,tableId:o.id+"_assigneeTable"}),displayTimedMessage("Getting Assignees Table..."),disableDialogButtons()}function searchOrSelectedAssignees(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortAssignees("",0,escape(t))}function rsCallbackGetSelectAssigneesDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectAssignees",null,!0,i.dismisalFocusFieldName);e&&(getObj("frmSelectAssignees_assigneeTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectAssignees","cart",!0,"cartInfoSpan",searchOrSelectedAssignees,!0,!0,null,null,i.includeActiveOnlyOption?"Active Assignees Only":null).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId),g_objSetFocusObject=e.search||g_objSetFocusObject)}function selectAssigneeForCompoundSelection(e,t,i,a,o,r,l,n,s){n=n||"assignee";var c=getObj(i),c=getCompoundSelectionValue(c[n+"Id"],c[n+"IdSelect"]);jsrsExecute(rsCallbackGetSelectAssigneesDialog,"Dialog_GetSelectAssigneesDialog",[i,c,a?1:0,o?1:0,r?1:0,l?1:0,escape(n),s?1:0],enableDialogButtons,{parentFormId:i,dismisalFocusFieldName:t.name,includeActiveOnlyOption:l?1:0}),displayTimedMessage("Getting Select Assignees Dialog..."),disableDialogButtons()}function rsCallbackGetNewAssigneeForSelectionSubdialog(e){processSimpleStackedSubdialogCallback(e,"createAssignee",null,!0,"search")}function newAssigneeForSelectionDialog(e){jsrsExecute(rsCallbackGetNewAssigneeForSelectionSubdialog,"Dialog_GetNewAssigneeForSelectionSubdialog",[1],enableDialogButtons)}function SubmitCreateAssigneesForSelection(){submitCreateAssigneeSubdialogWithCallback(rsCallbackCreatedInSubdialog,buildCreatedInSubdialogParamsForSelList("frmSelectAssignees",searchOrSelectedAssignees,getObj("frmSelectAssignees").parentFormId.value,"assigneeIdSelect"))}function submitSelectForCompoundSelectionField(e,t){var i=getObj(e);submitSelectCustomCompoundSelect(e,t=i.formFieldsPrefix?i.formFieldsPrefix.value:t)}function submitSelectAssignees(e){submitSelectForCompoundSelectionField(e,"assignee")}function sortPhases(e,t,i){var a=getObj("frmSelectPhases"),o=a.jobId.value;jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectPhasesTable",[a.id,"","",e,t,o],enableDialogButtons,{formId:a.id,tableId:a.id+"_phaseTable"}),displayTimedMessage("Getting Phases Table..."),disableDialogButtons()}function searchOrSelectedPhases(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortPhases("",0,escape(t))}function rsCallbackGetSelectPhasesDialog(e,t,i){processSimpleStackedSubdialogCallback(e,"frmSelectPhases",null,!0,i.dismisalFocusFieldName)&&(getObj("frmSelectPhases_phaseTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectPhases","cart",!0,"cartInfoSpan",searchOrSelectedPhases,!1,!1).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function selectPhaseForCompoundSelection(e,t,i,a,o,r){var l=getObj(i),l=getCompoundSelectionValue(l.phaseId,l.phaseIdSelect);jsrsExecute(rsCallbackGetSelectPhasesDialog,"Dialog_GetSelectPhasesDialog",[i,l,a],enableDialogButtons,{parentFormId:i,dismisalFocusFieldName:t.name}),displayTimedMessage("Getting Select Phases Dialog..."),disableDialogButtons()}function sortAccounts(e,t,i){var a="",o=0,r=getObj("frmSelectAccounts"),l="1"==r.singleSelect.value,n=reconstructSimpleShoppingCart(r.id),i=i.split(","),i=unescape(i[0]);l||(n.doShowSelectedOnly()&&(o=1),a=n.getContentDescriptor().getIdList()),jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectAccountsTable",[r.id,"",escape(a),e,t,i,o,escape(r.accountIdToExclude.value),"1"==r.showInactive.value?1:0,l?1:0,r.forceJTStyle.value,r.forceCGStyle.value],enableDialogButtons,{formId:r.id,tableId:r.id+"_accountTable"}),displayTimedMessage("Getting Accounts Table..."),disableDialogButtons()}function searchOrSelectedAccounts(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortAccounts("",0,escape(t))}function rsCallbackGetSelectAccountsDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectAccounts",null,!0,i.dismisalFocusFieldName);e&&(getObj("frmSelectAccounts_accountTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectAccounts","cart",!0,"selectAccountsCartInfoSpan",searchOrSelectedAccounts,!0,!i.singleSelect,i.singleSelect,null,null,null,i.hideShowAllButton).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId),e.onSelectFn=i.onSelectFn||null)}function selectAccountForCompoundSelection(e,t,i,a,o,r,l,n,s,c,d){var u=getObj(t),u=getCompoundSelectionValue(u[l+"Id"],u[l+"IdSelect"]);jsrsExecute(rsCallbackGetSelectAccountsDialog,"Dialog_GetSelectAccountsDialog",[t,a||"",o?1:0,r?1:0,l,escape(u),n?1:0,c?1:0,d?1:0],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name,singleSelect:r?1:0,onSelectFn:s||null,hideShowAllButton:!0}),displayTimedMessage("Getting Select Accounts Dialog..."),disableDialogButtons()}function submitSelectSpecificAccounts(e,t,i){var a,o,e=getObj(e),r=getObj(e.parentFormId.value);r?(a=e.formFieldsPrefix.value+"Id",o=e.formFieldsPrefix.value+"Name",setCompoundSelectionValue(r[a],r[o],r[a+"Select"],t,unescape(i)),e.onSelectFn&&e.onSelectFn()):alert("submitSelectSpecificAccounts() - Failed to find the parent form with id="+e.parentFormId.value)}function submitSelectAccount(e,t){submitSelectCustomCompoundSelect(e,t)}function rsCallbackCreatedNewAccountForSubdialog(e,t){var i;enableDialogButtons(),checkResponseForError(e)&&(submitSelectSpecificAccounts((i=getObj("createAccount")).id,e,i.accountName.value),hideSubdialog())}function rsCallbackValidateNewAccountName(e){var t=getObj("createAccount"),i=trim(t.accountName.value),a="",o="";t.priceType&&(a=t.priceType.value),t.cgPriceList&&(o=t.cgPriceList.value),!checkResponseForError(e)||isEmptyResponse(e)||confirm("An Account with this name already exists. Are you sure you want to create another Account with this name?")?(jsrsExecute(rsCallbackCreatedNewAccountForSubdialog,"Customer_CreateCustomer",[escape(i),a,o],enableDialogButtons),displayTimedMessage("Creating Account..."),disableDialogButtons()):setFocus(t.accountName)}function submitNewAccountSubdialog(){var e=getObj("createAccount"),t=new FormValidator;!t.CSValidateRequiredField(e.accountName,"Please enter an Account Name")||e.priceType&&!t.CSValidateRequiredField(e.priceType,"Please select a "+getPrefixedEEPLString())||e.cgPriceList&&!t.CSValidateRequiredField(e.cgPriceList,"Please select a "+getPrefixedCGPLString())||(jsrsExecute(rsCallbackValidateNewAccountName,"Customer_GetCustomerByName",escape(e.accountName.value),hideTimedMessage),displayTimedMessage("Validating Account Name..."))}function dismissCurrentSubdialogAndShowNewAccountSubdialog(e,t,i,a){var o=t.form.onSelectFn,r=getObj(i),l=r.forceJTStyle&&"1"==r.forceJTStyle.value,r=r.forceCGStyle&&"1"==r.forceCGStyle.value;hideSubdialog(),jsrsExecute(rsCallbackProcessSimpleStackedSubdialog,"Dialog_GetNewAccountSubdialog",[i,a,l?1:0,r?1:0],enableDialogButtons,{formId:"createAccount",useSavedEventPagePosition:!0,dismisalFocusFieldId:t.id,arrFormProperties:[{name:"onSelectFn",value:o}]}),displayTimedMessage("Getting New Account Subdialog..."),disableDialogButtons()}function sortActivityTypes(e,t,i){var a=0,o=getObj("frmSelectActivityTypes"),r=reconstructSimpleShoppingCart(o.id),i=i.split(",");unescape(i[0]);r.doShowSelectedOnly()&&(a=1),i=r.getContentDescriptor().getIdList(),jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectActivityTypesTable",[o.id,o.parentFormId.value,escape(i),e,t,a,o.jobProcessId.value,o.allowSelectJobProcess.value,o.includeInactive.value],enableDialogButtons,{formId:o.id,tableId:o.id+"_activityTypeTable",idOfFieldToHideOnSelectedOnly:"newButtonSection"+r.cbNameSuffix}),displayTimedMessage("Getting Activity Types Table..."),disableDialogButtons()}function searchOrSelectedActivityTypes(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortActivityTypes("",0,escape(t))}function rsCallbackGetSelectActivityTypesDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectActivityTypes",null,!0,i.dismisalFocusFieldName);e&&(getObj("frmSelectActivityTypes_activityTypeTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectActivityTypes","cart",!0,"actTypeCartInfoSpan",searchOrSelectedActivityTypes,!1,!0,!1,e.tableId.value).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showActivityTypeSelectionSubdialog(e,t,i,a,o,r,l,n){var s=getObj(t),s=getCompoundSelectionValue(s[n+"Id"],s[n+"IdSelect"]);jsrsExecute(rsCallbackGetSelectActivityTypesDialog,"Dialog_GetSelectActivityTypesDialog",[t,a,s,o?1:0,r?1:0,l?1:0,escape(n)],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name,jobProcessId:a}),displayTimedMessage("Getting Select Activity Types Dialog..."),disableDialogButtons()}function submitSelectActivityTypes(e){submitSelectCustomCompoundSelect(e,getObj(e).formFieldsPrefix.value,0)}function sortJobProcesses(e,t,i){var a=getObj("frmSelectJobProcesses"),o=reconstructSimpleShoppingCart(a.id).getContentDescriptor().getIdList();jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectJobProcessesTable",[a.id,a.parentFormId.value,escape(o),e,t],enableDialogButtons,{formId:a.id,tableId:a.id+"_jobProcessTable"}),displayTimedMessage("Getting Job Processes Table..."),disableDialogButtons()}function searchOrSelectedJobProcesses(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortJobProcesses("",0,escape(t))}function rsCallbackGetSelectJobProcessesDialog(e,t,i){processSimpleStackedSubdialogCallback(e,"frmSelectJobProcesses",null,!1,i.dismisalFocusFieldName,null,!0)&&(getObj("frmSelectJobProcesses_jobProcessTable").onclick=doClick,(e=initializeSimpleShoppingCartFromFormFields("frmSelectJobProcesses","cart",!0,"cartInfoSpan",searchOrSelectedJobProcesses,!1,!1)).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId),e.onSelectCode=i.onSelectCode||null)}function showJobProcessSelectionSubdialog(e,t,i,a){var o=getObj(t),o=getCompoundSelectionValue(o.jobProcessId,o.jobProcessIdSelect);jsrsExecute(rsCallbackGetSelectJobProcessesDialog,"Dialog_GetSelectJobProcessesDialog",[t,o],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name,onSelectCode:a||null}),displayTimedMessage("Getting Select Job Processes Dialog..."),disableDialogButtons()}function submitSelectJobProcesses(formId_){var cart=reconstructSimpleShoppingCart(formId_),onSelectCode=null;cart&&cart.onSelectCode&&(onSelectCode=cart.onSelectCode),submitSelectCustomCompoundSelect(formId_,"jobProcess"),onSelectCode&&eval(onSelectCode)}function sortJobs(e,t,i){var a=getObj("frmSelectJobs"),o=a.accountId?a.accountId.value:"",r=a.processId.value,l="1"==a.singleSelect.value,n=reconstructSimpleShoppingCart(a.id),s=n.doShowSelectedOnly()?1:0,c=n.getContentDescriptor().getIdList(),i=i.split(","),i=unescape(i[0]),n=n.isActiveOnlyChecked()?1:0,c=(jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectJobsTable",[a.id,a.parentFormId.value,escape(c),e,t,r,escape(i),s,n,o,l?1:0],enableDialogButtons,{formId:a.id,tableId:a.id+"_jobTable"}),carefullyGetJobProcessName(r,!0));displayTimedMessage("Getting "+htmlEncode(c)+" Table..."),disableDialogButtons()}function searchOrSelectedJobs(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortJobs("",0,escape(t))}function rsCallbackGetSelectJobsDialog(e,t,i){var a,e=processSimpleStackedSubdialogCallback(e,"frmSelectJobs",null,!1,i.dismisalFocusFieldName,null,!0);e&&(getObj(e.id+"_jobTable").onclick=doClick,a=carefullyGetJobProcessName(e.processId.value,!0),initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"cartInfoSpan",searchOrSelectedJobs,!0,!i.singleSelect,i.singleSelect,null,"Active Or Unscheduled "+a).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectJobsSubdialog(e,t,i,a,o,r){var l=getObj(t),l=getCompoundSelectionValue(l["job"+a+"Id"],l["job"+a+"IdSelect"]),l=(jsrsExecute(rsCallbackGetSelectJobsDialog,"Dialog_GetSelectJobsDialog",[t,escape(l),a,o||"",r?1:0],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name,singleSelect:r?1:0}),carefullyGetJobProcessName(a,!0));displayTimedMessage("Getting Select "+htmlEncode(l)+" Dialog..."),disableDialogButtons()}function submitSelectSingleJob(e,t,i,a,o){t=getObj(t);reconstructSimpleShoppingCart(e);setCompoundSelectionValue(t["job"+i+"Id"],t["job"+i+"Name"],t["job"+i+"IdSelect"],a,unescape(o)),hideSubdialog()}function submitSelectJobs(e,t){submitSelectCustomCompoundSelect(e,"job"+t)}function getTypeAheadJobForAccount(e,t,i,a){var o={isInactiveColumnIndex:2,inactiveMeansCompleteColumnIndex:2};o.expectedContextId=jsrsExecute(rsCallbackGetTypeAheadSearchText,"Dialog_GetTopJobInfosForAccountGivenPrefix",[escape(t),a.accountId,a.processId],hideTimedMessage,o)}function sortExternalPageViews(e,t,i){var a=getObj("frmSelectExternalPageViews"),o=a.processId.value,r=a.pageId.value,l=reconstructSimpleShoppingCart(a.id),n=l.doShowSelectedOnly()?1:0,l=l.getContentDescriptor().getIdList();jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectExternalPageViewsTable",[a.id,a.parentFormId.value,escape(l),e,t,r,o,n],enableDialogButtons,{formId:a.id,tableId:a.id+"_externalPageViewTable"}),displayTimedMessage("Getting External Page Views Table..."),disableDialogButtons()}function searchOrSelectedExternalPageViews(e){sortExternalPageViews("",0,"")}function rsCallbackGetSelectExternalPageViewsDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectExternalPageViews",null,!1,i.dismisalFocusFieldName,null,!0);e&&(getObj(e.id+"_externalPageViewTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"cartInfoSpan",searchOrSelectedExternalPageViews,!1,!0,!1,null,null).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectExternalPageViewsSubdialog(e,t,i,a,o){var r=getObj(t),r=getCompoundSelectionValue(r["pageView"+a+"Id"],r["pageView"+a+"IdSelect"]);jsrsExecute(rsCallbackGetSelectExternalPageViewsDialog,"Dialog_GetSelectExternalPageViewsDialog",[t,escape(r),a,o],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select External Page Views Subdialog..."),disableDialogButtons()}function submitSelectExternalPageViews(e){submitSelectCustomCompoundSelect(e,"pageView"+getObj(e).pageId.value)}function sortSavedViews(e,t,i){var a=getObj("frmSelectSavedViews"),o=a.pageVisibilityId.value,r=a.pageId.value,i=i.split(","),i=unescape(i[0]),l=reconstructSimpleShoppingCart(a.id),n=l.doShowSelectedOnly()?1:0,l=l.getContentDescriptor().getIdList(),s="1"==a.singleSelect.value?1:0;jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectSavedViewsTable",[a.id,e,t,escape(i),r,o,s,escape(l),n],enableDialogButtons,{formId:a.id,tableId:a.id+"_savedViewTable"}),displayTimedMessage("Getting Saved Views Table..."),disableDialogButtons()}function searchOrSelectedSavedViews(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortSavedViews("",0,escape(t))}function rsCallbackGetSelectSavedViewsDialog(e,t,i){e=i.subdialog?processSimpleStackedSubdialogCallback(e,"frmSelectSavedViews",null,!1,i.dismisalFocusFieldName,null,!0):processSimpleDialogCallback(e,"frmSelectSavedViews");e&&(getObj(e.id+"_savedViewTable").onclick=doClick,i=!!i.singleSelect,initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"cartInfoSpan",searchOrSelectedSavedViews,!0,!i,i,null,null).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectSavedViewsDialog(e,t,i,a,o,r,l,n){var s,c="";t&&(s=getObj(t,1),c=getCompoundSelectionValue(s[r+"Id"],s[r+"IdSelect"])),jsrsExecute(rsCallbackGetSelectSavedViewsDialog,"Dialog_GetSelectSavedViewsDialog",[t,a,o||"",r||"",l?1:0,n?1:0,c,!1],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i?i.name:null,subdialog:l,singleSelect:n?1:0}),displayTimedMessage("Getting Select Saved Views Dialog..."),disableDialogButtons()}function submitSelectSavedView(e,t,i){var a,o,e=getObj(e);"1"==e.isSubdialog.value?(a=getObj(e.parentFormId.value),o=e.formFieldsPrefix.value+"Id",e=e.formFieldsPrefix.value+"Name",setCompoundSelectionValue(a[o],a[e],a[o+"Select"],t,i),hideSubdialog()):(setTimeout('window.location = "'+pageReport+"&view="+t+'";',0),g_bSkipNavWarning=!0,displayTimedMessage("Generating report..."))}function submitSelectSavedViews(e){submitSelectCustomCompoundSelect(e,getObj(e).formFieldsPrefix.value)}function ShowReportsDialog(e){showSelectSavedViewsDialog(e,"",null,WebPages_Enum.Report,null,null,0,1)}function rsCallbackGetCalendarActivityTypesTable(e,t){var i,a,o;checkResponseForError(e)&&(i="frmSelectCalendarActivityTypes",o=getObj(i),a=getObj("frmSelectCalendarActivityTypes_calendarActivityTypeTable"),o=reconstructSimpleShoppingCart(o.id,!0),a&&(a.innerHTML=e,o&&o.updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId),scrollDialogIfNecessary(i)),o)&&o.refocusCartAfterUpdate()}function sortCalendarActivityTypes(e,t,i){var a=getObj("frmSelectCalendarActivityTypes"),o=reconstructSimpleShoppingCart(a.id),r=o.doShowSelectedOnly()?1:0,o=o.getContentDescriptor().getIdList(),l="1"==a.includeAppointments.value?1:0,n="1"==a.includeInactive.value?1:0;jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectCalendarActivityTypesTable",[a.id,a.parentFormId.value,escape(o),e,t,r,l,n],enableDialogButtons,{formId:a.id,tableId:a.id+"_calendarActivityTypeTable"}),displayTimedMessage("Getting Calendar Activity Types Table..."),disableDialogButtons()}function searchOrSelectedCalendarActivityTypes(e){sortCalendarActivityTypes("",0,"")}function rsCallbackGetSelectCalendarActivityTypesDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectCalendarActivityTypes",null,!1,i.dismisalFocusFieldName,null,!0);e&&(getObj(e.id+"_calendarActivityTypeTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"cartInfoSpan",searchOrSelectedCalendarActivityTypes,!1,!0,!1,null,null).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectCalendarActivityTypes(e,t,i,a,o,r){var l=getObj(t),l=getCompoundSelectionValue(l[r+"Id"],l[r+"IdSelect"]);jsrsExecute(rsCallbackGetSelectCalendarActivityTypesDialog,"Dialog_GetSelectCalendarActivityTypesDialog",[t,escape(l),a?1:0,o?1:0,r],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select Calendar Activity Types Dialog..."),disableDialogButtons()}function submitSelectCalendarActivityTypes(e,t){submitSelectCustomCompoundSelect(e,t)}function sortSalespersons(e,t,i){var a=getObj("frmSelectSalespersons"),o=reconstructSimpleShoppingCart(a.id),r=o.doShowSelectedOnly()?1:0,o=o.getContentDescriptor().getIdList(),l="1"==a.includeMyselfAndNoneOptions.value?1:0;jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectSalespersonsTable",[a.id,a.parentFormId.value,escape(o),e,t,r,l?1:0],enableDialogButtons,{formId:a.id,tableId:a.id+"_salespersonTable"}),displayTimedMessage("Getting Salesperson Table..."),disableDialogButtons()}function searchOrSelectedSalespersons(e){sortSalespersons("",0,"")}function rsCallbackGetSelectSalespersonsDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectSalespersons",null,!1,i.dismisalFocusFieldName,null,!0);e&&(getObj(e.id+"_salespersonTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"cartInfoSpan",searchOrSelectedSalespersons,!1,!0,!1,null,null).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectSalespersonsDialog(e,t,i,a){var o=getObj(t),o=getCompoundSelectionValue(o.salespersonId,o.salespersonIdSelect);jsrsExecute(rsCallbackGetSelectSalespersonsDialog,"Dialog_GetSelectSalespersonsDialog",[t,escape(o),a?1:0],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select Salesperson Dialog..."),disableDialogButtons()}function submitSelectSalespersons(e){submitSelectCustomCompoundSelect(e,"salesperson")}function sortPriceLists(e,t,i){var a=getObj("frmSelectPriceLists"),o=reconstructSimpleShoppingCart(a.id),r=o.doShowSelectedOnly()?1:0,o=o.getContentDescriptor().getIdList();jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectPriceListsTable",[a.id,a.parentFormId.value,escape(o),e,t,r],enableDialogButtons,{formId:a.id,tableId:a.id+"_priceListTable"}),displayTimedMessage("Getting "+getPrefixedEEPLString()+" Table..."),disableDialogButtons()}function searchOrSelectedPriceLists(e){sortPriceLists("",0,"")}function rsCallbackGetSelectPriceListsDialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectPriceLists",null,!1,i.dismisalFocusFieldName,null,!0);e&&(getObj(e.id+"_priceListTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"cartInfoSpan",searchOrSelectedPriceLists,!1,!0,!1,null,null).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectPriceListsDialog(e,t,i){var a=getObj(t),a=getCompoundSelectionValue(a.priceTypeId,a.priceTypeIdSelect);jsrsExecute(rsCallbackGetSelectPriceListsDialog,"Dialog_GetSelectPriceListsDialog",[t,escape(a)],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select Price List Dialog..."),disableDialogButtons()}function submitSelectPriceLists(e){submitSelectCustomCompoundSelect(e,"priceType")}function sortAccountForPriceList(e,t,i){var a=getObj("frmSelectAccountForPriceList"),o=a.priceListId.value,i=i.split(","),i=unescape(i[0]);jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectAccountForPriceListTable",[a.id,"",i,e,t,o],enableDialogButtons,{formId:a.id,tableId:a.id+"_accountForPriceListTable"}),displayTimedMessage("Getting Account For Price Lists Table..."),disableDialogButtons()}function searchOrSelectedAccountForPriceList(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortAccountForPriceList("",0,escape(t))}function rsCallbackGetSelectAccountForPriceListSubdialog(e,t,i){e=processSimpleStackedSubdialogCallback(e,"frmSelectAccountForPriceList",null,!0,i.dismisalFocusFieldName);e&&(getObj("frmSelectAccountForPriceList_accountForPriceListTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectAccountForPriceList","cart",!0,"selectAccountForPriceListCartInfoSpan",searchOrSelectedAccountForPriceList,!0,!1,!0).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId),e.onSelectFn=i.onSelectFn||null)}function selectAccountForPriceListForCompoundSelection(e,t,i,a,o,r){var l;o?(l=getObj(t),getCompoundSelectionValue(l[a+"Id"],l[a+"IdSelect"]),jsrsExecute(rsCallbackGetSelectAccountForPriceListSubdialog,"Dialog_GetSelectAccountForPriceListSubdialog",[t,a,o],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name,onSelectFn:r||null}),displayTimedMessage("Getting Select Account For Price List Dialog..."),disableDialogButtons()):showInfoDialog("Please select an active Price List.","Select A Price List",1,"priceTypeId")}function getTypeAheadAccountForPriceList(e,t){var e=e.priceTypeId.value,i={extraHTMLColumnIndex:2};e&&(i.expectedContextId=jsrsExecute(rsCallbackGetTypeAheadSearchText,"Dialog_GetTopAccountInfosForPriceListGivenPrefix",[escape(t),e],hideTimedMessage,i))}function sortPriceListsWithOrWithoutProduct(e,t,i){var a=getObj("frmSelectPriceLists"),o=a.productId.value,r="1"==a.withProduct.value,l=reconstructSimpleShoppingCart(a.id),n=0,l=(l.doShowSelectedOnly()&&(n=1),l.getContentDescriptor().getIdList());jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectPriceListsWithOrWithoutProductTable",[a.id,a.parentFormId.value,escape(l),n,e,t,o,r?1:0],enableDialogButtons,{formId:a.id,tableId:a.id+"_priceListTable"}),displayTimedMessage("Getting Price Lists Table..."),disableDialogButtons()}function searchOrSelectedPriceListsWithOrWithoutProduct(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortPriceListsWithOrWithoutProduct("",0,escape(t))}function rsCallbackGetSelectPriceListsWithOrWithoutProductDialog(e,t,i){processSimpleStackedSubdialogCallback(e,"frmSelectPriceLists",null,!1,i.dismisalFocusFieldName,null,!0)&&(getObj("frmSelectPriceLists_priceListTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectPriceLists","cart",!0,"cartInfoSpan",searchOrSelectedPriceListsWithOrWithoutProduct,!1,!0).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function getSelectPriceListWithOrWithoutProductDialog(e,t,i,a,o,r,l){var n=getObj(t),n=getCompoundSelectionValue(n[r+"Id"],n[r+"IdSelect"]);jsrsExecute(rsCallbackGetSelectPriceListsWithOrWithoutProductDialog,"Dialog_GetSelectPriceListsWithOrWithoutProductDialog",[t,n,a,o?1:0,escape(r),escape(l||"")],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select Price Lists Dialog..."),disableDialogButtons()}function sortCostListsWithProduct(e,t,i){var a=getObj("frmSelectCostLists"),o=a.productId.value,r=reconstructSimpleShoppingCart(a.id),l=0,r=(r.doShowSelectedOnly()&&(l=1),r.getContentDescriptor().getIdList());jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectCostListsWithProductTable",[a.id,a.parentFormId.value,escape(r),l,e,t,o],enableDialogButtons,{formId:a.id,tableId:a.id+"_costListTable"}),displayTimedMessage("Getting Cost Lists Table..."),disableDialogButtons()}function searchOrSelectedCostListsWithProduct(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortCostListsWithProduct("",0,escape(t))}function rsCallbackGetSelectCostListsWithProductDialog(e,t,i){processSimpleStackedSubdialogCallback(e,"frmSelectCostLists",null,!1,i.dismisalFocusFieldName,null,!0)&&(getObj("frmSelectCostLists_costListTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectCostLists","cart",!0,"cartInfoSpan",searchOrSelectedCostListsWithProduct,!1,!0).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function getSelectCostListsWithProductDialog(e,t,i,a,o,r){var l=getObj(t),l=getCompoundSelectionValue(l[o+"Id"],l[o+"IdSelect"]);jsrsExecute(rsCallbackGetSelectCostListsWithProductDialog,"Dialog_GetSelectCostListsWithProductDialog",[t,l,a,escape(o),escape(r||"")],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select Cost Lists Dialog..."),disableDialogButtons()}function sortProductsForVariantDefinition(e,t,i){var a=getObj("frmSelectProductForVariantDefinition"),i=i.split(","),i=unescape(i[0]),o=a.supplierId.value,r="1"==a.includeInactive.value,l="1"==a.includeProductInfo.value,n="1"==a.includeMeasureInfo.value,s=a.costTypeId.value;jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectProductForVariantDefinitionTable",[a.id,a.parentFormId.value,escape(i),e,"",o,r?1:0,l?1:0,n?1:0,escape(a.selectedProductId.value),s],hideTimedMessage,{formId:a.id,tableId:a.id+"_productForVariantDefinitionTable"}),displayTimedMessage("Getting Select Product For Variant Definition Table...")}function searchOrSelectedProductForVariantDefinition(e){var e=e.getForm(),t="";e.search&&""===e.search.style.display&&(t=e.search.value),sortProductsForVariantDefinition("",0,escape(t))}function rsCallbackGetSelectProductForVariantDefinitionTableForDialog(e,t,i){var a;checkResponseForError(e)&&(a="frmSelectProductForVariantDefinition",e='
    X Items Selected
    '+e+"
    ",showDialogP(e,a,{formTitle:"Select Product",isSubdialog:1,subdialogDismisalFocusFieldName:i.dismisalFocusFieldName,focusFieldName:"btnAddMaterials",contextDetailOrFnSubmit:{fnCancelOrClose:function(){hideSubdialog()}},hideOkButton:1}),e=getObj(a))&&((a=getObj(e.id+"_productForVariantDefinitionTable")).onclick=doClick,initializeSimpleShoppingCartFromFormFields(e.id,"cart",!0,"prodForVariantCartInfoSpan",searchOrSelectedProductForVariantDefinition,!0,!1,!0).updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId),new FormInputNormalizer(g_objCurrDialog).normalize(),i.scrollToHighlighted)&&scrollToHighlightedSubDItem(e,a)}function showSelectProductForVariantDefinitionDialog(e,t,i,a,o,r,l,n,s){var c=getObj(t).productId.value;jsrsExecute(rsCallbackGetSelectProductForVariantDefinitionTableForDialog,"Dialog_GetSelectProductForVariantDefinitionTable",["frmSelectProductForVariantDefinition",t,"","","",a||"",r?1:0,n?1:0,s?1:0,escape(c),o],enableDialogButtons,{dismisalFocusFieldName:i.name,scrollToHighlighted:c.length?1:0,parentFormId:t,supplierId:a,includeInactive:r,escapedOnSelectCode:l,includeProductInfo:n,includeMeasureInfo:s,costTypeId:o}),displayTimedMessage("Getting Select Product For Variant Definition Info..."),disableDialogButtons()}function showHideAvailableProductHierarchyDescriptionAsNecessary(e,t,i,a){var o,r=getObj("productHierarchyDescription");r&&(e?(o=e.split("?"),t=unescape(o[t]),i=unescape(o[i]),a=unescape(o[a]),r.innerHTML="  "+htmlEncode(i+" - "+a+" ("+t+")")):r.innerHTML="",getObj("productHierarchyDescriptionRow"))&&(getObj("productHierarchyDescriptionRow").style.display=e?"":"none")}function setProductForVariantDefinitionSelectionFieldValue(formId_,parentFormId_,id_,value_){var theForm=getObj(formId_),theParentForm=getObj(parentFormId_),strOnSelect=(setCompoundSelectionValue(theParentForm.productId,theParentForm.productName,null,id_,value_),theForm.onSelectCode.value);hideSubdialog(),strOnSelect&&eval(strOnSelect)}function getProductInfoForTypeAhead(e,t,i){var a=!1,o=!0,r=!1,l=(e.includeInactive&&(a="1"==e.includeInactive.value),e.includeProductInfo&&(o="1"==e.includeProductInfo.value),e.includeMeasureInfo&&(r="1"==e.includeMeasureInfo.value),{expectedContextId:null,extraHTMLColumnIndex:2}),i=i&&i.handlingFocus?1:0;!e.cachedProductTypeAhead||!i&&t?l.expectedContextId=jsrsExecute(rsCallbackGetTypeAheadSearchText,"Dialog_GetTopProductsForVariantDefinitionGivenPrefix",[escape(t),e.supplierId?e.supplierId.value:"",a?1:0,o?1:0,r?1:0,e.costTypeId?e.costTypeId.value:""],hideTimedMessage,l):(l.forceIgnoreCurrentTextForBold=i?1:0,rsCallbackGetTypeAheadSearchText(e.cachedProductTypeAhead.value,1,l))}function getProductInfoForTypeAheadForcingEmpty(e,t,i){return getProductInfoForTypeAhead(e,"",i,{textToAddOrMatch:t||""})}function asynchShowSelectSellProductDropdown(e,t){getObj("typeAheadDiv").ignoreFocus=!1,handleTypeAheadTextBoxFocus(null,e,{formId:e,textFieldName:t,idFieldName:"productId",fnGetTypeAheadData:getProductInfoForTypeAheadForcingEmpty,forceTypeAheadOnFocus:!0,showTypeAheadWhenUnmatched:!0,ignoreCurrentTextForBold:!0,forceImmediatePopup:!0})}function showSelectProductInfoForTypeAhead(e,t){getObj("typeAheadDiv").ignoreFocus=!0,setFocus(getObj(e)[t]),setTimeout('asynchShowSelectSellProductDropdown("'+e+'","'+t+'")',0)}function submitSelectFields(formId_){var theForm=getObj(formId_),strCartNameSuffix=theForm.cartNameSuffix.value,strOriginalCartNameSuffix=theForm.originalCartNameSuffix.value,strValidationFunctionName=theForm.validationFunctionName.value,cart=getObj("fieldCart"+strCartNameSuffix),columns=ToolMan.dragsort().encodeNestedListStructure(cart,cartStripper,strCartNameSuffix),validationResult=!0,strInnerHtml,strInnerHtml,list;strValidationFunctionName&&eval("validationResult="+strValidationFunctionName+"(columns);"),validationResult&&(strInnerHtml=cart.innerHTML.replace(new RegExp("cartrow_"+strCartNameSuffix,"g"),"cartrow_"+strOriginalCartNameSuffix),strInnerHtml=strInnerHtml.replace(new RegExp("'"+strCartNameSuffix+"'","g"),"'"+strOriginalCartNameSuffix+"'"),list=getObj("optionsFieldCart"+strOriginalCartNameSuffix),list.innerHTML=unescape(strInnerHtml),ToolMan.dragsort().makeListSortable(list,verticalDragSortOnly),hideSubdialog(),scrollParentDialogIfNecessary(list))}function rsCallbackGetSelectFieldsDialog(e,t,i){var a,o,e=processSimpleStackedSubdialogCallback(e,"frmSelectFields",null,!1,i.dismisalFocusFieldName,null,!0);e&&(i=e.cartNameSuffix?e.cartNameSuffix.value:"",e=ToolMan.dragsort(),a="fieldCart"+i,(o=getObj(a))||alert("rsCallbackGetSelectFieldsDialog() - Couldn't get the cart using strCartId="+a),e.makeListSortable(o,verticalDragSortOnly),initFieldOrganizerForCartCommonFields(i))}function rsCallbackGetSelectFieldsInfo(e,t){var i="frmSelectFields",a=t.originalPayload,t=t.originalOptions,o=t.parentFormId,r=a.cartNameSuffix,a=a.fieldListType,l=t.validationFunctionName,t=t.originalCartNameSuffix,n=new ClientDialogBuilder({formId:i,formTitle:e.formTitle,okButtonDisplayText:"Apply",fnSubmit:function(){submitSelectFields(i)}});n.addFlexibleRow({valueHTML:e.selectorDivHtml}),n.addFlexibleRow({valueHTML:'',hideRow:1}),(e=n.showClientDialog())&&(o=e.cartNameSuffix?e.cartNameSuffix.value:"",a=ToolMan.dragsort(),r="fieldCart"+o,(l=getObj(r))||(consoleLog("rsCallbackGetSelectFieldsDialog() - Couldn't get the cart using strCartId="+JSON.stringify(r)),alert("rsCallbackGetSelectFieldsDialog() - Couldn't get the cart using strCartId="+r)),a.makeListSortable(l,verticalDragSortOnly),initFieldOrganizerForCartCommonFields(o))}function showAddListFieldsUsingSubdialogP(e){var t=e.formId,i=e.button,a=e.fieldListType,o=e.primarySeparator,r=e.validationFunctionName,l=e.originalCartNameSuffix,n=e.customRemoteScriptingFunctionName,s=e.arrAdditionalParamsForSelect,e=e.isClientSideR2,c="subD_"+g_subdialogStack.length+"cartSfx",l=l||"",r=r||"",d=getObj("optionsFieldCart"+l),d=ToolMan.dragsort().encodeNestedListStructure(d).replace(new RegExp("cartrow_"+l,"g"),"");if(o&&","!=o&&(d=d.replace(/\,/g,o)),e)jsrsExecuteWithErrorP("Dialog2_GetSelectFieldsInfo",rsCallbackHandleStandardJSONResponse,"Getting Field Selection Info",{cartNameSuffix:c,cartContents:d,fieldListType:a},{parentFormId:t,validationFunctionName:r,originalCartNameSuffix:l,fnOnSuccess:rsCallbackGetSelectFieldsInfo});else{var u=[t,escape(c),escape(d),escape(a),escape(r),escape(l)],o="Getting Select Fields Dialog";if(s)for(var g=0;g60*r&&60*d.hours+d.minutes<60*r+30&&(l+=","+escape(s)+":"+escape(c)),l+=","+escape(get24HourTime(r,30))+":"+escape(getAMPMTime(r,30)),d&&60*d.hours+d.minutes>60*r+30&&60*d.hours+d.minutes<60*r+60&&(l+=","+escape(s)+":"+escape(c));rsCallbackGetTypeAheadSearchText(l,1,{expectedContextId:1})}}function getInfoForTimeTypeAheadForcingEmpty(e,t,i){return getInfoForTimeTypeAhead(e,"",i,{textToAddOrMatch:t||""})}function asynchShowTimePicker(e,t){getObj("typeAheadDiv").ignoreFocus=!1,handleTypeAheadTextBoxFocus(null,e,{formId:e,textFieldName:t,idFieldName:e+"."+t+".id",fnGetTypeAheadData:getInfoForTimeTypeAheadForcingEmpty,forceTypeAheadOnFocus:!0,showTypeAheadWhenUnmatched:!0,ignoreCurrentTextForBold:!0,forceImmediatePopup:!0})}function showTimePicker(e,t,i){getObj("typeAheadDiv").ignoreFocus=!0,setFocus(getObj(t)[i]),setTimeout('asynchShowTimePicker("'+t+'","'+i+'")',0)}function sortActivityStatuses(e,t,i){var a=getObj("frmSelectActivityStatus"),o=reconstructSimpleShoppingCart(a.id),r=o.getContentDescriptor().getIdList();jsrsExecute(rsCallbackGetStandardSimpleShoppingCartTable,"Dialog_GetSelectActivityStatusTable",[a.id,a.parentFormId.value,escape(r),e,t,o.doShowSelectedOnly()?1:0,o.isActiveOnlyChecked()?1:0],enableDialogButtons,{formId:a.id,tableId:a.id+"_activityStatusTable"}),displayTimedMessage("Getting Search Categories Table..."),disableDialogButtons()}function searchOrSelectedActivityStatuses(e){sortActivityStatuses("",0,"")}function rsCallbackGetSelectActivityStatusDialog(e,t,i){processSimpleStackedSubdialogCallback(e,"frmSelectActivityStatus",null,!1,i.dismisalFocusFieldName,null,!0)&&(getObj("frmSelectActivityStatus_activityStatusTable").onclick=doClick,initializeSimpleShoppingCartFromFormFields("frmSelectActivityStatus","cart",!0,"cartInfoSpan",searchOrSelectedActivityStatuses,!1,!0,!1,null,"Active Statuses Only").updateCheckBoxesAccordingToCart(decodeQuestionMarkDelimitedCheckboxValueForId))}function showSelectActivityStatusDialog(e,t,i,a){var o=getObj(t),o=getCompoundSelectionValue(o[a+"Id"],o[a+"IdSelect"]);jsrsExecute(rsCallbackGetSelectActivityStatusDialog,"Dialog_GetSelectActivityStatusDialog",[t,escape(o),escape(a)],enableDialogButtons,{parentFormId:t,dismisalFocusFieldName:i.name}),displayTimedMessage("Getting Select Activity Status Dialog..."),disableDialogButtons()}function selectedProcessForJobOnEditQuote(){for(var e=0;e'+o+'
    '),t?(i="txtPassword",r="Change Password",a+='User Name:"+htmlEncode(t)+'Old Password:New Password:Confirm New Password:"):a+='User Name:Password:",disableDialogButtons(),showDialogP(a,l,{formTitle:r,focusFieldName:i,contextDetailOrFnSubmit:submitReviveSession,isSessionReviver:1,okButtonDisplayText:t?"Ok":"Sign In"})}return 1}function submitEditOrAddTaxRate(e,t){var i,a,o,r,l=t.id,n=t.arrTaxCodeList,s=new FormValidator,c=e.txtName,d="";if(s.CSValidateRequiredField(c,"Please enter a Name")){for(a=0;a&#'+FontIconId_Enum.fiiFilledCircle+";"+(a.itemHTML||htmlEncode(a.name))+"\n":s+='\n",s+="");t.innerHTML=s}l&&(l.innerHTML="&#"+getRawFontId(FontIconId_Enum.fiiDownChevron)+";"),t.style.display="",t.setAttribute(r,"1")}}}function showHelpMenu(){showHelpMenuP()}var ChartAdapter=function(){function D(){var e,t,i,a;g_chart&&g_chartId&&(e=g_chart,t=getObj(g_chartId),e)&&t&&(a=pageHeight(),i=getObj("mainToolbar"),getObj("divV2Content"),i&&parseInt(getComputedStyle(i).height,10),0<(i=a-posTop(t,!0)-3)&&(t.style.height=i+"px",t.parentNode.style.maxHeight=i+"px"),0<(a=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-posLeft(t,!0)-25)&&(t.style.width=a+"px",t.parentNode.style.maxWidth=a+"px"),e)&&e.resize()}return{showChart:function C(e){var t,i,a,o=e.chartId,r=e.legendId,l=e.data,n=e.yAxisLabel,s=e.xAxisLabel,c=e.showPointLabels,d=e.chartType,u=e.rotateLabels,g=e.height,m=e.width,p=e.maxY,b=e.responsive,h=e.autoSkip,f=e.categoryPercentage,S=!!e.beginYAxisAtZero,y=e.yAxisSuggestedMin,e=e.yAxisSuggestedMax,v=getObj(o);v?(l.showPointLabels=c,a={scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legend:{display:null!==r,labels:{fontSize:12,fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif'}},tooltips:{callbacks:{title:function(e,t){var i,a,o=0i()?e.substr(0,i()-5)+" ...":e)+" "}},afterCalculateTickRotation:u?function(e){e.labelRotation=90;var t=e.height;t===undefined&&(t=-1);for(var i=0;i"+t+"":t,"/*selectedDateFilterSpecType*/selectedEventLogDateFilterSpecType(event,'"+i.id+"',"+a+(o?",'"+o+"'":"")+")")}function showSelectUserChangeLogDateOptionsMenu(e,t){var i=new ContextMenu("clsDateFilterMenu");addEventLogDateFilterSpecItem(i,"Last N Days",t,EventLogDateFilterOptions_Enum.eldfoDaysAgo,"lastDays"),i.AddInactiveHTMLTitledItem('
    Date
    '),addEventLogDateFilterSpecItem(i,"After",t,EventLogDateFilterOptions_Enum.eldfoAfter,"fromDate",1),addEventLogDateFilterSpecItem(i,"Before",t,EventLogDateFilterOptions_Enum.eldfoBefore,"toDate",1),addEventLogDateFilterSpecItem(i,"Between",t,EventLogDateFilterOptions_Enum.eldfoBetween,"fromDate",1),i.Show(e)}function exportToSpreadsheet(i,a){var o="frmConfirmExport",r="rbExportType",e=r+"_Current",t=new ClientDialogBuilder({formId:o,formTitle:"Export",focusFieldName:e,focusFieldOnMobile:1,okButtonDisplayText:"Export",fnSubmit:function(){var e=getObj(o).querySelector('input[name="'+r+'"]:checked').value,t=(hideDialog(),addRemoveOrReplaceURLParameter(window.location.href,"spreadsheet","1")),t=addRemoveOrReplaceURLParameter(t,"exportType",e);t=addRemoveOrReplaceURLParameter(t,"table",i),a&&(t=addRemoveOrReplaceURLParameter(t,"outputFileName",a)),window.open(t,"_blank")}});t.addFlexibleRow({rawValue:"What would you like to export?"}),t.addDialogInteriorRows(cdBuildRBRowP(r,e,"Current Page",{checked:1,autofocus:1,fieldValue:"CurrentPage"})+cdBuildRBRowP(r,r+"_All","All Pages",{fieldValue:"AllPages"})),t.showClientDialog()}function positionToolbar(){var e,t=getObj("mainToolbar"),i=getObj("pageToolStrip"),a=getObj("btnToolstripHamburgerMenu"),o=getObj("v2LeftNavContainer");a&&t&&i&&o&&(i=Object.prototype.hasOwnProperty.call(window,"g_stickyTableHeadersScrollVersion")&&g_stickyTableHeadersScrollVersion===TableHeaderScrollImpl_Enum.thsiFixedPosition,e=pageWidth(),o=parseFloat(getComputedStyle(o).width),isNaN(o),getComputedStyle(a.parentNode).display,o=window.pageXOffset||document.documentElement.scrollLeft,i)&&(t.style.position="fixed",t.offsetWidth+(a=0)>e&&(i=t.offsetWidth+0-e,a=Math.min(i,o)),t.style.minWidth="calc(100% + "+Math.abs(+a)+"px)",t.style.left=0-a+"px")}function showDialogButtons(e){var t=document.getElementsByClassName("uiv2DialogButtonMenu"),i=document.getElementsByClassName("uiv2DialogButtons");if(t&&1===t.length&&i&&1===i.length){for(var a=t[0].getBoundingClientRect(),o=posLeft(t[0]),t=posTop(t[0]),r=new ContextMenu("uiv2DialogButtonContextMenu"),l=i[0].querySelectorAll("button, a.buttonLink"),n=0;n"+htmlEncode(c.getAttribute("data-mwtooltip"))+"",u=c.getAttribute("onclick");"a"===c.tagName.toLowerCase()?(s=c.getAttribute("href"))&&(u="hideDialog();window.location='"+s+"';"):u=u.replace(new RegExp('"',"g"),"""),r.AddHTMLTitledScriptItem(c.innerHTML+d,u)}r.Show(e,o+(a.right-a.left)/2,t-(a.top-a.bottom)/2)}}function clearInputFile(e){if(e.value){try{e.value=""}catch(o){}var t,i,a;e.value&&(t=document.createElement("form"),i=e.parentNode,a=e.nextSibling,t.appendChild(e),t.reset(),i.insertBefore(e,a))}}function onFileInputChange(e){for(var t=e;null!==t&&"form"!==t.tagName.toLowerCase()&&"td"!==t.tagName.toLowerCase();)t=t.parentNode;if(t){findFirstDescendantWithAClass(t,["uploadedFilesHeader"]);for(var i=findFirstDescendantWithAClass(t,["uploadedFiles"]);0(Optional)'}),document.createElement("tbody"));a.setAttribute("id","editQuoteDepositDiv"+o),a.innerHTML=t,a.className="dialogFieldGrouper",s.parentNode.insertBefore(a,s),e&&setTimeout("SetDepositFocus("+o+");",5)}function deleteQuoteDeposit(e){var t=getObj(getQuoteDepHolderFormId());parseInt(t.maxDepositCount.value,10);removeNode(getObj("editQuoteDepositDiv"+e))}function SetDepositFocus(e){var t=getObj(getQuoteDepHolderFormId());setFocus(t["Deposit"+e])}var g_filterReportsTimeout,g_lastFilterReportsValue="";function doFilterReports(){var e,t,i,a,o,r,l,n,s,c=getObj("reportSearchTerm").value.toLowerCase(),d=["s","m"];if(c!=g_lastFilterReportsValue)for(g_lastFilterReportsValue=c,e=0;e'+t.strLinkName+"",e.addFlexibleRow({valueHTML:i}),a=!0):"-"!==t&&!t.isSeparator||(e.addFlexibleRow({valueHTML:"
    "}),a=!0)),a}function showSimpleActionButtonDialogV2(e){var t,i,a,o=e.arrLinkInfo,r=e.fnAddPreambleDialogRows,l=new ClientDialogBuilder({formId:"frmSimpleActionButtonDialog",formTitle:e.rawFormTitle||"",fnCancelOrClose:e.fnCancelOrClose,focusFieldName:"btnAddLine0",focusFieldOnMobile:1});for(r&&r(l),t=0;t");showInfoDialog('The following file'+(1

    "+htmlMultilineEncode(i)+'

    '+o()+"","Invalid Image Files",1,e)},getValidImageFileTypesMessage:o}}(); var Layout=function(){function a(e){return((e||{}).tagName||"").toLowerCase()}function f(e){var t,n,i=e.candidateElement,o=e.currentExtremeElement,e=e.compareRightEdge,r=o||i;return i&&o&&(t=i.getBoundingClientRect(),n=o.getBoundingClientRect(),t=e?t.right:t.left,n=e?n.right:n.left,r=e?n"+i+"":i}function buildDialogSubmitButtonRow(e){var t,o,i,n,l=e.formId,a=e.formTitle,d=e.renderMainButtonRowInSections,s=e.hideOkButton,r=e.includeBackButton,u=e.arrAdditionalSubmitLevelButtons,c=e.okButtonDisplayText,m=e.doubleQuoteEncodedOkButtonTitle||"",e=e.cssClassPrefix,m=m?' data-mwtooltip="'+m+'"':"",g="doSubmitClientDialog('"+l+"');return false;",p=[],f="",b="",F="",C="";if(u)for(t=0;t<< Back'),s||((r=c||"")||(r="Save",a&&(stringStartsWith(a,"Delete")?r="Delete":stringStartsWith(a,"Remove")?r="Remove":stringStartsWith(a,"Generate")?r="Generate":stringStartsWith(a,"Import")?r="Import":stringStartsWith(a,"Synch")&&(r="Synch"))),b+=' "),t=0;t',f&&(i+=''+f+""),b&&(i+=''+b+""),F&&(i+=''+F+""),i+=""):i=f+b+F+"",C=''+i+""),C}function showDialogP(e,t,o){var i=(o=o||{}).dialogBoxAdditionalClasses,n=o.additionalDialogHeaderRowClasses||"",l=null,a=o.arrExtraHeaderButtons,d=headerButtonsApply(a=a&&a.filter(function(e){return!(!e||!trim(e))})),s=o.formAction||"",s=s?'action="'+s+'" ':'action="#" ',r=o.skipHeaderButtonCollapse||d&&1===a.length,u=o.isSessionReviver||o.isSubdialog?1:0;if(isDialogOrBusy(u))return null;o.isSubdialog||"function"!=typeof hideDrawingPopups||hideDrawingPopups(),o.isSubdialog||"function"!=typeof hideContextMenu||hideContextMenu();u=o.contextDetailOrFnSubmit;if("function"==typeof u)u={fnSubmit:u};else if(!(o.hideOkButton||u&&u.fnSubmit))return alert("Missing fnSubmit in context detail!"),consoleLog("Missing fnSubmit. tmpContextDetailOrFnSubmit="+JSON.stringify(u)),null;o.isSessionReviver?g_sds=1:g_ds=1;var c=o.cssClassPrefix||"",m=o.isSessionReviver?"divReLoginDialog":"divClientSideDialog"+(g_clientDialogStack.length+1),g="doCloseOrCancelClientDialog('"+t+"',"+(o.isSubdialog?1:0)+");return false;",p=o.dialogRowsTableClasses||"",f=t+"DlgDiv",s='
    '+e+"
    '+htmlEncode(o.formTitle||"-Untitled-")+''+buildHeaderButtonSectionIfNecessary(a,r)+'',n=(d&&!r&&(s+="
    &#"+getRawFontId(FontIconId_Enum.fiiVerticalEllipsis)+";
    "),s+='',o.isSubdialog||o.forceUseBackButtonForClose?s+='&#'+getRawFontId(FontIconId_Enum.fiiCircledLeftArrow)+";":s+='&#'+getRawFontId(FontIconId_Enum.fiiX)+";",s=(s=(s+='
    ")+buildDialogSubmitButtonRow({formId:t,formTitle:o.formTitle,renderMainButtonRowInSections:o.renderMainButtonRowInSections,hideOkButton:o.hideOkButton,includeBackButton:o.includeBackButton,arrAdditionalSubmitLevelButtons:o.arrAdditionalSubmitLevelButtons,okButtonDisplayText:o.okButtonDisplayText,doubleQuoteEncodedOkButtonTitle:o.doubleQuoteEncodedOkButtonTitle,cssClassPrefix:c}))+('
    "),o.isSubdialog&&disableDialogButtons(),i=new ClientDialog(s='
    '+s+"
    ",o.subdialogDismisalFocusFieldName,o.subdialogDismisalFocusFieldId,m,t,o.isSubdialog).getObjDialog(),o.isSessionReviver&&(i.zIndex=999),g_showDialogIsStackedClientDialog=1,(l=getObj(t)).contextDetail=u,g_bSkipNavWarning=!0===o.skipNavWarning,setTimeout(function(){var e;!o.focusFieldName||Object.prototype.hasOwnProperty.call(window,"g_isMobile")&&g_isMobile&&!o.focusFieldOnMobile?(e=getObj(t+".dialogCloseButton"),setFocus(e)):(e=getObj(t))&&(e=e[o.focusFieldName],setFocus(e),o.focusFieldOnMobile)&&e&&setTimeout(function(){getObj(t)&&document.body.scrollTop&&(document.body.scrollTop=0)},0)},0),getObj(t+"DlgDiv"));return n.style.visibility="visible",n.style.zIndex="201",showDialogCover(),scrollDialogIfNecessary(t),o.suppressDialogConfirmer||setDialogConfirmer(n),o.suppressNormalizeInputFields||new FormInputNormalizer(n).normalize(),l}function showDialog(e,t,o,i,n,l,a,d,s,r,u,c,m,g,p){showDialogP(e,t,{formTitle:o,focusFieldName:i,contextDetailOrFnSubmit:n,includeBackButton:l,okButtonDisplayText:a,hideOkButton:d,isSubdialog:r,subdialogDismisalFocusFieldName:u,subdialogDismisalFocusFieldId:c,hideCancelButton:m,skipNavWarning:g,skipCentering:p})}function showCGOrJTDialog(e,t,o,i,n){e&&!t?n.cssClassPrefix="cg":t&&!e&&(n.cssClassPrefix="jt"),showDialogP(o,i,n)}function showSubdialog(e,t,o,i,n,l,a,d,s,r,u,c,m,g,p){showDialogP(e,t,{formTitle:o,focusFieldName:i,contextDetailOrFnSubmit:n,includeBackButton:l,okButtonDisplayText:a,hideOkButton:d,isSubdialog:1,subdialogDismisalFocusFieldName:r,subdialogDismisalFocusFieldId:u,hideCancelButton:c,cssClassPrefix:m,skipNavWarning:g,skipCentering:p})}function showComplexInfoDialog(e,t,o,i,n,l){showDialog(e,"frmTmpMessage",t,"",0,0,0,1,"",o,i,n,0,l)}function showInfoDialog(e,t,o,i,n){showComplexInfoDialog(''+e+"",t,o,i,n)}function submitInfoWithConseq(e,t){t.autoDismissInfoDialog&&(t.subdialog?hideSubdialog:hideDialog)(),t.fnOk(e,t.params)}function showComplexInfoDialogWithConsequence(e,t,o,i,n,l,a,d){if(!o)throw'Missing "fnOk_" parameter to showComplexInfoDialogWithConsequence()';showDialog(e,"frmTmpMessage",t,"btnOk",{fnSubmit:submitInfoWithConseq,callbackData:{fnOk:o,params:i||0,autoDismissInfoDialog:!d,subdialog:n?1:0}},0,0,0,0,n,l,a,1)}function showInfoDialogWithConsequence(e,t,o,i,n,l,a,d){showComplexInfoDialogWithConsequence(""+e+"",t,o,i,n,l,a,d)}function getCallbackDataOfDialog(e){return e.contextDetail.callbackData}function getCallbackDataOfDialogWithId(e){return getCallbackDataOfDialog(getObj(e))}function commonSubmitFormFunction(e,t){var e=getObj(e),o=e.contextDetail,i=o.callbackData;o.fnSubmit(e,i||0,t?1:0)}function doSubmitClientDialog(e){g_wk||commonSubmitFormFunction(e)}function doCloseOrCancelClientDialog(e,t){var o,i,n;!g_wk&&(o=(i=(e=getObj(e)).contextDetail)?i.callbackData:0,n=1,n=(i=i?i.fnCancelOrClose:0)?i(e,o||0):n)&&(t?hideSubdialog():hideDialogP({callback:function(){}}))}function submitClientDialogOnEnter(e,t){var o;if(window.event)o=window.event.keyCode;else{if(!t)return!0;o=t.which}return""+o!="13"||(doSubmitClientDialog(e),!1)}function handlePostConfirmation(e,t){t.dontHideDialogOnSubmit||(t.subdialog?hideSubdialog:hideDialog)(),t.fn(t.detail)}function displaySimpleConfirmationDialogP(e,t,o){var i=(o=o||{}).formId||"frmConfirmation";isDialogOrBusy(o.isSubdialog)||showDialogP(''+t+"",i,{formTitle:o.formTitle,focusFieldName:"btnOk",contextDetailOrFnSubmit:{fnSubmit:handlePostConfirmation,fnCancelOrClose:o.fnCancelOrClose||0,callbackData:{fn:e,detail:o.contextDetail||0,subdialog:o.isSubdialog?1:0,dontHideDialogOnSubmit:o.dontHideDialogOnSubmit}},okButtonDisplayText:o.okButtonDisplayText,hideOkButton:0,isSubdialog:o.isSubdialog,subdialogDismisalFocusFieldName:o.subdialogDismisalFocusFieldName,cssClassPrefix:o.cssClassPrefix})}function displaySimpleConfirmationDialog(e,t,o,i,n,l,a,d,s,r){displaySimpleConfirmationDialogP(e,t,{formTitle:o,contextDetail:i,isSubdialog:n,subdialogDismisalFocusFieldName:l,okButtonDisplayText:a,fnCancelOrClose:d,dontHideDialogOnSubmit:s})}function buildSubmitOnEnterCode(e){return" onkeypress=\"return submitClientDialogOnEnter('"+e+"',event);\""}function cdBuildMnemonicLabelHTML(e){var t,o=e.mnemonicChar,i=e.mnemonicFocusFieldName,n=e.expandingFieldNameBase,l=e.mnemonicActionJS,a=e.rawLabel||"",e=e.includeRequiredFieldAsterisk;if(o&&(l||i||n)&&a){l=l||(i?"setDlgFieldFocus('"+i+"')":"ClientDialogModule.PROTECTED.setFocusExpandingTextField('"+n+"')"),i=a.toLowerCase().indexOf(o.toLowerCase());if(-1'+a.substring(i,i+1)+"
    "+htmlEncode(a.substring(i+1))}}return t=t||htmlEncode(a),t=e?ClientDialogModule.PROTECTED.getRequiredFieldAsteriskHtml()+t:t}function cdBuildOpenDialogLabelCell(e,t){e=e?' id="'+e+'"':"",t=trim("dialogFieldName "+(t||""));return""}function cdBuildFontIconElem(e){var t=e.fontId,o=e.fontIconElemId,i=e.terseFontIcon?"Terse":"",o=o?' id="'+o+'"':"",n=e.additionalFontIconClasses||"",i=getFontNamePrefix(t)+i+"Icon"+(n?" "+n:""),n=e.hideIcon?' style="display:none"':"",e=e.rawTooltip;return"&#'+getRawFontId(t)+";"}function cdBuildTypeaheadSideButton(e){var t=e.sideButtonClasses,o=e.rawSideButtonTitle,e=e.rawActivationJS;return'"}function cdBuildTextAreaFieldP(e,t){var o=(t=t||{}).rowCount||g_notesRowCount,i=t.colCount||40,n=t.onChangeDoubleQuotedContent,l=t.unencodedText,a=t.fieldId,d=t.textAreaClasses,s="",r="",u=t.maxLength;return t.emWidth&&(r=' style="width:'+t.emWidth+"em;min-width:"+t.emWidth+'em"'),""+(l?htmlEncode(l):"")+""}function cdBuildTextAreaField(e,t,o,i){cdBuildTextAreaFieldP(e,{unencodedText:t,rowCount:o,onChangeDoubleQuotedContent:i})}function cdBuildTextAreaFieldRowP(e,t,o){var i=(o=o||{}).labelAbove,n=o.textAreaRowClasses,l=o.additionalClassesForAllTextAreaRows,n=trim((n||"")+" "+(l||"")),n=n?' class="'+n+'"':"",l=l?' class="'+l+'"':"",a=trim(o.additionalLabelCellClasses||""),d=o.postTextAreaFieldHtml||"",s=o.rowId,s=s?' id="'+s+'"':"",r=o.hideRow?' style="display:none"':"";return t=t?t+(o.suppressLabelColon?"":":"):"",i?"'+t+"'+cdBuildTextAreaFieldP(e,o)+d+"":""+cdBuildOpenDialogLabelCell(o.fieldLabelId,a)+t+''+cdBuildTextAreaFieldP(e,o)+d+""}function cdBuildTextAreaFieldRow(e,t,o,i,n,l){return cdBuildTextAreaFieldRowP(e,t,{labelAbove:n,unencodedText:o,rowCount:i,onChangeDoubleQuotedContent:l})}function cdBuildTextFieldP(e,t){var o=(t=t||{}).maxLength||0,o=o&&!t.omitMaxLength?'maxlength="'+o+'" ':"",i=t.onChangeCode||"",n=t.onClickCode||"",n=n?'onclick="'+n+'" ':"",l=t.visibilityHidden,a=t.hideField,d=t.fieldSize,d=d?'size="'+d+'" ':"",i=i?'onkeyup="'+i+'" onchange="'+i+'" ':"",s=!t.omitStyleWidth&&t.strStyleWidth||"",a=s||a||l?'style="'+(a?"display:none;":"")+(l?"visibility:hidden;":"")+(s?"width:"+s:"")+'"':"",l=t.fieldId||"",s=l?'id="'+l+'" ':"",l=t.onPasteJS,l=l?'onpaste="'+l+'"':"",r=t.additionalRawFieldAttributes?t.additionalRawFieldAttributes+" ":"",u=t.forceSuppressAutofill?"data-1p-ignore ":"",c=t.typeaheadInfo,m=c?c.forcedFullDropdownInfo:0,g=m?m.omitSideButton:0,m=m?m.rawActivationJS:"",p=m?'mjttypeaheadactivation="'+htmlEncode(m)+'" ':"",f=t.placeholder||"",b=t.fieldValue||"",F=t.strOnKeyPress||"",C="text",D=t.step,I=t.minValue,h=t.maxValue,S="",T="",m=trim((m&&!g?"input-buttonRight ":"")+(t.fieldClasses||"")),g=t.disabled?'disabled="disabled" ':"",B="",e=(t.isSearch?C="search":t.isPasswordField?C="password":t.isNumber?(C="number",void 0===D&&(D="any")):t.isEmail?C="email":t.isURL?C="url":t.isTelephone?C="tel":t.isDate?C="date":t.isMonth?C="month":t.isHiddenField&&(C="hidden"),'",c&&(e+='"),e}function cdBuildTextField(e,t,o,i,n,l,a,d,s,r){return cdBuildTextFieldP(e,{fieldValue:t,strOnKeyPress:o,maxLength:i,strStyleWidth:n,isPasswordField:l,typeaheadInfo:a,onChangeCode:d,fieldId:s,suppressAutocomplete:r})}function cdBuildTextFieldRowP(e,t,o){var i=(o=o||{}).labelAbove,n=o.rowId?' id="'+o.rowId+'"':"",l=o.hideRow?' style="display:none"':"",a=o.additionalFieldRowClasses,a=a?' class="'+a+'" ':"",d=o.additionalFieldCellClasses,d=trim("dialogFieldValue"+(d?" "+d:"")),s=o.strPostFieldHTML||"",r=o.typeaheadInfo,r=r?r.forcedFullDropdownInfo:0,u=r?r.omitSideButton:0,c=r?r.rawActivationJS:"",m=r?r.rawSideButtonTitle:"",r=r?r.sideButtonClasses:"",d=d?' class="'+d+'"':"";return c&&!u&&(s=cdBuildTypeaheadSideButton({rawActivationJS:c,sideButtonClasses:r,rawSideButtonTitle:m})+s),u=i?"":"",u+=cdBuildOpenDialogLabelCell(o.fieldLabelId,o.additionalLabelCellClasses)+(t?t+(o.suppressLabelColon?"":":"):"")+""+(i?"":"")+""+(o.strPreFieldHTML||"")+cdBuildTextFieldP(e,o)+s+"\n",i&&(u+=""),u}function cdBuildTextFieldRow(e,t,o,i,n,l,a,d,s,r,u){return cdBuildTextFieldRowP(e,t,{fieldValue:o,strOnKeyPress:i,maxLength:n,strStyleWidth:l,isPasswordField:a,typeaheadInfo:d,strPostFieldHTML:s,onChangeCode:r,rowId:u})}function cdBuildReadOnlyFieldRowP(e){var t="",o="",i=(e=e||{}).labelAbove,n=e.suppressLabelColon,l=e.hideRow?' style="display:none"':"",a=e.rowId,a=a?' id="'+a+'" ':"",d=e.additionalRowClasses,d=d?' class="'+d+'" ':"",s=e.valueCellId,s=s?' id="'+s+'" ':"",r=e.additionalValueCellClasses||"",u=ClientDialogModule.PROTECTED.buildDialogRowDataAttribute({serializableRowData:e.serializableRowData}),r=r&&" "+r;return e.labelHTML?t=e.labelHTML:e.rawLabel&&(t=htmlEncode(e.rawLabel)),e.valueHTML?o=e.valueHTML:e.rawValue&&(o=htmlEncode(e.rawValue)),a=i?"":"",a+=cdBuildOpenDialogLabelCell(e.fieldLabelId,e.additionalCellClasses)+(t?t+(n?"":":"):"")+""+(i?"":"")+'"+o+"\n"+(i?"\n":"")}function cdBuildRBP(e,t,o,i){var n=(i=i||{}).onClickCode,l=i.onChangeCode,a=i.fieldValue,d=i.forceLabelOnTheLeft,e='",i='";return d?i+e:e+i}function cdBuildRB(e,t,o,i,n,l){return cdBuildRBP(e,t,o,{checked:i,fieldValue:""+n,onClickCode:l})}function cdBuildRBRowP(e,t,o,i){var n=(i=i||{}).rowLabelHTML||htmlEncode(i.rawRowLabel||""),l=trim("dialogFieldName "+(i.additionalCellClasses||"")),a=i.additionalValueCellClasses,a=trim("dialogFieldValue "+(a||"")),d=i.additionalRowClasses||"",s=i.hideRow?' style="display:none"':"",r=i.postRBFieldHtml||"";return"'+n+''+cdBuildRBP(e,t,o,i)+r+"\n"}function cdBuildRBRow(e,t,o,i,n,l){return cdBuildRBRowP(e,t,o,{checked:i,fieldValue:""+n,onClickCode:l})}function cdBuildCheckboxAndLabelP(e){var t=e.fieldName,o=e.fieldId,i=e.fieldLabelHTML||cdBuildMnemonicLabelHTML(e)||"",n=o?' for="'+o+'"':"",n=i?" "+i+"":"",i=e.doubleQuoteEncodedOnClickJS,l=e.additionalCBClasses,l=l?' class="'+l+'"':"";return'"+n}function cdBuildCheckboxAndLabel(e,t,o,i,n,l,a,d){return cdBuildCheckboxAndLabelP({fieldName:e,fieldId:t,fieldLabelHTML:o,checked:i,fieldValue:n,doubleQuoteEncodedOnClickJS:l,disabled:a,additionalCBClasses:d})}function generateHTMLLabelAsString(e){var t=""}function generateHTMLCheckboxAsString(e){var t='"}function generateCheckboxDisplayedAsToggle(e){return generateHTMLLabelAsString({forAttributeContent:e.fieldId,content:htmlEncode(e.activeOnlyLabelText)})+generateHTMLLabelAsString({classAttributeContent:"switch",content:generateHTMLCheckboxAsString({idAttributeContent:e.fieldId,nameAttributeContent:e.fieldName,isChecked:e.isChecked,onclickAttributeContent:e.onclickScript,tabIndex:e.tabIndex})+generateHTMLSpanAsString({classAttributeContent:"slider round",content:""})})}function cdBuildCheckboxRowP(e,t,o){var i=!o||undefined===o.forceLabelOnTheLeft,n=(o=o||{}).fieldValue||"",l=o.additionalLabelCellClasses||"",i=!i&&o&&o.forceLabelOnTheLeft,a=!i&&o&&o.omitEmptyCell,d=o.checked,s=o.disabled,r=o.fieldName||e,u=o.onClickCode||"",c=s?' style="color: #999999;"':"",m=o.rowId,m=m?' id="'+m+'"':"",g=o.additionalRowClasses,g=g?' class="'+g+'" ':"",p=o.hideRow?' style="display:none"':"",f=trim("dialogFieldValue "+(o.additionalValueCellClasses||"")),m="";return a||(m+=cdBuildOpenDialogLabelCell(undefined,l)+(i?'":"")+""),m+=''+cdBuildCheckboxAndLabel(r,e,i?"":t,d,n,u,s,o.additionalCBClasses)+"\n"}function cdBuildCheckboxRow(e,t,o,i,n,l,a){return cdBuildCheckboxRowP(t,o,{labelOnTheLeft:a?1:0,checked:i,fieldValue:n,onClickCode:l,fieldName:e})}function cdCarefullyLocalizeDateValue(e){if(e&&"string"==typeof e)try{var t=parseDateString(e);e=getLocalDateString(t)}catch(o){}else e=e||"";return e}function cdBuildDatePickerStrTarget(e,t){return"document.getElementById('"+e+"')."+t}function cdShowCalendarForDateField(e){var t;e&&(t=e.form,show_calendar(cdBuildDatePickerStrTarget(t.id,e.name),e.value,""))}function cdBuildDatePickerFieldP(e,t,o){var i=(o=o||{}).strOnKeyPress||"",n=o.additionalTextFieldClasses,l=o.fieldId,l=l?'id="'+l+'" ':"",a=o.strOnChangeDoubleQuotedContent||"",a=a?'onchange="'+a+'" ':"";return"&#'+getRawFontId(FontIconId_Enum.fiiCalendar)+";"}function cdBuildDatePickerField(e,t,o,i,n,l){return cdBuildDatePickerFieldP(e,t,{strValue:o,strOnKeyPress:i,strOnChangeDoubleQuotedContent:n,fieldId:l})}function cdBuildDatePickerRowP(e,t,o){var i=(o=o||{}).rowId||"",i=i?' id="'+i+'"':"",n=o.additionalFieldRowClasses,n=n?' class="'+n+'" ':"",l=trim("dialogFieldName "+(o.additionalCellClasses||"")),a=o.additionalValueCellClasses,a=trim("dialogFieldValue "+(a||"")),d=o.fieldLabelHTML?o.fieldLabelHTML+":":"";return"'+d+""+(o.labelAbove?"":"")+''+cdBuildDatePickerFieldP(e,t,o)+(o.strPostPickerHTML||"")+""}function cdBuildDatePickerRow(e,t,o,i,n,l,a,d,s,r,u){return cdBuildDatePickerRowP(e,t,{fieldLabelHTML:o,strPostPickerHTML:a,rightAlignField:d,labelAbove:r,rowId:u,strValue:i,strOnKeyPress:n,strOnChangeDoubleQuotedContent:l,fieldId:s})}function cdBuildFAFontIconButton(e){var t=e.fontId,o="",i="";return e.additionalFontClasses&&(o=" "+e.additionalFontClasses),"