signup.truckstop.com Open in urlscan Pro
13.110.26.13  Public Scan

Submitted URL: https://click.e.truckstop.com/?qs=55a8c4f74ec69e6573457f762887c3cf1c919999a799d690ed3db243576e78efd19bff274139de5624d3c0837b5c...
Effective URL: https://signup.truckstop.com/SignUp?accounttype=Carrier&productid=2c92a0ff6931f538016935e2393a70b8
Submission: On August 09 via manual from US — Scanned from DE

Form analysis 1 forms found in the DOM

Name: j_id0:parentofallPOST /SignUp

<form id="j_id0:parentofall" name="j_id0:parentofall" method="post" action="/SignUp" class="cstm-validation-form" enctype="application/x-www-form-urlencoded">
  <input type="hidden" name="j_id0:parentofall" value="j_id0:parentofall">
  <div class="wrapper center-block" id="SPA_parent" style="margin-top:8px">
    <script>
      if (!window.sfdcPage) {
        window.sfdcPage = new ApexPage();
      }
      UserContext.initialize({
        "ampm": ["AM", "PM"],
        "isAccessibleMode": false,
        "salesforceURL": "https://signup.truckstop.com?refURL=http%3A%2F%2Fsignup.truckstop.com%2FSignUp",
        "dateFormat": "M/d/yyyy",
        "language": "en_US",
        "locale": "en_US",
        "dateTimeFormat": "M/d/yyyy h:mm a",
        "labelLastModified": "1659733092000",
        "today": "8/9/2022 10:57 AM",
        "userPreferences": [{
          "index": 112,
          "name": "HideInlineEditSplash",
          "value": false
        }, {
          "index": 114,
          "name": "OverrideTaskSendNotification",
          "value": false
        }, {
          "index": 115,
          "name": "DefaultTaskSendNotification",
          "value": false
        }, {
          "index": 119,
          "name": "HideUserLayoutStdFieldInfo",
          "value": false
        }, {
          "index": 116,
          "name": "HideRPPWarning",
          "value": false
        }, {
          "index": 87,
          "name": "HideInlineSchedulingSplash",
          "value": false
        }, {
          "index": 88,
          "name": "HideCRUCNotification",
          "value": false
        }, {
          "index": 89,
          "name": "HideNewPLESplash",
          "value": false
        }, {
          "index": 90,
          "name": "HideNewPLEWarnIE6",
          "value": false
        }, {
          "index": 122,
          "name": "HideOverrideSharingMessage",
          "value": false
        }, {
          "index": 91,
          "name": "HideProfileILEWarn",
          "value": false
        }, {
          "index": 93,
          "name": "HideProfileElvVideo",
          "value": false
        }, {
          "index": 97,
          "name": "ShowPicklistEditSplash",
          "value": false
        }, {
          "index": 92,
          "name": "HideDataCategorySplash",
          "value": false
        }, {
          "index": 128,
          "name": "ShowDealView",
          "value": false
        }, {
          "index": 129,
          "name": "HideDealViewGuidedTour",
          "value": false
        }, {
          "index": 132,
          "name": "HideKnowledgeFirstTimeSetupMsg",
          "value": false
        }, {
          "index": 104,
          "name": "DefaultOffEntityPermsMsg",
          "value": false
        }, {
          "index": 135,
          "name": "HideNewCsnSplash",
          "value": false
        }, {
          "index": 101,
          "name": "HideBrowserWarning",
          "value": false
        }, {
          "index": 139,
          "name": "HideDashboardBuilderGuidedTour",
          "value": false
        }, {
          "index": 140,
          "name": "HideSchedulingGuidedTour",
          "value": false
        }, {
          "index": 180,
          "name": "HideReportBuilderGuidedTour",
          "value": false
        }, {
          "index": 183,
          "name": "HideAssociationQueueCallout",
          "value": false
        }, {
          "index": 194,
          "name": "HideQTEBanner",
          "value": false
        }, {
          "index": 270,
          "name": "HideIDEGuidedTour",
          "value": false
        }, {
          "index": 282,
          "name": "HideQueryToolGuidedTour",
          "value": false
        }, {
          "index": 196,
          "name": "HideCSIGuidedTour",
          "value": false
        }, {
          "index": 271,
          "name": "HideFewmetGuidedTour",
          "value": false
        }, {
          "index": 272,
          "name": "HideEditorGuidedTour",
          "value": false
        }, {
          "index": 205,
          "name": "HideApexTestGuidedTour",
          "value": false
        }, {
          "index": 206,
          "name": "HideSetupProfileHeaderTour",
          "value": false
        }, {
          "index": 207,
          "name": "HideSetupProfileObjectsAndTabsTour",
          "value": false
        }, {
          "index": 213,
          "name": "DefaultOffArticleTypeEntityPermMsg",
          "value": false
        }, {
          "index": 214,
          "name": "HideSelfInfluenceGetStarted",
          "value": false
        }, {
          "index": 215,
          "name": "HideOtherInfluenceGetStarted",
          "value": false
        }, {
          "index": 216,
          "name": "HideFeedToggleGuidedTour",
          "value": false
        }, {
          "index": 268,
          "name": "ShowChatterTab178GuidedTour",
          "value": false
        }, {
          "index": 275,
          "name": "HidePeopleTabDeprecationMsg",
          "value": false
        }, {
          "index": 276,
          "name": "HideGroupTabDeprecationMsg",
          "value": false
        }, {
          "index": 224,
          "name": "HideUnifiedSearchGuidedTour",
          "value": false
        }, {
          "index": 226,
          "name": "ShowDevContextMenu",
          "value": false
        }, {
          "index": 227,
          "name": "HideWhatRecommenderForActivityQueues",
          "value": false
        }, {
          "index": 228,
          "name": "HideLiveAgentFirstTimeSetupMsg",
          "value": false
        }, {
          "index": 232,
          "name": "HideGroupAllowsGuestsMsgOnMemberWidget",
          "value": false
        }, {
          "index": 233,
          "name": "HideGroupAllowsGuestsMsg",
          "value": false
        }, {
          "index": 234,
          "name": "HideWhatAreGuestsMsg",
          "value": false
        }, {
          "index": 235,
          "name": "HideNowAllowGuestsMsg",
          "value": false
        }, {
          "index": 236,
          "name": "HideSocialAccountsAndContactsGuidedTour",
          "value": false
        }, {
          "index": 237,
          "name": "HideAnalyticsHomeGuidedTour",
          "value": false
        }, {
          "index": 238,
          "name": "ShowQuickCreateGuidedTour",
          "value": false
        }, {
          "index": 245,
          "name": "HideFilePageGuidedTour",
          "value": false
        }, {
          "index": 250,
          "name": "HideForecastingGuidedTour",
          "value": false
        }, {
          "index": 251,
          "name": "HideBucketFieldGuide",
          "value": false
        }, {
          "index": 263,
          "name": "HideSmartSearchCallOut",
          "value": false
        }, {
          "index": 273,
          "name": "ShowForecastingQuotaAttainment",
          "value": false
        }, {
          "index": 280,
          "name": "HideForecastingQuotaColumn",
          "value": false
        }, {
          "index": 301,
          "name": "HideManyWhoGuidedTour",
          "value": false
        }, {
          "index": 298,
          "name": "HideFileSyncBannerMsg",
          "value": false
        }, {
          "index": 299,
          "name": "HideTestConsoleGuidedTour",
          "value": false
        }, {
          "index": 302,
          "name": "HideManyWhoInlineEditTip",
          "value": false
        }, {
          "index": 303,
          "name": "HideSetupV2WelcomeMessage",
          "value": false
        }, {
          "index": 312,
          "name": "ForecastingShowQuantity",
          "value": false
        }, {
          "index": 313,
          "name": "HideDataImporterIntroMsg",
          "value": false
        }, {
          "index": 314,
          "name": "HideEnvironmentHubLightbox",
          "value": false
        }, {
          "index": 316,
          "name": "HideSetupV2GuidedTour",
          "value": false
        }, {
          "index": 317,
          "name": "HideFileSyncMobileDownloadDialog",
          "value": false
        }, {
          "index": 322,
          "name": "HideEnhancedProfileHelpBubble",
          "value": false
        }, {
          "index": 328,
          "name": "ForecastingHideZeroRows",
          "value": false
        }, {
          "index": 330,
          "name": "HideEmbeddedComponentsFeatureCallout",
          "value": false
        }, {
          "index": 341,
          "name": "HideDedupeMatchResultCallout",
          "value": false
        }, {
          "index": 340,
          "name": "HideS1BrowserUI",
          "value": false
        }, {
          "index": 346,
          "name": "HideS1Banner",
          "value": false
        }, {
          "index": 358,
          "name": "HideEmailVerificationAlert",
          "value": false
        }, {
          "index": 354,
          "name": "HideLearningPathModal",
          "value": false
        }, {
          "index": 359,
          "name": "HideAtMentionsHelpBubble",
          "value": false
        }, {
          "index": 368,
          "name": "LightningExperiencePreferred",
          "value": false
        }, {
          "index": 373,
          "name": "PreviewLightning",
          "value": false
        }],
        "networkId": "",
        "uiTheme": "Theme3",
        "uiSkin": "Theme3",
        "userName": "unassisted_sales@truckstop-prod.force.com",
        "userId": "005600000058sfT",
        "isCurrentlySysAdminSU": false,
        "renderMode": "RETRO",
        "startOfWeek": "1",
        "vfDomainPattern": "truckstop--(?:[^.]+).na207.visual.force.com",
        "auraDomain": "truckstop.lightning.force.com",
        "useNativeAlertConfirmPrompt": false,
        "orgPreferences": [{
          "index": 257,
          "name": "TabOrganizer",
          "value": true
        }, {
          "index": 113,
          "name": "GroupTasks",
          "value": true
        }],
        "isDefaultNetwork": true,
        "timeFormat": "h:mm a"
      });
    </script>
    <div class="apexp">
      <div id="j_id0:parentofall:scpblock" class="bPageBlock brandSecondaryBrd apexDefaultPageBlock secondaryPalette">
        <div class="pbBody"><span id="j_id0:parentofall:scpblock:scppanel">
            <style>
              .rectangle311 {
                width: 60%;
                border-radius: 0px;
                //border-top: 2px solid #D0D0D0;
                //background: linear-gradient(0deg, #FFFFFF 60%, rgba(255, 255, 255, 0) 99.65%), rgba(196, 196, 196, 0.4);
              }

              .rectangle310 {
                margin-right: 10%;
                width: 150px;
                height: 105px;
                //border: 2px solid #D0D0D0;
                box-sizing: border-box;
                padding-top: 10px;
              }

              .rectangle1 {
                //width: 41px;
                height: 37px;
                //margin-left: inherit;
                //margin-right: 10px;
                //text-align: right;                
                background: #FFFFFF;
                border: 2px solid #D0D0D0;
                box-sizing: border-box;
                border-radius: 4px;
                font-family: Open Sans;
                font-style: normal;
                font-weight: 600;
                font-size: 14px;
                line-height: 14px;
              }

              .carttotal {
                font-family: Open Sans;
                font-style: normal;
                font-weight: bold;
                font-size: 14px;
                line-height: 2.4em;
                /* identical to box height */
                text-align: center;
                color: #676767;
                text-transform: capitalize;
              }

              .pricetotal {
                font-family: Open Sans;
                font-style: normal;
                font-weight: bold;
                font-size: 22px;
                line-height: 2.2em;
                /* identical to box height */
                text-align: center;
                color: #373A36;
              }

              .packagename {
                /* Load. Board - Carrier */
                //height: 31px;
                margin-top: 5%;
                margin-left: 1%;
                /* Headline 3 */
                font-family: Open Sans;
                font-style: normal;
                font-weight: normal;
                font-size: 18px;
                line-height: 25px;
                /* Text / Black 100% */
                color: #000000;
              }

              .priceperuser {
                /* $49/user/mo */
                height: 17px;
                margin-left: 1%;
                font-family: Open Sans;
                font-style: normal;
                font-weight: 600;
                font-size: 14px;
                line-height: 17px;
                /* identical to box height, or 121% */
                /* Text / Black 60% */
                color: #666666;
              }

              .tieredpricing {
                /* Based on tiered pricing. */
                margin-left: 1%;
                font-family: Open Sans;
                font-style: normal;
                font-weight: normal;
                font-size: 10px;
                line-height: 18px;
                /* or 120% */
                letter-spacing: 0.4px;
                color: #2A2A2A;
              }

              .packagedesc {
                /* Access our real-time */
                margin-right: 25%;
                margin-top: 3%;
                margin-left: 1%;
                font-family: Open Sans;
                font-style: normal;
                font-weight: normal;
                font-size: 13px;
                line-height: 17px;
                /* or 131% */
                color: rgba(55, 58, 54, 0.5);
              }

              .promocode {
                margin-left: 1% !important;
                font-family: Open Sans;
                font-style: normal;
                font-weight: normal;
                font-size: 14px;
                line-height: 17px;
              }

              .rectangle2 {
                /* Rectangle 2 */
                width: 27.9px;
                height: 37px;
                left: 566.1px;
                top: 197px;
                background: #FFFFFF;
                border: 2px solid #D0D0D0;
                box-sizing: border-box;
                border-radius: 0px 4px 4px 0px;
              }

              .btnCir2 {
                background: #FFFFFF;
                border: 2px solid #D0D0D0;
                -webkit-text-stroke: 1px white;
                display: inline-block;
                outline: none;
                transition: background 0.2s linear;
                transition: color 0.2s linear;
              }

              .btn {
                position: unset !important;
                padding: 0 6px 0 6px;
                border-radius: 0;
                border-bottom-left-radius: 0;
              }

              .btn-group-vertical {
                position: unset !important;
                border-bottom-left-radius: 0 !important;
              }

              .btn-group-vertical button:hover {
                background-color: none;
              }

              .btn-group-vertical>.btn:last-child:not(:first-child) {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                border-bottom-left-radius: 0px;
              }

              .upbtn {
                width: 27.9px;
                height: 17.5px;
                border: 2px solid #D0D0D0;
                border-top: none;
                border-right: none;
                padding-top: 2px;
              }

              .dnbtn {
                width: 27.9px;
                height: 17.5px;
                border: 2px solid #D0D0D0;
                border-bottom: none;
                border-right: none;
                padding-top: 2px;
              }

              .fa {
                font-size: 11px;
                color: #D0D0D0;
              }
            </style>
            <script id="j_id0:parentofall:scpblock:j_id18" type="text/javascript">
              updatetotalprice = function(tprice) {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:scpblock:j_id18',
                  'parameters': {
                    'tprice': (typeof tprice != 'undefined' && tprice != null) ? tprice : '',
                    'j_id0:parentofall:scpblock:j_id18': 'j_id0:parentofall:scpblock:j_id18'
                  }
                })
              };
            </script>
            <script>
              function licenseupdate(thisId) {
                console.log('thisthis ' + thisId);
                var lic = document.getElementById(thisId).value;
                document.getElementById('j_id0:parentofall:carttotalchevvalue').innerHTML = document.getElementById("totalprice").innerHTML;
                licenseup1(lic);
                console.log('lic update ran');
              }

              function plusBtn(thisId, price) {
                var lic = 1;
                var totalPrice = 0.00;
                var pkgprice = 1;
                var acctype = '';
                var data = JSON.parse(
                  '[{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUftAAH"},"Id":"a0x0z00000QYUftAAH","zqu__StartingUnit__c":1.0000000,"zqu__EndingUnit__c":1.00000,"zqu__Price__c":149.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfuAAH"},"Id":"a0x0z00000QYUfuAAH","zqu__StartingUnit__c":2.0000000,"zqu__EndingUnit__c":10.00000,"zqu__Price__c":89.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfvAAH"},"Id":"a0x0z00000QYUfvAAH","zqu__StartingUnit__c":11.0000000,"zqu__EndingUnit__c":50.00000,"zqu__Price__c":75.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfwAAH"},"Id":"a0x0z00000QYUfwAAH","zqu__StartingUnit__c":51.0000000,"zqu__Price__c":59.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"}]'
                  );
                console.log('plus button data');
                console.log(data);
                acctype = 'Load Board Pro - Carrier ';
                console.log('oldacc ' + acctype);
                pkgprice = '149'; //document.getElementById("pkgprice").innerHTML;
                lic = document.getElementById(thisId).value;
                var pbtn = document.getElementById("pbtn");
                lic = document.getElementById(thisId).value;
                if (lic < 10) {
                  var acctype2 = 'Load Board Pro - Carrier ';
                  console.log('newacc ' + acctype2);
                  if (lic - (-1) > 3 && acctype.includes("Basic")) {
                    console.log('utp in plus b');
                    //modal2.style.display = "block";
                    document.getElementById("myModal2").style.display = "block";
                    lic = lic - (-1);
                    document.getElementById(thisId).value = lic;
                  } else {
                    lic = lic - (-1);
                    document.getElementById(thisId).value = lic;
                    if (data.length > 1) {
                      if (data[0].zqu__StartingUnit__c == 0) data[0].zqu__StartingUnit__c = 1;
                      for (var i = 0; i < data.length && lic >= data[i].zqu__StartingUnit__c; i++) totalPrice = (lic <= data[i].zqu__EndingUnit__c || data[i].zqu__EndingUnit__c == undefined) ? (totalPrice + data[i].zqu__Price__c * (lic - data[i]
                        .zqu__StartingUnit__c + 1)) : (totalPrice + data[i].zqu__Price__c * (data[i].zqu__EndingUnit__c - data[i].zqu__StartingUnit__c + 1));
                    } else totalPrice = lic * pkgprice;
                    //totalPrice = lic*pkgprice;
                    var FixedDiscountAmount = $('[id$="FixedDiscountAmount"]')[0].value; // w-001262  
                    $('[id$="totalPricectrl"]')[0].value = totalPrice;
                    totalPrice = totalPrice - FixedDiscountAmount; // w-001262
                    var promocodedisc = document.getElementsByClassName('promocodediscount')[0].value;
                    console.log('@@@plus : ' + ((promocodedisc != undefined && promocodedisc != ' ' && promocodedisc != '')));
                    document.getElementById("totalprice").innerHTML = '$' + ((promocodedisc != undefined && promocodedisc != ' ' && promocodedisc != '') ? (totalPrice).toFixed(2) : totalPrice) + '/mo';
                    updatetotalprice(totalPrice);
                  }
                }
                if (lic == 10) {
                  document.getElementById("pbtn").style = ('border-color: #DDD;color:#DDD;pointer-events:none'); //grey out the plus button at 10 licenses
                  document.getElementById("myModal10").style.display = "block"; //w1786
                }
                if (lic > 1) {
                  document.getElementById("mbtn").style = ('pointer-events:auto;');
                  $('#mbtn').addClass("dnbtn btnCir fa fa-minus");
                }
              }

              function minusBtn(thisId, price) {
                var lic = 1;
                var totalPrice = 0;
                var pkgprice = 1;
                var acctype = '';
                var data = JSON.parse(
                  '[{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUftAAH"},"Id":"a0x0z00000QYUftAAH","zqu__StartingUnit__c":1.0000000,"zqu__EndingUnit__c":1.00000,"zqu__Price__c":149.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfuAAH"},"Id":"a0x0z00000QYUfuAAH","zqu__StartingUnit__c":2.0000000,"zqu__EndingUnit__c":10.00000,"zqu__Price__c":89.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfvAAH"},"Id":"a0x0z00000QYUfvAAH","zqu__StartingUnit__c":11.0000000,"zqu__EndingUnit__c":50.00000,"zqu__Price__c":75.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfwAAH"},"Id":"a0x0z00000QYUfwAAH","zqu__StartingUnit__c":51.0000000,"zqu__Price__c":59.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"}]'
                  );
                acctype = 'Load Board Pro - Carrier ';
                pkgprice = '149';
                lic = document.getElementById(thisId).value;
                if (lic <= 10) {
                  document.getElementById("pbtn").style = ('pointer-events:auto;');
                  $("#pbtn").addClass("upbtn btnCir fa fa-plus");
                }
                if ((lic - 1) == 1) {
                  document.getElementById("mbtn").style = ('border-color: #DDD;color:#DDD;pointer-events:none'); //grey out minus button at 1 license
                }
                if (lic > 1) {
                  lic = lic - 1;
                  document.getElementById(thisId).value = lic;
                  if (data.length > 1) {
                    if (data[0].zqu__StartingUnit__c == 0) data[0].zqu__StartingUnit__c = 1;
                    for (var i = 0; i < data.length && lic >= data[i].zqu__StartingUnit__c; i++) totalPrice = (lic <= data[i].zqu__EndingUnit__c || data[i].zqu__EndingUnit__c == undefined) ? (totalPrice + data[i].zqu__Price__c * (lic - data[i]
                      .zqu__StartingUnit__c + 1)) : (totalPrice + data[i].zqu__Price__c * (data[i].zqu__EndingUnit__c - data[i].zqu__StartingUnit__c + 1));
                  } else totalPrice = lic * pkgprice;
                  //totalPrice = lic*pkgprice;
                  var FixedDiscountAmount = $('[id$="FixedDiscountAmount"]')[0].value; // w-001262   
                  $('[id$="totalPricectrl"]')[0].value = totalPrice;
                  totalPrice = totalPrice - FixedDiscountAmount; // w-001262
                  var promocodedisc = document.getElementsByClassName('promocodediscount')[0].value;
                  console.log('@@@minus : ' + ((promocodedisc != undefined && promocodedisc != ' ')));
                  document.getElementById("totalprice").innerHTML = '$' + ((promocodedisc != undefined && promocodedisc != ' ' && promocodedisc != '') ? totalPrice.toFixed(2) : totalPrice) + '/mo';
                  updatetotalprice(totalPrice);
                }
              }

              function utp() {
                var url = window.location.toString();
                var acctype = 'Carrier';
                var ser1 =
                  '[{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUftAAH"},"Id":"a0x0z00000QYUftAAH","zqu__StartingUnit__c":1.0000000,"zqu__EndingUnit__c":1.00000,"zqu__Price__c":149.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfuAAH"},"Id":"a0x0z00000QYUfuAAH","zqu__StartingUnit__c":2.0000000,"zqu__EndingUnit__c":10.00000,"zqu__Price__c":89.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfvAAH"},"Id":"a0x0z00000QYUfvAAH","zqu__StartingUnit__c":11.0000000,"zqu__EndingUnit__c":50.00000,"zqu__Price__c":75.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfwAAH"},"Id":"a0x0z00000QYUfwAAH","zqu__StartingUnit__c":51.0000000,"zqu__Price__c":59.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"}]';
                console.log('sl1' + ser1);
                utpvalue(); //apex function
                //hideeditsection();
                var utpbtn = document.getElementById("utpbtn");
                //var modal2 = document.getElementById("myModal2");
                //utpbtn.onclick =function(){
                modal2.style.display = "none";
                //}
              }
              $(document).ready(function() {
                if (1 > 1) {
                  document.getElementById("mbtn").style = ('pointer-events:auto;');
                  $('#mbtn').addClass("btnCir fa fa-minus");
                }
                var lic = 1;
                var totalPrice = 0;
                var pkgprice = 1;
                var acctype = '';
                var data = JSON.parse(
                  '[{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUftAAH"},"Id":"a0x0z00000QYUftAAH","zqu__StartingUnit__c":1.0000000,"zqu__EndingUnit__c":1.00000,"zqu__Price__c":149.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfuAAH"},"Id":"a0x0z00000QYUfuAAH","zqu__StartingUnit__c":2.0000000,"zqu__EndingUnit__c":10.00000,"zqu__Price__c":89.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfvAAH"},"Id":"a0x0z00000QYUfvAAH","zqu__StartingUnit__c":11.0000000,"zqu__EndingUnit__c":50.00000,"zqu__Price__c":75.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"},{"attributes":{"type":"zqu__ProductRatePlanChargeTier__c","url":"/services/data/v55.0/sobjects/zqu__ProductRatePlanChargeTier__c/a0x0z00000QYUfwAAH"},"Id":"a0x0z00000QYUfwAAH","zqu__StartingUnit__c":51.0000000,"zqu__Price__c":59.0000000,"zqu__ProductRatePlanCharge__c":"a0y0z00000Nih5KAAR"}]'
                  );
                acctype = 'Load Board Pro - Carrier ';
                pkgprice = '149'; //document.getElementById("pkgprice").innerHTML;
                lic = document.getElementById('noflic').value;
                if (data.length > 1) {
                  if (data[0].zqu__StartingUnit__c == 0) data[0].zqu__StartingUnit__c = 1;
                  for (var i = 0; i < data.length && lic >= data[i].zqu__StartingUnit__c; i++) totalPrice = (lic <= data[i].zqu__EndingUnit__c || data[i].zqu__EndingUnit__c == undefined) ? (totalPrice + data[i].zqu__Price__c * (lic - data[i]
                    .zqu__StartingUnit__c + 1)) : (totalPrice + data[i].zqu__Price__c * (data[i].zqu__EndingUnit__c - data[i].zqu__StartingUnit__c + 1));
                } else totalPrice = lic * pkgprice;
                $('[id$="totalPricectrl"]')[0].value = totalPrice;
                var FixedDiscountAmount = $('[id$="FixedDiscountAmount"]')[0].value; // w-001262   
                totalPrice = totalPrice - FixedDiscountAmount; // w-001262
                document.getElementById("totalprice").innerHTML = '$' + (totalPrice) + '/mo';
                updatetotalprice(totalPrice);
                //hideeditsection();
              });
            </script>
            <style>
              .fa-minus,
              .fa-plus {
                position: relative;
              }

              .inputCls {
                width: 30%;
                padding-top: 5px;
                text-align: right;
                margin-right: inherit;
                border: none;
                outline: none;
                font-family: Open Sans;
                font-style: normal;
                font-weight: 600;
                font-size: 14px;
                line-height: 14px;
                margin-left: 10%;
              }

              .btnCir {
                display: inline-block;
                transition: background 0.2s linear;
                transition: color 0.2s linear;
              }

              .btnCir:hover {
                color: black;
                cursor: pointer;
              }
            </style>
            <script id="j_id0:parentofall:scpblock:j_id21" type="text/javascript">
              utpvalue = function(p1) {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:scpblock:j_id21',
                  'parameters': {
                    'p1': (typeof p1 != 'undefined' && p1 != null) ? p1 : 'true',
                    'j_id0:parentofall:scpblock:j_id21': 'j_id0:parentofall:scpblock:j_id21'
                  }
                })
              };
            </script>
            <script id="j_id0:parentofall:scpblock:j_id23" type="text/javascript">
              licenseup1 = function(p2) {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:scpblock:j_id23',
                  'parameters': {
                    'p2': (typeof p2 != 'undefined' && p2 != null) ? p2 : '',
                    'j_id0:parentofall:scpblock:j_id23': 'j_id0:parentofall:scpblock:j_id23'
                  }
                })
              };
            </script><input id="j_id0:parentofall:scpblock:licrefresh" type="hidden" name="j_id0:parentofall:scpblock:licrefresh" value="1">
          </span></div>
        <div class="pbFooter secondaryPalette">
          <div class="bg"></div>
        </div>
      </div>
    </div>
    <div class="row flex-container">
      <div id="ShopInfo" style="margin-top:35px; margin-top: 0px;">
        <h1 id="shopheading" style="display:none"> Cart Total <i data-target="#shopdata" data-toggle="collapse" id="shopchev">

                                        </i><span id="j_id0:parentofall:carttotalchevvalue" style="margin-right:6px;float:right;"></span>
        </h1>
        <div aria-expanded="true" id="shopdata" style="border:0">
          <div class="panel-body center-block" id="shopedit"><span id="j_id0:parentofall:rec311" style="float:left" class="rectangle311 col-12">
              <div class="packagename"> Load Board Pro - Carrier </div>
              <div class="col-8" style="float:left">
                <div class="priceperuser"> $149/user/mo </div>
                <div class="tieredpricing"> Based on tiered pricing </div>
              </div>
              <div class="col-2" style="float:right;padding:0;">
                <div class="rectangle1">
                  <input class="inputCls" id="noflic" onchange="licenseupdate('noflic');" readonly="readonly" value="1">
                  <div class="btn-group-vertical" style="float:right;position:unset;">
                    <div class="btnCir upbtn fa fa-plus fa-chevron-up btn" id="pbtn" onclick="plusBtn('noflic', '35');licenseupdate('noflic');" style=" border-bottom: none; " type="button"></div>
                    <div class="btnCir dnbtn fa fa-minus fa-chevron-down btn" id="mbtn" onclick="minusBtn('noflic','35');licenseupdate('noflic');" style="pointer-events:none" type="button"></div>
                  </div>
                </div>
                <style>
                  /* The Modal (background) */
                  .modal2 {
                    display: none;
                    /* Hidden by default */
                    position: absolute;
                    /* Stay in place -- changed from fixed to abs by Raghav to consider screen split in new sign up*/
                    z-index: 1000;
                    /* Sit on top */
                    padding-top: 100px;
                    /* Location of the box */
                    overflow: auto;
                    /* Enable scroll if needed */
                    background-color: rgb(0, 0, 0);
                    /* Fallback color */
                    background-color: rgba(0, 0, 0, 0.4);
                    /* Black w/ opacity */
                    top: 0;
                    right: 0;
                    bottom: 0;
                    left: 0;
                    outline: 0;
                  }

                  .modal10 {
                    display: none;
                    /* Hidden by default */
                    position: absolute;
                    /* Stay in place -- changed from fixed to abs by Raghav to consider screen split in new sign up*/
                    z-index: 1000;
                    /* Sit on top */
                    padding-top: 100px;
                    /* Location of the box */
                    overflow: auto;
                    /* Enable scroll if needed */
                    background-color: rgb(0, 0, 0);
                    /* Fallback color */
                    background-color: rgba(0, 0, 0, 0.4);
                    /* Black w/ opacity */
                    top: 0;
                    right: 0;
                    bottom: 0;
                    left: 0;
                    outline: 0;
                  }

                  .modal {
                    padding-right: 0px !important;
                  }

                  .modal-backdrop {
                    display: none !important;
                  }

                  /* Modal Content */
                  .modal-content2 {
                    background-color: #fefefe;
                    margin: auto;
                    padding: 35px;
                    padding-bottom: 60px;
                    border: 1px solid #888;
                    width: 340px;
                    height: auto;
                    position: relative;
                    border-radius: 6px;
                    outline: 0;
                  }

                  .modal-content10 {
                    background-color: #fefefe;
                    margin: auto;
                    padding: 35px;
                    padding-bottom: 60px;
                    border: 1px solid #888;
                    width: 340px;
                    height: auto;
                    position: relative;
                    border-radius: 6px;
                    outline: 0;
                  }

                  .modal-button2 {
                    position: absolute;
                    right: 15%;
                    bottom: 10%;
                    float: right;
                    font-weight: 600;
                    font-size: 14px;
                    line-height: 19px;
                    display: flex;
                    align-items: center;
                    text-align: center;
                    letter-spacing: 0.75px;
                    text-transform: uppercase;
                    color: #B60207;
                  }

                  .modal-button10 {
                    position: absolute;
                    right: 15%;
                    bottom: 10%;
                    float: right;
                    font-weight: 600;
                    font-size: 14px;
                    line-height: 19px;
                    display: flex;
                    align-items: center;
                    text-align: center;
                    letter-spacing: 0.75px;
                    text-transform: uppercase;
                    color: #B60207;
                  }

                  .modal-button2:hover,
                  .modal-button2:focus {
                    cursor: pointer;
                  }

                  .modal-button10:hover,
                  .modal-button10:focus {
                    cursor: pointer;
                  }

                  .modal-text2 {
                    font-size: 14px;
                    line-height: 19px;
                    margin-top: 10px;
                  }

                  .modal-text10 {
                    font-size: 14px;
                    line-height: 19px;
                    margin-top: 10px;
                  }

                  .utpclick {
                    color: #B60207;
                    cursor: pointer;
                  }
                </style>
              </div>
              <div class="col-8 packagedesc" style="float:left"> Access to the best-paying loads on Truckstop.com’s real-time Load Board, plus: Rate Insights, route planning, broker credit, and days-to-pay information. </div>
              <div class="promocode">
                <div class="col-md-5" style="float:left;padding-left:0px;"><input id="j_id0:parentofall:pcode" type="text" name="j_id0:parentofall:pcode" value="" class="form-control promocodediscount" onchange="ZuoraPromoCallout();toggleSpinner();"
                    style="background:transparent !important;border-top:none !important;border-right:none !important;border-left:none !important;border-bottom-color: rgba(55, 58, 54, 0.5) !important;padding-right:5px !important;" tabindex="1"
                    autocomplete="Some-reason" placeholder="Promo Code"><input id="j_id0:parentofall:isSuccess" type="hidden" name="j_id0:parentofall:isSuccess" value="false"><input id="j_id0:parentofall:isPromoCodeValid" type="hidden"
                    name="j_id0:parentofall:isPromoCodeValid" value="false"><input id="j_id0:parentofall:isPromoCodeExpired" type="hidden" name="j_id0:parentofall:isPromoCodeExpired" value="false"><input id="j_id0:parentofall:TrialPeriodDays"
                    type="hidden" name="j_id0:parentofall:TrialPeriodDays" value=""><input id="j_id0:parentofall:FixedDiscountAmount" type="hidden" name="j_id0:parentofall:FixedDiscountAmount" value=""><input id="j_id0:parentofall:DiscountType"
                    type="hidden" name="j_id0:parentofall:DiscountType" value=""><input id="j_id0:parentofall:ratePlanId" type="hidden" name="j_id0:parentofall:ratePlanId" value=""><input id="j_id0:parentofall:totalPricectrl" type="hidden"
                    name="j_id0:parentofall:totalPricectrl" value="149"><input id="j_id0:parentofall:initialtotalprice" type="hidden" name="j_id0:parentofall:initialtotalprice" value="149">
                  <span class="error" id="isPromoValid" style="display : none"></span>
                </div>
              </div>
              <script>
                function promoValidations() {
                  document.getElementById("pbtn").style.pointerEvents = "auto";
                  document.getElementById("mbtn").style.pointerEvents = "auto";
                  var totalpricestr = $('[id$="totalPricectrl"]')[0].value;
                  //alert(totalpricestr); 
                  var totalprice = totalpricestr.replace(/[^\d.]/g, '');
                  //alert('aaaaa'+totalprice);        
                  var promocode = $('[id$="pcode"]')[0].value;
                  //var totalprice = str2;//'149';   
                  var isSuccess = $('[id$="isSuccess"]')[0].value;
                  var isPromoCodeValid = $('[id$="isPromoCodeValid"]')[0].value;
                  var isPromoCodeExpired = $('[id$="isPromoCodeExpired"]')[0].value;
                  var TrialPeriodDays = $('[id$="TrialPeriodDays"]')[0].value;
                  var FixedDiscountAmount = $('[id$="FixedDiscountAmount"]')[0].value;
                  var DiscountType = $('[id$="DiscountType"]')[0].value;
                  var ratePlanId = $('[id$="ratePlanId"]')[0].value;
                  //alert(' isPromoCodeValid '+isPromoCodeValid); 
                  //alert(' totalprice '+totalprice); 
                  if (promocode === "") {
                    //document.getElementById("totalprice").innerHTML= '$'+($('[id$="totalPricectrl"]')[0].value)+'/mo';  
                    $('[id$="FixedDiscountAmount"]')[0].value = '0';
                    // alert(' blank ');    
                    // alert(' blank '+'$'+($('[id$="totalPricectrl"]')[0].value)+'/mo');   
                    // alert(' blank '+document.getElementById("totalprice").innerHTML);    
                    //document.getElementById("totalprice").innerHTML= '$'+(totalprice)+'/mo';
                    document.getElementById('isPromoValid').innerHTML = '';
                    if (document.getElementById("noflic").value === '1') {
                      console.log('inside if fixed');
                      document.getElementById("totalprice").innerHTML = '$' + ($('[id$="initialtotalprice"]')[0].value) + '/mo';
                    } else {
                      console.log('inside else fixed');
                      document.getElementById("totalprice").innerHTML = '$' + (totalprice) + '/mo';
                    }
                  } else {
                    //$('[id$="totalPricectrl"]')[0].value = totalprice;
                    console.log('---is-----success---' + isSuccess);
                    console.log('---is-----Valid---' + isPromoCodeValid);
                    console.log('---is-----Expired---' + isPromoCodeExpired);
                    if (isSuccess === 'true') {
                      if (isPromoCodeValid === 'true') {
                        if (DiscountType === 'none') {
                          document.getElementById('noflic').value = 1;
                          document.getElementById("totalprice").innerHTML = '$' + ($('[id$="initialtotalprice"]')[0].value) + '/mo';
                          document.getElementById("pbtn").style.pointerEvents = "none";
                          document.getElementById("mbtn").style.pointerEvents = "none";
                          console.log('under trial -----' + document.getElementById("totalprice").innerHTML);
                          licenseupdate('noflic');
                        } else {
                          //alert('--FixedDiscountAmount--'+FixedDiscountAmount); 
                          totalprice = totalprice - FixedDiscountAmount;
                          //alert('--totalprice-1-'+totalprice);  
                          console.log('under fixed -----' + document.getElementById("totalprice").innerHTML);
                          if (document.getElementById("noflic").value === '1') {
                            console.log('inside if fixed');
                            document.getElementById("totalprice").innerHTML = '$' + ($('[id$="initialtotalprice"]')[0].value - FixedDiscountAmount).toFixed(2) + '/mo';
                            //document.getElementById("totalprice").innerHTML= '$'+($('[id$="initialtotalprice"]')[0].value - FixedDiscountAmount)+'/mo'; 
                          } else {
                            console.log('inside else fixed');
                            document.getElementById("totalprice").innerHTML = '$' + (totalprice.toFixed(2)) + '/mo';
                          }
                        }
                        document.getElementById('isPromoValid').innerHTML = 'Code Applied';
                        document.getElementById('isPromoValid').style.color = 'grey';
                        //alert('Promo code is valid'); 
                      } else {
                        document.getElementById('isPromoValid').innerHTML = 'Invalid Code';
                        document.getElementById('isPromoValid').style.color = 'red';
                        if (isPromoCodeExpired === 'true') {
                          document.getElementById('isPromoValid').innerHTML = 'Expired Code';
                          document.getElementById('isPromoValid').style.color = 'red';
                        }
                      }
                    } else {
                      if (document.getElementById("noflic").value === '1') {
                        console.log('inside if fixed');
                        document.getElementById("totalprice").innerHTML = '$' + ($('[id$="initialtotalprice"]')[0].value) + '/mo';
                      } else {
                        console.log('inside else fixed');
                        document.getElementById("totalprice").innerHTML = '$' + (totalprice) + '/mo';
                      }
                      document.getElementById('isPromoValid').innerHTML = 'Invalid Code';
                      document.getElementById('isPromoValid').style.color = 'red';
                      //alert('Promo code in invalid')    
                    }
                    //alert('149'); 
                  }
                  document.getElementById('j_id0:parentofall:carttotalchevvalue').innerHTML = document.getElementById("totalprice").innerHTML;
                }
                //adding and removing classes using js starts
                jQuery(document).ready(function($) {
                  var alterClass = function() {
                    var ww = document.body.clientWidth;
                    if (ww < 1000) {
                      $('#nodotcheckbox').removeClass('panel-body');
                      $('#nodotcheckbox').removeClass('center-block');
                      $('#nodotcheckbox').removeClass('col-6');
                      $('#dotdiv').removeClass('col-5');
                      $('#nodotcheckbox').addClass('col-12');
                      $('#dotdiv').addClass('col-12');
                    } else if (ww > 1000) {
                      $('#nodotcheckbox').removeClass('panel-body');
                      $('#nodotcheckbox').addClass('center-block');
                      $('#nodotcheckbox').addClass('col-6');
                      $('#dotdiv').addClass('col-5');
                      $('#nodotcheckbox').removeClass('col-12');
                      $('#dotdiv').removeClass('col-12');
                    };
                  };
                  $(window).resize(function() {
                    alterClass();
                  });
                  //Fire it when the page first loads:
                  alterClass();
                });
                //adding and removing classes using js ends
              </script>
            </span><span id="j_id0:parentofall:rec310" style="float: right; top: 7.5%; background: white; display: block;" class="rectangle310">
              <div class="row">
                <div class="carttotal"> CART TOTAL </div>
                <div class="pricetotal" id="totalprice">$149/mo</div>
              </div>
            </span>
            <script>
              function changeClass(x) {
                if (x.matches) { // If media query matches
                  $('#ShopInfo').addClass('panel');
                  $('#shopheading').addClass('panel-heading');
                  $('#shopheading').css('display', 'block');
                  $('#shopchev').addClass('fa1');
                  $('#shopdata').addClass('panel-collapse collapse in');
                  $('[id$="rec310"]')[0].style.display = 'none';
                  document.getElementById('j_id0:parentofall:carttotalchevvalue').innerHTML = document.getElementById("totalprice").innerHTML;
                  //document.getElementById("carttotalchevvalue").innerHTML = document.getElementById("totalprice").innerHTML
                  //document.getElementById('j_id0:parentofall:rec310').style= ('display: none');
                } else {
                  $('#ShopInfo').removeClass('panel');
                  $('#shopheading').removeClass('panel-heading');
                  $('#shopheading').css('display', 'none');
                  $('#shopchev').removeClass('fa1');
                  $('#shopdata').removeClass('panel-collapse collapse in');
                  $('[id$="rec310"]')[0].style.display = 'block';
                  //document.getElementById("shopheading").innerHTML = 'Cart Total'
                  //document.getElementById('j_id0:parentofall:rec310').style= ('display: block');
                }
              }
              var x = window.matchMedia("(max-width: 1050px)")
              changeClass(x)
              x.addListener(changeClass)
            </script>
          </div>
        </div>
      </div>
      <div class="panel" id="contactInformation" style="order : 3;">
        <h1 class="panel-heading"> Contact Information <i class="fa1" data-target="#coninfodata" data-toggle="collapse" id="conchev"></i>
          <e id="contacteditbtn" style="display: none;">
            <a href="#" id="j_id0:parentofall:coneditbutton" name="j_id0:parentofall:coneditbutton" onclick="toggleSpinner();showeditsection();if(window != window.top){var f = document.getElementById('j_id0:parentofall');f.action += (f.action.indexOf('?') == -1 ? '?' : '&amp;');};A4J.AJAX.Submit('j_id0:parentofall',event,{'similarityGroupingId':'j_id0:parentofall:coneditbutton','parameters':{'j_id0:parentofall:coneditbutton':'j_id0:parentofall:coneditbutton'} } );return false;" style="margin-right:6px;margin-top:2px;float:right;font-size: 14px;background:none;color: #b11721;">Edit</a>
          </e>
        </h1>
        <div aria-expanded="true" class="panel-collapse collapse in" id="coninfodata" style="border:0">
          <script>
            function noAuthorityChange() {
              var doNotCheckBox = document.getElementById('j_id0:parentofall:nodotcheck').checked;
              if (doNotCheckBox) {
                document.getElementById('dotintextid').value = '';
                document.getElementById('j_id0:parentofall:dotnum').disabled = true;
                document.getElementById('errspan').style = "color : white;";
                document.getElementById('j_id0:parentofall:dotnum').style = ('border-bottom: 1px solid #7F7F7F !important ');
                // focusinputstate('j_id0:parentofall:dotnum');
                document.getElementById('j_id0:parentofall:dotnum').value = '';
                rerenderAuth(true);
              } else {
                document.getElementById('j_id0:parentofall:dotnum').disabled = false;
                document.getElementById('errspan').style = "color : #B60207;";
                document.getElementById('j_id0:parentofall:dotnum').style = ('border-bottom: 2px solid #b11721 !important ');
                changeborder('j_id0:parentofall:dotnum');
                rerenderAuth(false);
                keepValid();
              }
            }
            $(function() {
              document.getElementById('contactsummary').style.display = 'none'; //load page with contact summary hidden
              document.getElementById('contacteditbtn').style.display = 'none'; //load page with contact edit button hidden
              document.getElementById('companysummary').style.display = 'none'; //load page with contact summary hidden
              // document.getElementById('companyeditbtn').style.display = 'none'; //load page with contact edit button hidden
              document.getElementById('comchev').style = ('pointer-events:none'); //make company drop down unclickable
              document.getElementById('paychev').style = ('pointer-events:none'); //make payment drop down unclickable
              /*setTimeout(
                        function() 
                        {
                          if ($('#payinfodata').attr('aria-expanded') == "true") 
                          {
                              $('#payinfodata').collapse('hide');
                              
                          }
                        }, 5); */ //load payment page then hide it     
            });

            function hideeditsection() { //this will bring up contact summary section
              document.getElementById('contactcntbtn').style.display = 'none'; //hide continue buttom
              //var contacteditbtnid = '';
              //console.log('contacteditbtnid' +contacteditbtnid);
              //document.getElementById(contacteditbtnid).style.display = 'inline'; //show edit button on top
              document.getElementById('contacteditbtn').style.display = 'inline'; //show edit button on top
              document.getElementById('contactedit').style.display = 'none'; //hide contact edit block
              document.getElementById('contactsummary').style.display = 'inline'; //show the contact summary block                                            
              document.getElementById('comchev').style = ('pointer-events:auto'); //make company drop down clickable
              document.getElementById('conchev').style = ('pointer-events:auto'); //make contact dropdown clickable
              document.getElementById('coninfodata').style = ('margin-top: -10px');
              console.log($('#companysummary').css('display'));
              if ($('#cominfodata').attr('aria-expanded') == "false") {
                $('#cominfodata').collapse('show');
              }
              $([document.documentElement, document.body]).animate({
                scrollTop: $("#contactInformation").offset().top
              }, 500);
              //$('#toscroll').animate({scrollTop:1108}, 'slow');                                            
            }

            function showeditsection() { //this brings up contact edit section
              document.getElementById('contactcntbtn').style.display = 'block';
              document.getElementById('contacteditbtn').style.display = 'none';
              document.getElementById('contactedit').style.display = 'block';
              document.getElementById('contactsummary').style.display = 'none';
              if ($('#coninfodata').attr('aria-expanded') == "false") {
                $('#coninfodata').collapse('show');
              } //to show contact info
              if ($('#cominfodata').attr('aria-expanded') == "true" && $('#companysummary').css('display') == 'none') {
                $('#cominfodata').collapse('hide');
              } //to hide company info
              document.getElementById('comchev').style = ('pointer-events:auto'); //make company drop down clickable                  
              //document.getElementById('conchev').style = ('pointer-events:none');//make contact drop down unclickable
              document.getElementById('coninfodata').style = ('margin-top: 0px');
              //document.getElementById('companyeditbtn').style.display = 'none'; //editing contact should disable company edit button
            }

            function hidecomeditsection() { //this will bring up company summary section
              document.getElementById('companycntbtn').style.display = 'none'; //hide continue button from company section
              //document.getElementById('companyeditbtn').style.display = 'none'; //show edit button on top for company section
              document.getElementById('companytedit').style.display = 'none'; //hide company edit block
              document.getElementById('billingedit').style.display = 'none'; // hide billing edit block , Shiva
              document.getElementById('companysummary').style.display = 'block'; //show the company summary block
              document.getElementById('billingcheckbox').style.display = 'none'; //hide billing info is the same check box
              document.getElementById('contacteditbtn').style.display = 'none'; //make contact edit button re appear after hitting company continue button
              //document.getElementById('paychev').style = ('pointer-events:auto'); //make payment section drop down clickable
              console.log('something is happening');
              process7();
              var spinner = $(".cstm-spinner");
              spinner.hide();
              var rej1 = document.getElementById('j_id0:parentofall:rej').value;
              console.log('rejrejrej ' + rej1);
              if (rej1 == 'false') {
                setTimeout(function() {
                  if ($('#payinfodata').attr('aria-expanded') == "false") {
                    $('#payinfodata').collapse('show');
                  }
                }, 100);
                /*setTimeout(
                    function() 
                    {
                        toggleSpinner();
                    }, 1500);*/
                setTimeout(function() {
                  loadHostedPage();
                }, 500);
                setTimeout(function() {
                  document.getElementById('paychev').style = ('pointer-events:auto'); //make payment section drop down clickable  
                }, 2000);
              }
              document.getElementById('comchev').style = ('pointer-events:auto'); //make company drop down clickable
              document.getElementById('coninfodata').style = ('margin-top: -10px');
              setTimeout(function() {
                $([document.documentElement, document.body]).animate({
                  scrollTop: $("#paymentInformation").offset().top
                }, 500);
                // $('#toscroll').animate({scrollTop:2108}, 'slow');
              }, 1000);
            }
          </script>
          <script>
            //added by Vishal Yadav,2289
            function FormatDotNumber(dotNumber, id) {
              var cleaned = ('' + dotNumber).replace(/\D/g, '');
              if (cleaned != null && cleaned != '') {
                document.getElementById(id).value = cleaned;
              } else {
                document.getElementById(id).value = '';
              }
              return null
            }

            function formatPhoneNumberEntered(phoneNumberString, id) {
              //console.log('pho'+phoneNumberString);
              //alert('pho'+phoneNumberString);
              var cleaned = ('' + phoneNumberString).replace(/\D/g, '');
              var match = cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/)
              //var match = cleaned.match(/^(\d{3})(\d{3})(\d{4})$/);
              if (match) {
                var plusone = (match[1] ? '+1 ' : '');
                var finalPhone = '(' + match[2] + ') ' + match[3] + '-' + match[4];
                //console.log('ffffff ' +finalPhone);
                document.getElementById(id).value = finalPhone;
                //console.log('pho2'+document.getElementById(id).value);
              }
              return null
            }

            function changeborder(id) {
              var id2 = id.split(":");
              console.log(id2[id2.length - 1]);
              if ((document.getElementById(id).value == "" || document.getElementById(id).value == " ") && ((id2[id2.length - 1] != ("MobilePhone_Id")) && (id2[id2.length - 1] != ("ein")) && (id2[id2.length - 1] != ("billMobilePhone_Id")))) {
                document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
              } else {
                document.getElementById(id).style = ('border-bottom: 1px solid #7F7F7F !important ');
              }
            }

            function focusinputstate(id) {
              if (document.getElementById(id).value != " ") {
                document.getElementById(id).style = ('border-bottom: 2px solid black !important ');
              } else {
                document.getElementById(id).style = ('border-bottom: 1px solid #7F7F7F !important ');
              }
            }

            function toggleSpinner() {
              var err = '';
              console.log("server email response " + err);
              var spinner = $(".cstm-spinner");
              console.log(spinner);
              spinner.toggle();
              setTimeout(function() {
                spinner.hide();
              }, 2000);
            }

            function toggleSpinnerComp() {
              var spinner = $(".cstm-spinner");
              console.log('email spinnner');
              spinner.toggle();
              setTimeout(function() {
                spinner.hide();
              }, 2500);
            }

            function toggleSpinnerDOT() {
              var spinner = $(".cstm-spinner");
              console.log('email spinnner');
              spinner.toggle();
              setTimeout(function() {
                spinner.hide();
              }, 700);
            }

            function toggleSpinnerEmail() {
              var spinner = $(".cstm-spinner");
              console.log('email spinnner');
              spinner.toggle();
              setTimeout(function() {
                spinner.hide();
              }, 700);
            }

            function toggleSpinnerContact() {
              var spinner = $(".cstm-spinner");
              console.log('contact button spinner');
              spinner.toggle();
              setTimeout(function() {
                spinner.hide();
              }, 2000);
            }

            function toggleSpinnerContact2() {
              var spinner = $(".cstm-spinner");
              console.log('contact button spinner');
              spinner.toggle();
              setTimeout(function() {
                spinner.hide();
              }, 2500);
            }

            function toggleSpinnerShort() {
              var spinner = $(".cstm-spinner");
              console.log('contact button spinner');
              //spinner.toggle();
              setTimeout(function() {
                //spinner.hide();
              }, 400);
            }

            function keepspinning() {
              var spinner = $(".cstm-spinner");
              spinner.toggle();
            }

            function collapseall() {
              $('#cominfodata').collapse('hide');
              $('#coninfodata').collapse('hide');
              $('#payinfodata').collapse('hide');
              document.getElementById("pbtn").style = ('border-color: #DDD;color:#DDD;pointer-events:none');
              document.getElementById("mbtn").style = ('border-color: #DDD;color:#DDD;pointer-events:none');
              var modal22 = document.getElementById("modalforpay"); //legos
              modal22.style.display = "block"; //legos
              document.getElementById('comchev').style = ('pointer-events:none'); //make company drop down unclickable
              document.getElementById('paychev').style = ('pointer-events:none'); //make payment drop down unclickable
              document.getElementById('conchev').style = ('pointer-events:none'); //make payment drop down unclickable
              //keepspinning();
            }
          </script>
          <script type="text/javascript">
            jQuery(document).ready(function() {
              jQuery("input[id$='Phone_id']").change(function() {
                if (jQuery("input[id$='Phone_id']").val().length == 14) {
                  var ph2 = document.getElementById('j_id0:parentofall:Phone_id').value;
                  setTimeout(function() {
                    AsignPhone(ph2);
                  }, 1000);
                }
              });
              jQuery("input[id$='Phone_id']").keyup(function() {
                if (jQuery("input[id$='Phone_id']").val().length >= 14) {
                  var ph1 = document.getElementById('j_id0:parentofall:Phone_id').value;
                  AsignPhone(ph1);
                }
              });
              jQuery("input[id$='em']").keyup(function() {
                var em1 = document.getElementById('j_id0:parentofall:em').value;
                AsignEmail(em1);
              });
            });
          </script>
          <div class="panel-body center-block" id="contactedit" style="padding-top:10px;"><span id="j_id0:parentofall:conenterinfo" class="cstm-validation-form"><span id="j_id0:parentofall:j_id32">
                <div class="center-block  col-6" id="nodotcheckbox" style="float:right">
                  <label for="j_id0:parentofall:nodotcheck" style="display: block;font-weight:normal;color:#2A2A2A;padding-left:10px;padding-top:7px"><input id="j_id0:parentofall:nodotcheck" type="checkbox" name="j_id0:parentofall:nodotcheck"
                      onchange="noAuthorityChange();" style="margin-left:-20px;margin-right:7px;" tabindex="2">&nbsp;Don't have a DOT number.</label>
                  <br>
                </div>
                <div class="col-5" id="dotdiv" style="float:left"><input id="j_id0:parentofall:dotnum" type="text" name="j_id0:parentofall:dotnum" class="form-control dot isRequired" onblur="changeborder('j_id0:parentofall:dotnum');"
                    onchange="FormatDotNumber(this.value,'j_id0:parentofall:dotnum');AsignDot(this.value);toggleSpinnerDOT();" onfocus="focusinputstate('j_id0:parentofall:dotnum');" onkeypress="return onlyNumbers(event)"
                    onkeyup="AsignDot2(this.value);" tabindex="3" inputmode="numeric" placeholder="DOT Number">
                  <span class="error" id="errspan"></span>
                </div>
              </span>
              <div class="col-12" id="fnd"><input id="j_id0:parentofall:fn" type="text" name="j_id0:parentofall:fn" class="form-control isRequired isLength first-name" maxlength="40" onblur="changeborder('j_id0:parentofall:fn');"
                  onchange="AsignFirstName(this.value)" onfocus="focusinputstate('j_id0:parentofall:fn');" tabindex="4" max="40" placeholder="First Name">
                <span class="error"></span>
              </div>
              <div class="col-12"><input id="j_id0:parentofall:ln" type="text" name="j_id0:parentofall:ln" class="form-control isRequired last-name isLength" maxlength="40" onblur="changeborder('j_id0:parentofall:ln');"
                  onchange="AsignLastName(this.value);" onfocus="focusinputstate('j_id0:parentofall:ln');" tabindex="5" max="40" placeholder="Last Name">
                <span class="error"></span>
              </div>
              <div class="col-12"><input id="j_id0:parentofall:em" type="text" name="j_id0:parentofall:em" class="form-control email isRequired isEmail" maxlength="79" onblur="changeborder('j_id0:parentofall:em');"
                  onchange="IsDuplicateEmailId(this.value);toggleSpinnerEmail();" onfocus="focusinputstate('j_id0:parentofall:em');" tabindex="6" max="79" placeholder="Email Address">
                <span class="error"></span>
              </div>
              <div class="col-12"><input id="j_id0:parentofall:Phone_id" type="text" name="j_id0:parentofall:Phone_id" class="form-control isRegex isLength formatPhone phone isRequired" maxlength="14"
                  onblur="changeborder('j_id0:parentofall:Phone_id');" onchange="formatPhoneNumberEntered(this.value,'j_id0:parentofall:Phone_id');AsignPhone(this.value);" onfocus="focusinputstate('j_id0:parentofall:Phone_id');"
                  onkeypress="return onlyNumbers(event)" tabindex="7" title="" min="14" inputmode="numeric" max="14" oninvalid="this.setCustomValidity(' ')" pattern="^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$"
                  placeholder="Phone">
                <span class="error"></span>
              </div>
            </span>
          </div>
          <script id="j_id0:parentofall:j_id42" type="text/javascript">
            rerenderAuth = function(rerenderAuth) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id42',
                'parameters': {
                  'j_id0:parentofall:j_id42': 'j_id0:parentofall:j_id42',
                  'rerenderAuth': (typeof rerenderAuth != 'undefined' && rerenderAuth != null) ? rerenderAuth : ''
                }
              })
            };
          </script><input id="j_id0:parentofall:dn1" type="hidden" name="j_id0:parentofall:dn1" value="false"><input id="j_id0:parentofall:fmm1" type="hidden" name="j_id0:parentofall:fmm1"
            value="{&quot;FMCSAEmail&quot;:[],&quot;FMCSA&quot;:[],&quot;DOTRejectionReason&quot;:&quot;&quot;,&quot;DOTDecisionComment&quot;:&quot;&quot;,&quot;DOTDecisionCode&quot;:&quot;&quot;,&quot;AddressMapNoDecisionCodeMatch&quot;:{},&quot;AddressMap&quot;:{}}"><input
            id="j_id0:parentofall:cname1" type="hidden" name="j_id0:parentofall:cname1" value="false">
          <script id="j_id0:parentofall:j_id44" type="text/javascript">
            AsignFirstName = function(AsignFirstName) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id44',
                'oncomplete': function(request, event, data) {
                  console.log('assignedfirstname')
                },
                'parameters': {
                  'AsignFirstName': (typeof AsignFirstName != 'undefined' && AsignFirstName != null) ? AsignFirstName : '',
                  'j_id0:parentofall:j_id44': 'j_id0:parentofall:j_id44'
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id46" type="text/javascript">
            AsignLastName = function(AsignLastName) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id46',
                'oncomplete': function(request, event, data) {
                  console.log('assignedlastname')
                },
                'parameters': {
                  'AsignLastName': (typeof AsignLastName != 'undefined' && AsignLastName != null) ? AsignLastName : '',
                  'j_id0:parentofall:j_id46': 'j_id0:parentofall:j_id46'
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id48" type="text/javascript">
            AsignEmail = function(AsignEmail) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id48',
                'oncomplete': function(request, event, data) {
                  console.log('assignedemail')
                },
                'parameters': {
                  'j_id0:parentofall:j_id48': 'j_id0:parentofall:j_id48',
                  'AsignEmail': (typeof AsignEmail != 'undefined' && AsignEmail != null) ? AsignEmail : ''
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id50" type="text/javascript">
            AsignDot = function(AsignDot) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id50',
                'oncomplete': function(request, event, data) {
                  console.log('assigneDOT')
                },
                'parameters': {
                  'j_id0:parentofall:j_id50': 'j_id0:parentofall:j_id50',
                  'AsignDot': (typeof AsignDot != 'undefined' && AsignDot != null) ? AsignDot : ''
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id52" type="text/javascript">
            AsignDot2 = function(AsignDot) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id52',
                'oncomplete': function(request, event, data) {
                  console.log('assigneddot2')
                },
                'parameters': {
                  'j_id0:parentofall:j_id52': 'j_id0:parentofall:j_id52',
                  'AsignDot': (typeof AsignDot != 'undefined' && AsignDot != null) ? AsignDot : ''
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id54" type="text/javascript">
            IsDuplicateEmailId = function(IsDuplicateEmailId) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id54',
                'oncomplete': function(request, event, data) {
                  console.log('assignedemailisduplicatecheck')
                },
                'parameters': {
                  'IsDuplicateEmailId': (typeof IsDuplicateEmailId != 'undefined' && IsDuplicateEmailId != null) ? IsDuplicateEmailId : '',
                  'j_id0:parentofall:j_id54': 'j_id0:parentofall:j_id54'
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id56" type="text/javascript">
            ZuoraPromoCallout = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id56',
                'oncomplete': function(request, event, data) {
                  promoValidations();
                },
                'parameters': {
                  'j_id0:parentofall:j_id56': 'j_id0:parentofall:j_id56'
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id57" type="text/javascript">
            RenewToken = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id57',
                'parameters': {
                  'j_id0:parentofall:j_id57': 'j_id0:parentofall:j_id57'
                }
              })
            };
          </script>
          <script>
            function AsignPhone2(pid) {
              //var fn1 = document.getElementById(fid).value;
              //var ln1 = document.getElementById(lid).value;
              var ph1 = document.getElementById(pid).value;
              //console.log(fn1);
              //console.log(ln1);
              //console.log(ph1);
              //AsignFirstName(fn1);
              // AsignLastName(ln1);
              AsignPhone(ph1);
            }
          </script>
          <script id="j_id0:parentofall:j_id59" type="text/javascript">
            AsignPN = function(AsignPN) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id59',
                'oncomplete': function(request, event, data) {
                  console.log('assignedPN')
                },
                'parameters': {
                  'j_id0:parentofall:j_id59': 'j_id0:parentofall:j_id59',
                  'AsignPN': (typeof AsignPN != 'undefined' && AsignPN != null) ? AsignPN : ''
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id61" type="text/javascript">
            renderprocess = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id61',
                'parameters': {
                  'j_id0:parentofall:j_id61': 'j_id0:parentofall:j_id61'
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id62" type="text/javascript">
            AsignPhone = function(AsignPhone) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id62',
                'oncomplete': function(request, event, data) {
                  console.log('assignedphone')
                },
                'parameters': {
                  'j_id0:parentofall:j_id62': 'j_id0:parentofall:j_id62',
                  'AsignPhone': (typeof AsignPhone != 'undefined' && AsignPhone != null) ? AsignPhone : ''
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id64" type="text/javascript">
            continueactionone = function(renderall) {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id64',
                'oncomplete': function(request, event, data) {
                  keepValid();
                },
                'parameters': {
                  'j_id0:parentofall:j_id64': 'j_id0:parentofall:j_id64',
                  'renderall': (typeof renderall != 'undefined' && renderall != null) ? renderall : ''
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id66" type="text/javascript">
            ContactSubmit = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id66',
                'parameters': {
                  'j_id0:parentofall:j_id66': 'j_id0:parentofall:j_id66'
                }
              })
            };
          </script>
          <div class="panel-body center-block" id="contactsummary" style="padding-bottom: 0px !important; padding-top: 0px !important; display: none;"><span id="j_id0:parentofall:consummaryinfo">
              <div class="col-12" id="sumnew" style="margin-left:3%;margin-bottom:2px;"><span id="j_id0:parentofall:Dotsummary">
                  <label class="labelPage" for="company" style="color:#7F7F7F;">DOT Number </label>
                  <output style="color: #2A2A2A"></output></span>
                <label class="labelPage" for="con-fname" style="color:#7F7F7F;">First Name </label>
                <output id="outputContactFirstName" style="color: #2A2A2A"> </output>
                <label class="labelPage" for="con-lname" style="color:#7F7F7F;">Last Name </label>
                <output style="color: #2A2A2A"> </output>
                <label class="labelPage" for="email" style="color:#7F7F7F;">Email Address </label>
                <output id="outputContactEmail" style="color: #2A2A2A"></output>
                <label class="labelPage" for="phone" style="color:#7F7F7F;">Phone Number </label>
                <output style="color: #2A2A2A"></output>
              </div>
              <style>
                .labelPage {
                  width: 40%;
                  clear: left;
                  text-align: left;
                  padding-right: 0px;
                  padding-left: 0px;
                  color: #7f7f7f;
                  font-size: 14px;
                  font-weight: 400;
                }

                output {
                  font-size: 13px;
                  padding-left: 0px;
                }

                output,
                .labelPage {
                  float: left;
                  padding-top: 0px;
                }
              </style>
            </span>
          </div>
          <script id="j_id0:parentofall:j_id72" type="text/javascript">
            rerenderTopPanel = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id72',
                'parameters': {
                  'j_id0:parentofall:j_id72': 'j_id0:parentofall:j_id72'
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id73" type="text/javascript">
            refreshConInfoSec = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id73',
                'parameters': {
                  'j_id0:parentofall:j_id73': 'j_id0:parentofall:j_id73'
                }
              })
            };
          </script>
          <script id="j_id0:parentofall:j_id74" type="text/javascript">
            ContactContinueAction = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id74',
                'parameters': {
                  'j_id0:parentofall:j_id74': 'j_id0:parentofall:j_id74'
                }
              })
            };
          </script>
          <input id="prnumberid" style="word-wrap: break-word;height:100px !important; width:100px !important" type="hidden"><input id="j_id0:parentofall:lnameintexid2" type="hidden" name="j_id0:parentofall:lnameintexid2"><input
            id="j_id0:parentofall:fnameintexid2" type="hidden" name="j_id0:parentofall:fnameintexid2">
          <script>
            function asprfnc() {
              console.log('fname-1-->');
              var nodotcheckboxele = document.getElementById('j_id0:parentofall:dotnum');
              if (nodotcheckboxele) {
                var nodotcheckbox = nodotcheckboxele.disabled;
                var dotnum = document.getElementById('j_id0:parentofall:dotnum').value;
              } else {
                nodotcheckbox = true;
                dotnum = null;
              }
              var fname = document.getElementById('j_id0:parentofall:fn').value;
              var lname = document.getElementById('j_id0:parentofall:ln').value;
              var email = document.getElementById('j_id0:parentofall:em').value;
              var phone = document.getElementById('j_id0:parentofall:Phone_id').value;
              console.log('nodotcheckbox--->' + nodotcheckbox);
              console.log('dotnum--->' + dotnum);
              console.log('fname--->' + fname);
              console.log('lname--->' + lname);
              console.log('email--->' + email);
              console.log('phoneNumber--->' + phone);
              if (fname && lname && email && phone && ((!dotnum && nodotcheckbox) || (dotnum && !nodotcheckbox))) {
                console.log('in side asprfnc');
                var contInterval = setInterval(function() {
                  console.log("Oooo Yeaaa!");
                  var prnumber = document.getElementById('j_id0:parentofall:pn1').value;
                  console.log("Oooo Yeaaa!" + prnumber);
                  if (prnumber && prnumber === '5') {
                    console.log('in the asprfnc');
                    document.getElementById('prnumberid').value = prnumber;
                    var dothidden = document.getElementById('dotintextid').value;
                    //var fnamehidden2 = document.getElementById('fnameintextid').value;
                    //var lnamehidden2 = document.getElementById('lnameintextid').value;
                    var lnamehidden = document.getElementById('j_id0:parentofall:lnameintexid2').value;
                    var fnamehidden = document.getElementById('j_id0:parentofall:fnameintexid2').value;
                    var emailhidden = document.getElementById('emailintextid').value;
                    var phonehidden = document.getElementById('phoneintextid').value;
                    console.log('fnamehidden--->' + fnamehidden);
                    console.log('lnamehidden--->' + lnamehidden);
                    //console.log('--email--'+email );
                    console.log('--email hidden--' + emailhidden);
                    if (dotnum && !dothidden) {
                      console.log('inside bhayankar dot');
                      AsignDot(dotnum);
                    }
                    if (fname && (!fnamehidden || fname != fnamehidden)) {
                      console.log('inside bhayankar fname');
                      AsignFirstName(fname);
                    }
                    if (lname && (!lnamehidden || lname != lnamehidden)) {
                      console.log('inside bhayankar lname');
                      AsignLastName(lname);
                    }
                    if (email && !emailhidden) {
                      console.log('inside bhayankar email');
                      IsDuplicateEmailId(email);
                    }
                    if (phone && !phonehidden) {
                      console.log('inside bhayankar phone');
                      AsignPhone(phone);
                    }
                    console.log('phonehidden-->' + phonehidden);
                    console.log('phone-->' + phone);
                    if (fnamehidden && lnamehidden && emailhidden && phonehidden && ((!dothidden && nodotcheckbox) || (dothidden && !nodotcheckbox))) {
                      var continue1 = document.getElementById('j_id0:parentofall:continue1id');
                      var iscontactedit = document.getElementById('contactedit').style.display
                      var contactedit = document.getElementById('contactedit');
                      if (continue1 && (iscontactedit === 'block' || iscontactedit === '') && contactedit) {
                        console.log('interval stoped if');
                        //console.log('lnamehidden2-->'+lnamehidden2);
                        clearInterval(contInterval); //stop that interval 
                        hideeditsection();
                        ContactSubmit();
                        //setTimeout(function(){      
                        //  ContactSubmit();        
                        //},500); 
                        continue1.click();
                        var stopinterval = true;
                      } else {
                        console.log('interval stoped else');
                        clearInterval(contInterval); //stop that interval 
                      }
                    }
                  } else {
                    console.log('interval process number != 5 stoped else');
                    clearInterval(contInterval); //stop that interval 
                  }
                  rerenderTopPanel();
                }, 2000);
              }
            }
          </script>
          <div class="apexp">
            <div id="j_id0:parentofall:coninfosecid" class="bPageBlock brandSecondaryBrd apexDefaultPageBlock secondaryPalette">
              <div class="pbBody"><span id="j_id0:parentofall:coninfosecid:j_id77">
                  <input id="dotintextid" style="word-wrap: break-word;height:100px !important; width:800px !important" type="hidden" value="">
                  <input id="emailintextid" style="word-wrap: break-word;height:100px !important; width:800px !important" type="hidden" value="">
                  <input id="phoneintextid" style="word-wrap: break-word;height:100px !important; width:800px !important" type="hidden" value="">
                  <input id="leadorAccid" style="word-wrap: break-word;height:100px !important; width:800px !important" type="hidden" value="">
                  <input id="coninfo" style="word-wrap: break-word;height:100px !important; width:800px !important" type="hidden"
                    value="ContactInfo:[AccList=null, AccountTypeFromUI=null, AccountTypeThatDoesntRequireDot=null, AddressFromUI=null, AuthorityId=null, BAddressFromUI=null, BillingEmailFromUI=null, CompanyNameFromUI=null, CompanyRep=null, ContactExistsWithSameEmail=null, DOTFromUI=null, DecisionComment=null, Docket=null, DocketNumberFromFMCSA=null, DocketStatus=null, DoesNotHaveDOT=null, DoingBusinessAs=null, EINFromUI=null, EmailFromUI=null, FirstNameFromUI=null, IPfromUI=null, LastNameFromUI=null, LeadOrAccountId=, LegalNameFromFMCSA=null, ObjNote=null, OppID=null, PhoneNumberFromUI=null, ProcessNumber=null, ProductIdFromUI=null, Status=null, StatusFromFMCSA=null, TrueLeadOrAccountId=, TypeFromFMCSA=null, accountParentEntId=null, accountParentId=null, hasAccDotMatchEnt=false, isActiveBillingContactExists=false, isNoteCreatedonSecurityConcernAccount=false, isSecurityReviewCaseCreated=false, isUseExistingAccount=null, maincontactId=null, marketingLeadSource=null, newContactId=null, oAddress_FMCSA=null]"></span>
              </div>
              <div class="pbFooter secondaryPalette">
                <div class="bg"></div>
              </div>
            </div>
          </div>
          <div class="panel-body center-block" id="contactcntbtn" style="padding-left:20px;display:block !important;"><span id="j_id0:parentofall:contactcntbtnrerender"><input class="btn primary_btn" id="j_id0:parentofall:continue1id"
                name="j_id0:parentofall:continue1id"
                onclick="keepValid();toggleSpinnerContact2();validateForm(event);gacontact();;return A4J.AJAX.Submit('j_id0:parentofall',event,{'similarityGroupingId':'j_id0:parentofall:continue1id','html5Validate':true,'parameters':{'j_id0:parentofall:continue1id':'j_id0:parentofall:continue1id'} } );"
                value="CONTINUE" style="padding:0px;text-align:center;width: 111px;height: 33px;background: #B60207;letter-spacing:1.5px;font-size: 14px;color: #ffffff;border-radius: 3px;font-family: 'Open Sans';font-weight:600;" tabindex="8"
                type="submit"></span>
          </div>
          <script>
            var str1 = "'send', 'event', 'Button',";
            var str11 = 'send';
            var str12 = 'event';
            var str13 = 'Button';
            var str2 = 'Carrier';
            var str21 = str2.concat('Click');
            var packagename = 'Load Board Pro - Carrier ';
            var str3 = "";
            if (packagename.includes('Basic')) {
              str3 = 'Basic';
            } else if (packagename.includes('Advanced')) {
              str3 = 'Adv';
            } else if (packagename.includes('Pro')) {
              str3 = 'Pro';
            }

            function gacontact() {
              var str31 = 'Contact';
              var str32 = str31.concat(str3);
              var str4 = document.getElementById("totalprice").innerHTML;
              var str5 = str4.split("$");
              var str6 = str5[1].split(".");
              var str7 = str6[0].split("/");
              var res = str1.concat('\'', str2, 'Click\',\'QAContact', str3, '\',', str7[0]);
              console.log(res);
              //ga(res);    
              console.log(str11 + ' ' + str12 + ' ' + str13 + ' ' + str21 + ' ' + str32 + ' ' + str7[0]);
              ga(str11, str12, str13, str21, str32, str7[0]);
            }
          </script><input id="j_id0:parentofall:pn1" type="hidden" name="j_id0:parentofall:pn1" value="0"><input id="j_id0:parentofall:pn7" type="hidden" name="j_id0:parentofall:pn7" value="0"><input id="j_id0:parentofall:rej" type="hidden"
            name="j_id0:parentofall:rej" value="false"><input id="j_id0:parentofall:einvis" type="hidden" name="j_id0:parentofall:einvis" value="false"><input id="j_id0:parentofall:consummaryinfoid" type="hidden"
            name="j_id0:parentofall:consummaryinfoid" value="">
          <script type="text/javascript">
            var app = validationJs({
              preventSubmitOnError: false
            });
            var msgObj;
            var serverStatus = {
              email: true
            };

            function serverEmailCheck() {
              toggleSpinner();
              console.log("server email response");
              alert(false);
              serverStatus.email = false;
              var eml = $('.email').val();
            }

            function keepValid() {
              $(document).ready(function() {
                msgObj = {
                  dot: {
                    status: false,
                    ref: $(".cstm-validation-form .dot"),
                    msg: undefined
                  },
                  first_name: {
                    status: false,
                    ref: $(".cstm-validation-form .first-name"),
                    msg: undefined
                  },
                  last_name: {
                    status: false,
                    ref: $(".cstm-validation-form .last-name"),
                    msg: undefined
                  },
                  email: {
                    status: false,
                    ref: $(".cstm-validation-form .email"),
                    msg: {
                      email: "Please enter a valid email format: jsmith@example.com"
                    }
                  }, //rreditc
                  phone: {
                    status: false,
                    ref: $(".cstm-validation-form .phone"),
                    msg: {
                      length: "Length should be equal to 10",
                      regex: "The phone number should be in (123) 456-7890 format"
                    }
                  },
                  d_agrement: {
                    status: false,
                    ref: $(".cstm-validation-form .d-agrement"),
                    msg: undefined
                  },
                };
                $(".cstm-validation-form").find('input, textarea, select').on('blur change', function(event) {
                  var input = $(this);
                  var clientStatus = true;
                  $.each(msgObj, function(key, value) {
                    if (input.is(value.ref)) {
                      value.status = app.validateField(value.ref, value.msg);
                      clientStatus = value.status;
                    }
                  });
                  if (event.type == "change") {
                    if (clientStatus && input.hasClass('isServer')) {
                      app.setServerStatus(false);
                      //for example if company has server method do the following
                      if (input.hasClass('email')) {
                        toggleSpinner();
                        IsDuplicateEmailId(input.val());
                        serverStatus.email = false;
                        console.log("server email request");
                      }
                    }
                  }
                });
              });
              $(".formatPhone").keydown(function(e) {
                formatPhoneNumber(e, this);
                // onkeypress="return event.charCode >= 48 && event.charCode <= 57"
              });
            }
            $(".formatPhone").keydown(function(e) {
              formatPhoneNumber(e, this);
              // onkeypress="return event.charCode >= 48 && event.charCode <= 57"
            });

            function formatPhoneNumber(event, element) {
              var phone = $(element).val();
              const target = event.target;
              const input = event.target.value.replace(/\D/g, '').substring(0, 10); // First ten digits of input only
              const zip = input.substring(0, 3);
              const middle = input.substring(3, 6);
              const last = input.substring(6, 10);
              if (input.length > 6) {
                target.value = `(${zip}) ${middle}-${last}`;
              } else if (input.length > 3) {
                target.value = `(${zip}) ${middle}`;
              } else if (input.length > 0) {
                target.value = `(${zip}`;
              }
              /*if (event.keyCode != 8 && (phone.length == 3 || phone.length == 7)) {
                                                $(element).val(phone + '-');
                                            }                                            */
            }
            $(document).ready(function() {
              msgObj = {
                dot: {
                  status: false,
                  ref: $(".cstm-validation-form .dot"),
                  msg: undefined
                },
                first_name: {
                  status: false,
                  ref: $(".cstm-validation-form .first-name"),
                  msg: undefined
                },
                last_name: {
                  status: false,
                  ref: $(".cstm-validation-form .last-name"),
                  msg: undefined
                },
                email: {
                  status: false,
                  ref: $(".cstm-validation-form .email"),
                  msg: {
                    email: "Please enter a valid email format: jsmith@example.com"
                  }
                }, //rreditc
                phone: {
                  status: false,
                  ref: $(".cstm-validation-form .phone"),
                  msg: {
                    length: "Length should be equal to 10",
                    regex: "The phone number should be in (123) 456-7890 format"
                  }
                },
                d_agrement: {
                  status: false,
                  ref: $(".cstm-validation-form .d-agrement"),
                  msg: undefined
                },
              };
              $(".cstm-validation-form").find('input, textarea, select').on('blur change', function(event) {
                var input = $(this);
                var clientStatus = true;
                $.each(msgObj, function(key, value) {
                  if (input.is(value.ref)) {
                    value.status = app.validateField(value.ref, value.msg);
                    clientStatus = value.status;
                  }
                });
                if (event.type == "change") {
                  if (clientStatus && input.hasClass('isServer')) {
                    app.setServerStatus(false);
                    //for example if company has server method do the following
                    if (input.hasClass('email')) {
                      toggleSpinner();
                      IsDuplicateEmailId(input.val());
                      serverStatus.email = false;
                      console.log("server email request");
                    }
                  }
                }
              });
            });

            function validateForm(event) {
              var validClient = true;
              console.log('event==' + event);
              var atype = 'Carrier';
              var noat;
              if (atype == 'Shipper') {
                noat = true;
              } else {
                noat = document.getElementById('j_id0:parentofall:nodotcheck').checked;
              }
              console.log("authauth11 " + noat);
              var fieldsNotToValidate = ["street_addr", "city", "state", "zip", "ein", "d_agrement", "agrement"]; // Added by Shiva 
              if (noat) {
                console.log("authauth22 " + noat);
                fieldsNotToValidate.push("dot");
              } else {
                console.log("authauth22b " + noat);
                fieldsNotToValidate = fieldsNotToValidate.filter(e => e !== 'dot');
              }
              console.log("authauth33 " + fieldsNotToValidate);
              $.each(msgObj, function(key, value) {
                var checkKey = !fieldsNotToValidate.includes(key); // Added by Shiva 
                console.log('c==' + checkKey);
                if (checkKey) { // Added by Shiva
                  console.log('k==' + key);
                  console.log('value==' + value);
                  value.status = app.validateField(value.ref, value.msg);
                  if (validClient) validClient = value.status;
                }
              });
              if (!app.getServerStatus()) {
                var validServer = true;
                $.each(serverStatus, function(key, value) {
                  if (validServer) validServer = value;
                });
                if (validServer) app.setServerStatus(true);
              }
              console.log('vc1: ' + validClient);
              console.log('as1: ' + app.getServerStatus());
              if (!(validClient) || !app.getServerStatus()) {
                console.log('entered if valid and app server');
                $('.cstm-validation-form .form-error').text("Please correct above errors!");
              } else {
                console.log('entered elseif valid and app server');
                $('.cstm-validation-form .form-error').text("");
              }
              console.log('vc: ' + validClient);
              console.log('as: ' + app.getServerStatus());
              //alert('vc: '+validClient);
              //alert('as: '+app.getServerStatus());
              var pn = document.getElementById('j_id0:parentofall:pn1').value;
              console.log('pnpnpn ' + pn);
              if (validClient && app.getServerStatus() && pn == 5) {
                console.log('entered ' + pn);
                asprfnc();
                //ContactSubmit();
                //hideeditsection();
              } else {
                console.log('false entered');
                //return false;
              }
              //return (validClient && app.getServerStatus())? true:false;
              //return (validClient);
            }

            function validateFormInitial(event) {
              var validClient = true;
              console.log('event==' + event);
              var atype = 'Carrier';
              var noat;
              if (atype == 'Shipper') {
                noat = true;
              } else {
                noat = document.getElementById('j_id0:parentofall:nodotcheck').checked;
              }
              console.log("authauth11 " + noat);
              var fieldsNotToValidate = ["street_addr", "city", "state", "zip", "ein", "d_agrement", "agrement"]; // Added by Shiva 
              if (noat) {
                console.log("authauth22 " + noat);
                fieldsNotToValidate.push("dot");
              } else {
                console.log("authauth22b " + noat);
                fieldsNotToValidate = fieldsNotToValidate.filter(e => e !== 'dot');
              }
              console.log("authauth33 " + fieldsNotToValidate);
              $.each(msgObj, function(key, value) {
                var checkKey = !fieldsNotToValidate.includes(key); // Added by Shiva 
                console.log('c==' + checkKey);
                if (checkKey) { // Added by Shiva
                  console.log('k==' + key);
                  console.log('value==' + value);
                  value.status = app.validateField(value.ref, value.msg);
                  if (validClient) validClient = value.status;
                }
              });
              if (!app.getServerStatus()) {
                var validServer = true;
                $.each(serverStatus, function(key, value) {
                  if (validServer) validServer = value;
                });
                if (validServer) app.setServerStatus(true);
              }
              console.log('vc1: ' + validClient);
              console.log('as1: ' + app.getServerStatus());
              if (!(validClient) || !app.getServerStatus()) {
                console.log('entered if valid and app server');
                $('.cstm-validation-form .form-error').text("Please correct above errors!");
              } else {
                console.log('entered elseif valid and app server');
                $('.cstm-validation-form .form-error').text("");
              }
              console.log('vc: ' + validClient);
              console.log('as: ' + app.getServerStatus());
              //alert('vc: '+validClient);
              //alert('as: '+app.getServerStatus());
              var pn = document.getElementById('j_id0:parentofall:pn1').value;
              console.log('pnpnpn ' + pn);
              if (validClient && app.getServerStatus() && pn == 5) {
                console.log('entered ' + pn);
                //return true;
              } else {
                console.log('false entered');
                //return false;
              }
              keepValid();
            }

            function zipCodeOnlyNumbers(event, countryId, dataValue, id) {
              var key = window.event ? event.keyCode : event.which;
              console.log(event.keyCode);
              var returnType = true;
              try {
                var countryValue = document.getElementById(countryId).value;
                if (countryValue == 'US') {
                  if (event.keyCode == 8 || event.keyCode == 45 || event.keyCode == 9) {
                    returnType = true;
                  } else if (key < 48 || key > 57) {
                    returnType = false;
                  }
                  console.log('returnType==' + returnType);
                  if (returnType) {
                    console.log('dataValue===' + dataValue);
                    console.log('dataValue.length===' + dataValue.length);
                    if (dataValue.length == 6) {
                      var zipData = dataValue.replace('-', '');
                      var finalZip = zipData.substring(0, 5) + '-' + zipData.substring(5, zipData.length);
                      console.log('finalZip===' + finalZip);
                      document.getElementById(id).value = finalZip;
                    }
                  }
                }
              } catch (err) {
                alert(err);
              }
              return returnType;
            }

            function onlyNumbers(event) {
              var key = window.event ? event.keyCode : event.which;
              console.log(event.keyCode);
              if (event.keyCode == 8 || event.keyCode == 9) {
                return true;
              } else if (key < 48 || key > 57) {
                return false;
              } else return true;
            }
          </script>
        </div>
      </div>
      <div class="panel" id="companyInformation" style="order: 4">
        <h1 class="panel-heading"> Company Information <i class="fa1 collapsed" data-target="#cominfodata" data-toggle="collapse" id="comchev" style="pointer-events: none;"></i>
          <e id="companyeditbtn">
            <script id="j_id0:parentofall:j_id82" type="text/javascript">
              fireCompanyContinueAction = function() {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:j_id82',
                  'parameters': {
                    'j_id0:parentofall:j_id82': 'j_id0:parentofall:j_id82'
                  }
                })
              };
            </script>
            <script id="j_id0:parentofall:j_id83" type="text/javascript">
              process7 = function() {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:j_id83',
                  'parameters': {
                    'j_id0:parentofall:j_id83': 'j_id0:parentofall:j_id83'
                  }
                })
              };
            </script><span id="j_id0:parentofall:companyEditIcon"></span>
          </e>
        </h1>
        <div aria-expanded="false" class="panel-collapse collapse" id="cominfodata" style="border:0">
          <script>
            function validateCompanyInfoData() {
              var hasError = false;
              try {
                var companyfieldsToValidate = ["j_id0:parentofall:company", "j_id0:parentofall:street", "j_id0:parentofall:city", "j_id0:parentofall:state", "j_id0:parentofall:zip", "j_id0:parentofall:country"];
                var i;
                for (i = 0; i < companyfieldsToValidate.length; i++) {
                  var id = companyfieldsToValidate[i];
                  console.log('comId ===' + id);
                  var id2 = id.split(":");
                  console.log('comId2 ===' + id2);
                  var errorId = id2[id2.length - 1] + 'error';
                  var valueId = id2[id2.length - 1];
                  console.log('s===' + document.getElementById(id).value);
                  if ((document.getElementById(id).value == "" || document.getElementById(id).value == " ")) {
                    var errorMessage = 'This is a required field';
                    document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                    document.getElementById(errorId).innerHTML = errorMessage;
                    hasError = true;
                  } else if (valueId == 'zip') {
                    var zipValue = document.getElementById(id).value;
                    var country = document.getElementById('j_id0:parentofall:country').value;
                    console.log('country===' + country);
                    if (country == 'US') {
                      if (zipValue.length != 5 && zipValue.length != 10) {
                        hasError = true;
                        errorMessage = 'The zip code should be either 12345 or 12345-6789 format!';
                        document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                        document.getElementById(errorId).innerHTML = errorMessage;
                      } else if (zipValue.length == 10) {
                        var zipValueCodeData = zipValue.substring(5, 6);
                        if (zipValueCodeData != '-') {
                          hasError = true;
                          errorMessage = 'The zip code should be either 12345 or 12345-6789 format!';
                          document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                          document.getElementById(errorId).innerHTML = errorMessage;
                        }
                      }
                    } else {
                      var validPostalCode = false;
                      var zipValue = document.getElementById(id).value;
                      console.log('zipValue===' + zipValue);
                      var zipcodeNeedSpecialCharacter = false;
                      console.log('zipValue==' + zipValue);
                      if (zipValue.length == 7) {
                        zipcodeNeedSpecialCharacter = true;
                      }
                      var validzipValueCodeData = zipValue.substring(3, 4);
                      console.log('validzipValueCodeData===' + validzipValueCodeData);
                      var zipValueFinal = zipValue.replace('-', '');
                      zipValueFinal = zipValueFinal.replace(' ', '');
                      console.log('zipValueFinal===' + zipValueFinal);
                      console.log('zipValueFinallength===' + zipValueFinal.length);
                      if (zipcodeNeedSpecialCharacter) {
                        if ((validzipValueCodeData == '-' || validzipValueCodeData == ' ') && zipValueFinal.length == 6) {
                          validPostalCode = true;
                        }
                      } else if (zipValueFinal.length == 6) {
                        validPostalCode = true;
                      }
                      console.log('validPostalCode===' + validPostalCode);
                      if (validPostalCode == false) {
                        hasError = true;
                        errorMessage = 'The Postal Code should be either A0A 1B1 or A0A-1B1 or A0A1B1 format!';
                        document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                        document.getElementById(errorId).innerHTML = errorMessage;
                      }
                    }
                  }
                }
                var ein = document.getElementById('j_id0:parentofall:einvis').value; //'false'; 
                console.log('ein====' + ein);
                if (ein == 'true') {
                  var id = 'j_id0:parentofall:einNumber';
                  console.log('eincomId ===' + id);
                  var id2 = id.split(":");
                  console.log('eincomId2 ===' + id2);
                  var errorId = id2[id2.length - 1] + 'error';
                  var valueId = id2[id2.length - 1];
                  console.log('s===' + document.getElementById(id).value);
                  //Shiva modified for EIN Number Format Starts
                  var einValue = document.getElementById(id).value;
                  var regExp = /[a-zA-Z]/g;
                  console.log('einValue===' + einValue);
                  //Shiva modified for EIN Number Format Ends
                  if ((document.getElementById(id).value == "" || document.getElementById(id).value == " ")) {
                    var errorMessage = 'This is a required field';
                    document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                    document.getElementById(errorId).innerHTML = errorMessage;
                    hasError = true;
                    //Shiva modified for EIN Number Format Starts
                  } else if (regExp.test(einValue) || !einValue.includes("-") || einValue.length != 10) {
                    var errorMessage = 'The EIN Number should be in 12-3456789 format';
                    document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                    document.getElementById(errorId).innerHTML = errorMessage;
                    hasError = true;
                  }
                  //Shiva modified for EIN Number Format Ends 
                }
                var billingCheckboxId = 'j_id0:parentofall:sameAsComp_Billing';
                var billingCheckboxValue = document.getElementById(billingCheckboxId).checked;
                console.log('billingCheckboxValue===' + billingCheckboxValue);
                if (billingCheckboxValue == false) {
                  var billingfieldsToValidate = ["j_id0:parentofall:bla:billfn", "j_id0:parentofall:bla:billln", "j_id0:parentofall:bla:billPhone_id", "j_id0:parentofall:bla:billstrtaddrs", "j_id0:parentofall:bla:billcity",
                    "j_id0:parentofall:bla:billstatefield", "j_id0:parentofall:bla:billzip", "j_id0:parentofall:bla:billcountryfield"
                  ];
                  var i;
                  for (i = 0; i < billingfieldsToValidate.length; i++) {
                    var id = billingfieldsToValidate[i];
                    console.log('billcomId ===' + id);
                    var id2 = id.split(":");
                    console.log('billcomId2 ===' + id2);
                    var errorId = id2[id2.length - 1] + 'error';
                    var valueId = id2[id2.length - 1];
                    console.log('s===' + document.getElementById(id).value);
                    if ((document.getElementById(id).value == "" || document.getElementById(id).value == " ")) {
                      var errorMessage = 'This is a required field';
                      document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                      document.getElementById(errorId).innerHTML = errorMessage;
                      hasError = true;
                    } else {
                      if (valueId == 'billPhone_id') {
                        var phoneValue = document.getElementById(id).value;
                        if (phoneValue.length != 14) {
                          hasError = true;
                          errorMessage = 'The phone number should be in (123) 456-7890 format';
                          document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                          document.getElementById(errorId).innerHTML = errorMessage;
                        }
                      } else if (valueId == 'billfn') {
                        var contactFirstName = document.getElementById("outputContactFirstName").innerHTML;
                        var billingContactFName = document.getElementById(id).value;
                        // Commented below validation as part of W-001787, by Shiva 7/30/2021 
                        /*  if(contactFirstName == billingContactFName){    
                              hasError = true;    
                              errorMessage = 'Contact FirstName and Billing Contact FirstName should not be Same';    
                              document.getElementById(id).style= ('border-bottom: 2px solid #b11721 !important ');    
                              document.getElementById(errorId).innerHTML= errorMessage;   
                              
                          }    */
                      } else if (valueId == 'billzip') {
                        var zipValue = document.getElementById(id).value;
                        var country = document.getElementById('j_id0:parentofall:bla:billcountryfield').value;
                        console.log('country===' + country);
                        if (country == 'US') {
                          if (zipValue.length != 5 && zipValue.length != 10) {
                            hasError = true;
                            errorMessage = 'The zip code should be either 12345 or 12345-6789 format!';
                            document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                            document.getElementById(errorId).innerHTML = errorMessage;
                          } else if (zipValue.length == 10) {
                            var zipValueCodeData = zipValue.substring(5, 6);
                            if (zipValueCodeData != '-') {
                              hasError = true;
                              errorMessage = 'The zip code should be either 12345 or 12345-6789 format!';
                              document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                              document.getElementById(errorId).innerHTML = errorMessage;
                            }
                          }
                        } else {
                          var validPostalCode = false;
                          var zipValue = document.getElementById(id).value;
                          console.log('zipValue===' + zipValue);
                          var zipcodeNeedSpecialCharacter = false;
                          console.log('zipValue==' + zipValue);
                          if (zipValue.length == 7) {
                            zipcodeNeedSpecialCharacter = true;
                          }
                          var validzipValueCodeData = zipValue.substring(3, 4);
                          console.log('validzipValueCodeData===' + validzipValueCodeData);
                          var zipValueFinal = zipValue.replace('-', '');
                          zipValueFinal = zipValueFinal.replace(' ', '');
                          console.log('zipValueFinal===' + zipValueFinal);
                          console.log('zipValueFinallength===' + zipValueFinal.length);
                          if (zipcodeNeedSpecialCharacter) {
                            if ((validzipValueCodeData == '-' || validzipValueCodeData == ' ') && zipValueFinal.length == 6) {
                              validPostalCode = true;
                            }
                          } else if (zipValueFinal.length == 6) {
                            validPostalCode = true;
                          }
                          console.log('validPostalCode===' + validPostalCode);
                          if (validPostalCode == false) {
                            hasError = true;
                            errorMessage = 'The Postal Code should be either A0A 1B1 or A0A-1B1 or A0A1B1 format!';
                            document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                            document.getElementById(errorId).innerHTML = errorMessage;
                          }
                        }
                      }
                    }
                  }
                  var emailId = 'j_id0:parentofall:bla:billemail';
                  var emailString = document.getElementById(emailId).value;
                  console.log('emailString==' + emailString);
                  console.log('emailStringlength==' + emailString.length);
                  console.log('comId ===' + emailId);
                  var emailid2 = emailId.split(":");
                  console.log('emailid2 ===' + emailid2);
                  var errorId = emailid2[emailid2.length - 1] + 'error';
                  var valueId = emailid2[emailid2.length - 1];
                  document.getElementById(errorId).innerHTML = '';
                  if (emailString.length > 0) {
                    const regex = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,15}$/;
                    console.log('ssemailText==' + regex.test(emailString));
                    if (regex.test(emailString)) {
                      var contactEmail = document.getElementById("outputContactEmail").innerHTML;
                      if (contactEmail == emailString) {
                        document.getElementById(emailId).style = ('border-bottom: 2px solid #DDD !important ');
                        document.getElementById(errorId).innerHTML = 'Contact Email and Billing Contact Email should not be Same.';
                        hasError = true;
                      } else {
                        document.getElementById(errorId).innerHTML = '';
                      }
                    } else {
                      document.getElementById(errorId).innerHTML = 'Enter a valid Email Address';
                      console.log('sasa===' + document.getElementById(id).innerHTML);
                      hasError = true;
                    }
                  } else {
                    document.getElementById(emailId).style = ('border-bottom: 2px solid #DDD !important ');
                    document.getElementById(errorId).innerHTML = 'This is a required field';
                    hasError = true;
                  }
                }
                if (hasError == true) {
                  var spinner = $(".cstm-spinner");
                  spinner.hide();
                }
              } catch (err) {
                alert(err);
              }
              console.log('hasError====' + hasError);
              if (hasError == false) {
                //toggleSpinner();    
                //hidecomeditsection();   
                //fireCompanyContinueAction();  
                var Street = document.getElementById("j_id0:parentofall:street").value;
                var City = document.getElementById("j_id0:parentofall:city").value;
                var State = document.getElementById("j_id0:parentofall:state").value;
                var Country = document.getElementById("j_id0:parentofall:country").value;
                var PostalCode = document.getElementById("j_id0:parentofall:zip").value;
                console.log('Street===' + Street);
                console.log('City===' + City);
                console.log('State===' + State);
                console.log('Country===' + Country);
                console.log('PostalCode===' + PostalCode);
                Visualforce.remoting.Manager.invokeAction('SignUpController.validateAddress', Street, City, State, Country, PostalCode, function(result, event) {
                  console.log(result);
                  if (result) {
                    //toggleSpinnerComp();   rrcomment 
                    hidecomeditsection();
                    setTimeout(function() {
                      fireCompanyContinueAction();
                    }, 3000);
                  } else {
                    var spinner = $(".cstm-spinner");
                    spinner.hide();
                    document.getElementById('companyInfoErrorMessage').innerHTML = 'Please enter a valid physical address. The address must not be a P.O. Box or third-party mail center';
                  }
                });
              }
            }

            function companyInfoCompleteAction() {
              //alert('Entered Error Section');
              try {
                var ErrorMessage = document.getElementById('companyInfoErrorMessage').innerHTML;
                //alert('elength===='+ErrorMessage.length);
                if (ErrorMessage.length <= 0) {
                  //toggleSpinner();    rrcomment
                  hidecomeditsection();
                } else {
                  var spinner = $(".cstm-spinner");
                  spinner.hide();
                  document.getElementById('companyInfoErrorMessage').innerHTML = ErrorMessage;
                }
              } catch (err) {
                alert('er===' + err);
              }
              //alert('ErrorMessage==='+ErrorMessage);
            }

            function formatBillingPhoneNumber(event, phoneValue, id) {
              try {
                var key = window.event ? event.keyCode : event.which;
                console.log(event.keyCode);
                var returnType;
                if (event.keyCode == 8 || event.keyCode == 9) {
                  returnType = true;
                } else if (key < 48 || key > 57) {
                  returnType = false;
                } else {
                  returnType = true;
                }
                console.log('returnType===' + returnType);
                if (returnType) {
                  console.log('phoneValue===' + phoneValue);
                  console.log('phoneValue.length===' + phoneValue.length);
                  if (phoneValue.length == 3) {
                    phoneValue = phoneValue.trim();
                    var phoneData = phoneValue.replace('(', '');
                    phoneData = phoneData.replace(')', '');
                    phoneData = phoneData.replace(' ', '');
                    var finalPhone = '(' + phoneData.substring(0, 3) + phoneData.substring(3, phoneData.length);
                    document.getElementById(id).value = finalPhone;
                  }
                  if (phoneValue.length == 7) {
                    phoneValue = phoneValue.trim();
                    var phoneData = phoneValue.replace('(', '');
                    phoneData = phoneData.replace(')', '');
                    phoneData = phoneData.replace(' ', '');
                    phoneData = phoneData.replace('-', '');
                    console.log('in9===' + phoneData);
                    var finalPhone = '(' + phoneData.substring(0, 3) + ') ' + phoneData.substring(3, phoneValue.length);
                    console.log('finalPhone===' + finalPhone);
                    document.getElementById(id).value = finalPhone;
                  }
                  if (phoneValue.length == 11) {
                    phoneValue = phoneValue.trim();
                    var phoneData = phoneValue.replace('(', '');
                    phoneData = phoneData.replace(')', '');
                    phoneData = phoneData.replace(' ', '');
                    phoneData = phoneData.replace('-', '');
                    console.log('in12===' + phoneData);
                    var finalPhone = '(' + phoneData.substring(0, 3) + ') ' + phoneData.substring(3, 6) + '-' + phoneData.substring(6, phoneValue.length);
                    console.log('finalPhone===' + finalPhone);
                    document.getElementById(id).value = finalPhone;
                  }
                }
                return returnType;
              } catch (err) {
                alert(err);
              }
            }
            //Shiva modified for EIN Number Format Starts
            function formatEINNumberkeyPress(event, einNummberString, id) {
              var key = window.event ? event.keyCode : event.which;
              //alert(event.keyCode);
              var returnVariable = true;
              if (event.keyCode == 8 || event.keyCode == 9) {
                returnVariable = true;
              } else if (key < 48 || key > 57) {
                returnVariable = false;
              }
              if (returnVariable == true) {
                var einNummberStringLen = einNummberString.length;
                if (einNummberStringLen == 2) {
                  einNummberString = einNummberString + '-';
                  document.getElementById(id).value = einNummberString;
                }
              }
              return returnVariable;
            }
            //Shiva modified for EIN Number Format Ends
            function changeborderCompany(id) {
              var hasError = false;
              var errorMessage = '';
              try {
                console.log('id===' + id);
                var id2 = id.split(":");
                var errorId = id2[id2.length - 1] + 'error';
                var valueId = id2[id2.length - 1];
                if ((document.getElementById(id).value == "" || document.getElementById(id).value == " ")) {
                  hasError = true;
                  errorMessage = 'This is a required field';
                } else {
                  console.log('valueId===' + valueId);
                  //Shiva modified for EIN Number Format Starts
                  if (valueId == 'einNumber') {
                    var einValue = document.getElementById(id).value;
                    var regExp = /[a-zA-Z]/g;
                    if (regExp.test(einValue)) {
                      hasError = true;
                      errorMessage = 'The EIN Number should be in 12-3456789 format';
                    } else {
                      if (!einValue.includes("-")) {
                        einValue = einValue.substring(0, 2) + '-' + einValue.substring(2, einValue.length);
                        document.getElementById(id).value = einValue;
                      }
                      if (einValue.length != 10) {
                        hasError = true;
                        errorMessage = 'The EIN Number should be in 12-3456789 format';
                      }
                    }
                  }
                  //Shiva modified for EIN Number Format Ends
                  else if (valueId == 'billPhone_id') {
                    var phoneValue = document.getElementById(id).value;
                    if (phoneValue.length != 14) {
                      hasError = true;
                      errorMessage = 'The phone number should be in (123) 456-7890 format';
                    }
                  } else if (valueId == 'billfn') {
                    var contactFirstName = document.getElementById("outputContactFirstName").innerHTML;
                    var billingContactFName = document.getElementById(id).value;
                    // Commented below validation as part of W-001787, by Shiva 7/30/2021 
                    /*   if(contactFirstName == billingContactFName){    
                        hasError = true;    
                        errorMessage = 'Contact FirstName and Billing Contact FirstName should not be Same';    
                        
                    }  */
                  } else if (valueId == 'zip' || valueId == 'billzip') {
                    console.log('id===' + id);
                    console.log('valueId===' + valueId);
                    var country = document.getElementById('j_id0:parentofall:country').value;
                    console.log('country1976===' + country);
                    if (valueId == 'billzip') {
                      country = document.getElementById('j_id0:parentofall:bla:billcountryfield').value;
                      console.log('billingcountry1979===' + country);
                    }
                    console.log('country===' + country);
                    if (country == 'US') {
                      console.log('countryInsdieUs===' + country);
                      var zipValue = document.getElementById(id).value;
                      console.log('zipValue===' + zipValue);
                      if (zipValue.length != 5 && zipValue.length != 10) {
                        hasError = true;
                        errorMessage = 'The zip code should be either 12345 or 12345-6789 format!';
                      } else if (zipValue.length == 10) {
                        var zipValueCodeData = zipValue.substring(5, 6);
                        if (zipValueCodeData != '-') {
                          hasError = true;
                          errorMessage = 'The zip code should be either 12345 or 12345-6789 format!';
                          document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                          document.getElementById(errorId).innerHTML = errorMessage;
                        }
                      }
                    } else {
                      console.log('countryInsdieCanada===' + country);
                      var validPostalCode = false;
                      var zipValue = document.getElementById(id).value;
                      console.log('zipValue===' + zipValue);
                      var zipcodeNeedSpecialCharacter = false;
                      console.log('zipValue==' + zipValue);
                      if (zipValue.length == 7) {
                        zipcodeNeedSpecialCharacter = true;
                      }
                      var validzipValueCodeData = zipValue.substring(3, 4);
                      console.log('validzipValueCodeData===' + validzipValueCodeData);
                      var zipValueFinal = zipValue.replace('-', '');
                      zipValueFinal = zipValueFinal.replace(' ', '');
                      console.log('zipValueFinal===' + zipValueFinal);
                      console.log('zipValueFinallength===' + zipValueFinal.length);
                      if (zipcodeNeedSpecialCharacter) {
                        if ((validzipValueCodeData == '-' || validzipValueCodeData == ' ') && zipValueFinal.length == 6) {
                          validPostalCode = true;
                        }
                      } else if (zipValueFinal.length == 6) {
                        validPostalCode = true;
                      }
                      console.log('validPostalCode===' + validPostalCode);
                      if (validPostalCode == false) {
                        hasError = true;
                        errorMessage = 'The Postal Code should be either A0A 1B1 or A0A-1B1 or A0A1B1 format!';
                      }
                    }
                  }
                }
                if (hasError == true) {
                  document.getElementById(id).style = ('border-bottom: 2px solid #b11721 !important ');
                  document.getElementById(errorId).innerHTML = errorMessage;
                } else {
                  document.getElementById(id).style = ('border-bottom: 2pax solid #DDD !important ');
                  document.getElementById(errorId).innerHTML = '';
                }
              } catch (err) {
                alert(err);
              }
            }

            function focusinputstate(id) {
              if (document.getElementById(id).value != " ") {
                document.getElementById(id).style = ('border-bottom: 2px solid black !important ');
              } else {
                document.getElementById(id).style = ('border-bottom: 2px solid #DDD !important ');
              }
            }

            function validateContactBillEmail(emailString, id, fieldId) {
              try {
                console.log('emailString==' + emailString);
                console.log('emailStringlength==' + emailString.length);
                document.getElementById(id).innerHTML = '';
                if (emailString.length > 0) {
                  const regex = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,15}$/;
                  console.log('ssemailText==' + regex.test(emailString));
                  if (regex.test(emailString)) {
                    var contactEmail = document.getElementById("outputContactEmail").innerHTML;
                    if (contactEmail == emailString) {
                      document.getElementById(fieldId).style = ('border-bottom: 2px solid #DDD !important ');
                      document.getElementById(id).innerHTML = 'Contact Email and Billing Contact Email should not be Same.';
                    } else {
                      document.getElementById(id).innerHTML = '';
                    }
                  } else {
                    document.getElementById(id).innerHTML = 'Enter a valid Email Address';
                    console.log('sasa===' + document.getElementById(id).innerHTML);
                  }
                } else {
                  document.getElementById(fieldId).style = ('border-bottom: 2px solid #DDD !important ');
                  document.getElementById(id).innerHTML = 'This is a required field';
                }
              } catch (err) {
                alert(err);
              }
            }
            // <!--****************-->
          </script><span id="j_id0:parentofall:companyInfo"><span id="j_id0:parentofall:showmsgPage3">
              <div style="color:#b11721;padding: 7px;">
              </div>
            </span>
            <script id="j_id0:parentofall:j_id86" type="text/javascript">
              renderCountry = function() {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:j_id86',
                  'parameters': {
                    'j_id0:parentofall:j_id86': 'j_id0:parentofall:j_id86'
                  }
                })
              };
            </script>
            <script id="j_id0:parentofall:j_id87" type="text/javascript">
              renderBillingCountry = function() {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:j_id87',
                  'parameters': {
                    'j_id0:parentofall:j_id87': 'j_id0:parentofall:j_id87'
                  }
                })
              };
            </script>
            <script id="j_id0:parentofall:j_id88" type="text/javascript">
              showcomeditsection = function() {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:j_id88',
                  'parameters': {
                    'j_id0:parentofall:j_id88': 'j_id0:parentofall:j_id88'
                  }
                })
              };
            </script>
            <div class="panel-body center-block" id="companytedit" style="padding-bottom:0px"><span id="j_id0:parentofall:comenterinfo"><span id="j_id0:parentofall:comenterinfo2">
                  <div class="col-12" id="fnd"><input id="j_id0:parentofall:company" type="text" name="j_id0:parentofall:company" class="form-control isRequired isLength street-addr" onblur="changeborderCompany('j_id0:parentofall:company');"
                      onfocus="focusinputstate('j_id0:parentofall:company');" tabindex="9" placeholder="Company">
                    <span class="error" id="companyerror"></span>
                  </div>
                  <div class="col-12" id="fnd"><input id="j_id0:parentofall:street" type="text" name="j_id0:parentofall:street" class="form-control street-addr isRequired" onblur="changeborderCompany('j_id0:parentofall:street');"
                      onfocus="focusinputstate('j_id0:parentofall:street');" tabindex="11" placeholder="Street">
                    <span class="error" id="streeterror"></span>
                  </div>
                  <div class="col-12" id="fnd"><input id="j_id0:parentofall:city" type="text" name="j_id0:parentofall:city" class="form-control city isRequired" onblur="changeborderCompany('j_id0:parentofall:city');"
                      onfocus="focusinputstate('j_id0:parentofall:city');" tabindex="12" placeholder="City">
                    <span class="error" id="cityerror"></span>
                  </div>
                  <div class="col-md-4" style="float:left;"><select id="j_id0:parentofall:state" name="j_id0:parentofall:state" class="form-control state isRequired" size="1" onblur="changeborderCompany('j_id0:parentofall:state');"
                      onfocus="focusinputstate('j_id0:parentofall:state');" style="padding: 0px !important;" tabindex="13">
                      <option value="">State</option>
                      <option value="AL">AL</option>
                      <option value="AK">AK</option>
                      <option value="AZ">AZ</option>
                      <option value="AR">AR</option>
                      <option value="CA">CA</option>
                      <option value="CO">CO</option>
                      <option value="CT">CT</option>
                      <option value="DE">DE</option>
                      <option value="DC">DC</option>
                      <option value="FL">FL</option>
                      <option value="GA">GA</option>
                      <option value="HI">HI</option>
                      <option value="ID">ID</option>
                      <option value="IL">IL</option>
                      <option value="IN">IN</option>
                      <option value="IA">IA</option>
                      <option value="KS">KS</option>
                      <option value="KY">KY</option>
                      <option value="LA">LA</option>
                      <option value="ME">ME</option>
                      <option value="MD">MD</option>
                      <option value="MA">MA</option>
                      <option value="MI">MI</option>
                      <option value="MN">MN</option>
                      <option value="MS">MS</option>
                      <option value="MO">MO</option>
                      <option value="MT">MT</option>
                      <option value="NE">NE</option>
                      <option value="NV">NV</option>
                      <option value="NH">NH</option>
                      <option value="NJ">NJ</option>
                      <option value="NM">NM</option>
                      <option value="NY">NY</option>
                      <option value="NC">NC</option>
                      <option value="ND">ND</option>
                      <option value="OH">OH</option>
                      <option value="OK">OK</option>
                      <option value="OR">OR</option>
                      <option value="PA">PA</option>
                      <option value="RI">RI</option>
                      <option value="SC">SC</option>
                      <option value="SD">SD</option>
                      <option value="TN">TN</option>
                      <option value="TX">TX</option>
                      <option value="UT">UT</option>
                      <option value="VT">VT</option>
                      <option value="VA">VA</option>
                      <option value="WA">WA</option>
                      <option value="WV">WV</option>
                      <option value="WI">WI</option>
                      <option value="WY">WY</option>
                      <option value="AB">AB</option>
                      <option value="BC">BC</option>
                      <option value="MB">MB</option>
                      <option value="NB">NB</option>
                      <option value="NL">NL</option>
                      <option value="NS">NS</option>
                      <option value="NT">NT</option>
                      <option value="NU">NU</option>
                      <option value="ON">ON</option>
                      <option value="PE">PE</option>
                      <option value="QC">QC</option>
                      <option value="SK">SK</option>
                      <option value="YT">YT</option>
                    </select>
                    <span class="error" id="stateerror"></span>
                  </div>
                  <div class="col-md-4" style="float:left;"><input id="j_id0:parentofall:zip" type="text" name="j_id0:parentofall:zip" class="form-control zip isRequired formatZip isRegex" maxlength="10"
                      onblur="changeborderCompany('j_id0:parentofall:zip');" onfocus="focusinputstate('j_id0:parentofall:zip');" onkeypress="return zipCodeOnlyNumbers(event,'j_id0:parentofall:country',this.value,'j_id0:parentofall:zip');"
                      style="padding: 0px !important;" tabindex="14" title="" oninvalid="this.setCustomValidity(' ')" max="10" pattern="^(\d{5}(-\d{4})?|[A-Z]\d[A-Z] ?\d[A-Z]\d)$" placeholder="Zip Code">
                    <span class="error" id="ziperror"></span>
                  </div>
                  <div class="col-md-4" style="float:left;"><select id="j_id0:parentofall:country" name="j_id0:parentofall:country" class="form-control country isRequired" size="1" onblur="changeborderCompany('j_id0:parentofall:country');"
                      onchange="renderCountry();" onfocus="focusinputstate('j_id0:parentofall:country');" style="padding: 0px !important;" tabindex="15" placeholder="Country">
                      <option value="US">US</option>
                      <option value="Canada">Canada</option>
                    </select>
                    <span class="error" id="countryerror"></span>
                  </div>
                </span></span>
            </div>
            <div class="panel-body center-block" id="companysummary" style="padding-bottom: 20px; display: none;"><span id="j_id0:parentofall:comsummaryinfo">
                <div class="col-12" id="sumnew" style="margin-left:3%;margin-bottom:2px;">
                  <label class="labelPage" for="company" style="color:#7F7F7F;">Company</label>
                  <output style="color: #2A2A2A"></output>
                  <label class="labelPage" for="con-fname" style="color:#7F7F7F;">Street </label>
                  <output style="color: #2A2A2A"> </output>
                  <label class="labelPage" for="con-lname" style="color:#7F7F7F;">City </label>
                  <output style="color: #2A2A2A"> </output>
                  <label class="labelPage" for="email" style="color:#7F7F7F;">State</label>
                  <output style="color: #2A2A2A"></output>
                  <label class="labelPage" for="phone" style="color:#7F7F7F;">Postal Code </label>
                  <output style="color: #2A2A2A"></output>
                  <label class="labelPage" for="phone" style="color:#7F7F7F;">Country </label>
                  <output style="color: #2A2A2A"></output>
                </div>
                <style>
                  .labelPage {
                    width: 40%;
                    clear: left;
                    text-align: left;
                    padding-right: 0px;
                    padding-left: 0px;
                    color: #7f7f7f;
                    font-size: 14px;
                    font-weight: 400;
                  }

                  output {
                    font-size: 13px;
                    padding-left: 0px;
                  }

                  output,
                  .labelPage {
                    float: left;
                    padding-top: 0px;
                  }
                </style>
              </span>
            </div><span id="j_id0:parentofall:billingcheckbox"><span id="j_id0:parentofall:continueErrMsg">
                <div id="companyInfoErrorMessage" style="color:#b11721;padding: 0px;">
                </div>
              </span>
              <div class="col-12" id="billingcheckbox" style="padding-left:30px !important">
                <label for="j_id0:parentofall:sameAsComp_Billing" style="display: block;font-weight:normal;color:#2A2A2A;padding-left:10px;padding-top:7px"><input id="j_id0:parentofall:sameAsComp_Billing" type="checkbox"
                    name="j_id0:parentofall:sameAsComp_Billing" checked="checked" onchange="SameAsPrevious('Billing'); toggleSpinner();" style="margin-left:-20px;margin-right:7px;" tabindex="16">Billing information is the same as contact
                  information.</label>
              </div>
            </span>
            <script id="j_id0:parentofall:j_id112" type="text/javascript">
              SameAsPrevious = function(calledFrom) {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:j_id112',
                  'parameters': {
                    'calledFrom': (typeof calledFrom != 'undefined' && calledFrom != null) ? calledFrom : '',
                    'j_id0:parentofall:j_id112': 'j_id0:parentofall:j_id112'
                  }
                })
              };
            </script>
            <script id="j_id0:parentofall:j_id114" type="text/javascript">
              IsDuplicateBillingEmailId = function(IsDuplicateBillingEmailId) {
                A4J.AJAX.Submit('j_id0:parentofall', null, {
                  'similarityGroupingId': 'j_id0:parentofall:j_id114',
                  'oncomplete': function(request, event, data) {
                    console.log('assigned billing email duplicate check')
                  },
                  'parameters': {
                    'j_id0:parentofall:j_id114': 'j_id0:parentofall:j_id114',
                    'IsDuplicateBillingEmailId': (typeof IsDuplicateBillingEmailId != 'undefined' && IsDuplicateBillingEmailId != null) ? IsDuplicateBillingEmailId : ''
                  }
                })
              };
            </script>
            <div class="apexp">
              <div id="j_id0:parentofall:bla" class="bPageBlock brandSecondaryBrd apexDefaultPageBlock secondaryPalette">
                <div class="pbBody">
                  <div class="panel-body center-block" id="billingedit">
                  </div><span id="j_id0:parentofall:bla:BillingInfoReadOnly"></span>
                </div>
                <div class="pbFooter secondaryPalette">
                  <div class="bg"></div>
                </div>
              </div>
            </div>
            <script>
              function checkBillingInformation() {
                var billInfo = true;
                try {
                  if (document.getElementById('j_id0:parentofall:sameAsComp_Billing').checked == false) {
                    var contactFN = document.getElementById('j_id0:parentofall:fn').value;
                    var contactLN = document.getElementById('j_id0:parentofall:ln').value;
                    var BillingFN = document.getElementById('j_id0:parentofall:bla:billfn').value;
                    var BillingLN = document.getElementById('j_id0:parentofall:bla:billln').value;
                    var BillingPhone = document.getElementById('j_id0:parentofall:bla:billPhone_id').value;
                    //var BillingCompany = document.getElementById('').value;
                    var BillingStreet = document.getElementById('j_id0:parentofall:bla:billstrtaddrs').value;
                    var BillingCity = document.getElementById('j_id0:parentofall:bla:billcity').value;
                    var BillingState = document.getElementById('j_id0:parentofall:bla:billstatefield').value;
                    var BillingZip = document.getElementById('j_id0:parentofall:bla:billzip').value;
                    var contactem = document.getElementById('j_id0:parentofall:em').value;
                    var Billingem = document.getElementById('j_id0:parentofall:bla:billemail').value;
                    document.getElementById('billfnError').innerHTML = ''; // Added by shiva
                    document.getElementById('billemailError').innerHTML = ''; // Added By shiva
                    if (BillingLN == "" || BillingLN == null || BillingLN == undefined) {
                      console.log('error1==' + BillingLN);
                      document.getElementById('billlnError').innerHTML = 'This is a required field';
                      billInfo = false;
                    }
                    if (BillingPhone == "" || BillingPhone == null || BillingPhone == undefined) {
                      console.log('error1==' + BillingPhone);
                      document.getElementById('billPhoneError').innerHTML = 'This is a required field';
                      billInfo = false;
                    }
                    /*   if(BillingCompany == "" || BillingCompany == null || BillingCompany == undefined){
                                          console.log('error1=='+BillingCompany);
                                          document.getElementById('billComError').innerHTML = 'This is a required field';
                                          billInfo = false;
                                         }*/
                    if (BillingStreet == "" || BillingStreet == null || BillingStreet == undefined) {
                      console.log('error1==' + BillingStreet);
                      document.getElementById('billStreetError').innerHTML = 'This is a required field';
                      billInfo = false;
                    }
                    if (BillingCity == "" || BillingCity == null || BillingCity == undefined) {
                      console.log('error1==' + BillingCity);
                      document.getElementById('billCityError').innerHTML = 'This is a required field';
                      billInfo = false;
                    }
                    if (BillingState == "" || BillingState == null || BillingState == undefined) {
                      console.log('error1==' + BillingState);
                      document.getElementById('billStateError').innerHTML = 'This is a required field';
                      billInfo = false;
                    }
                    if (BillingZip == "" || BillingZip == null || BillingZip == undefined) {
                      console.log('error1==' + BillingZip);
                      document.getElementById('billZipError').innerHTML = 'This is a required field';
                      billInfo = false;
                    }
                    if (BillingFN == "" || BillingFN == null || BillingFN == undefined) {
                      console.log('error1==' + contactFN);
                      document.getElementById('billfnError').innerHTML = 'This is a required field';
                      billInfo = false;
                    } else if (BillingFN == contactFN) {
                      console.log('error2==' + contactFN);
                      document.getElementById('billfnError').innerHTML = 'Billing First Name and Contact First Name should be different';
                      billInfo = false;
                    }
                    if (Billingem == "" || Billingem == null || Billingem == undefined) {
                      console.log('error1==' + contactem);
                      document.getElementById('billemailError').innerHTML = 'This is a required field';
                      billInfo = false;
                    } else if (Billingem == contactem) {
                      console.log('error2==' + Billingem);
                      document.getElementById('billemailError').innerHTML = 'Billing Email and Contact Email should be different';
                      billInfo = false;
                    }
                  }
                  if (billInfo == false) {
                    var spinner = $(".cstm-spinner");
                    spinner.hide();
                  }
                  //alert(billInfo);
                } catch (err) {
                  alert(err);
                }
                return billInfo;
              }

              function validateFormCompany(event) {
                var validClient = true;
                console.log('event==' + event);
                var fieldsNotToValidate = ["dot", "street_addr", "city", "state", "zip", "mc1", "ein", "mc_number"]; // Added by Shiva 
                $.each(msgObj, function(key, value) {
                  var checkKey = fieldsNotToValidate.includes(key); // Added by Shiva 
                  console.log('c==' + checkKey);
                  if (checkKey) { // Added by Shiva
                    console.log('k==' + key);
                    console.log('value==' + value);
                    console.log('value==' + value.ref);
                    console.log('value==' + value.msg);
                    value.status = app.validateField(value.ref, value.msg);
                    if (validClient) validClient = value.status;
                  }
                });
                if (!app.getServerStatus()) {
                  var validServer = true;
                  $.each(serverStatus, function(key, value) {
                    if (validServer) validServer = value;
                  });
                  if (validServer) app.setServerStatus(true);
                }
                if (!(validClient) || !app.getServerStatus()) $('.cstm-validation-form .form-error').text("Please correct above errors!");
                else $('.cstm-validation-form .form-error').text("");
                console.log('vc: ' + validClient);
                console.log('as: ' + app.getServerStatus());
                var billInfo = checkBillingInformation();
                if (validClient && app.getServerStatus() && billInfo == true) {
                  hidecomeditsection();
                }
                //return (validClient && app.getServerStatus())? true:false;
                //return (validClient);
                //hidecomeditsection();
              }
            </script>
            <div class="panel-body center-block" id="companycntbtn" style="padding-left:20px;display:block !important;"><span id="j_id0:parentofall:companycntbtnop"><input class="btn primary_btn" id="j_id0:parentofall:j_id134"
                  name="j_id0:parentofall:j_id134"
                  onclick="isleadorAccIdExists();gacompany();;return A4J.AJAX.Submit('j_id0:parentofall',event,{'similarityGroupingId':'j_id0:parentofall:j_id134','html5Validate':true,'parameters':{'j_id0:parentofall:j_id134':'j_id0:parentofall:j_id134'} } );"
                  value="CONTINUE" style="margin-top:6%;padding:0px;text-align:center;width: 111px;height: 33px;background: #B60207;letter-spacing:1.5px;font-size: 14px;color: #ffffff;border-radius: 3px;font-family: 'Open Sans';font-weight:600;"
                  tabindex="26" type="submit"></span>
            </div>
          </span>
        </div>
        <script>
          // A $( document ).ready() block.
          $(document).ready(function() {});

          function isleadorAccIdExists() {
            var leadorAccid = '';
            var spinner = $(".cstm-spinner");
            spinner.toggle();
            var isBillingchecked = document.getElementById('j_id0:parentofall:sameAsComp_Billing').checked;
            if (isBillingchecked === false) {
              var Billingem = document.getElementById('j_id0:parentofall:bla:billemail').value;
              IsDuplicateBillingEmailId(Billingem);
              var isBillingConExists = document.getElementById("isBillingConExistsId").value
              console.log('is billing exists' + isBillingConExists);
            }
            if ((isBillingConExists && isBillingConExists !== 'true' && isBillingchecked === false && leadorAccid === '' || leadorAccid === 'null' || typeof leadorAccid === 'undefined') || (isBillingchecked === true && leadorAccid === '' ||
                leadorAccid === 'null' || typeof leadorAccid === 'undefined')) {
              var interval = setInterval(function() {
                leadorAccid = document.getElementById("leadorAccid").value;
                if (leadorAccid === '' || leadorAccid === 'null' || typeof leadorAccid === 'undefined') {
                  console.log('contact button spinner');
                  console.log('leadorAccid if ' + leadorAccid);
                  refreshConInfoSec();
                } else {
                  console.log('leadorAccid else ' + leadorAccid);
                  console.log('in else stop spinner');
                  validateCompanyInfoData();
                  clearInterval(interval);
                  //spinner.hide();
                }
              }, 2000);
            } else spinner.hide();
          }
        </script>
        <script>
          var str1 = "'send', 'event', 'Button',";
          var str11 = 'send';
          var str12 = 'event';
          var str13 = 'Button';
          var str2 = 'Carrier';
          var str21 = str2.concat('Click');
          var packagename = 'Load Board Pro - Carrier ';
          var str3 = "";
          if (packagename.includes('Basic')) {
            str3 = 'Basic';
          } else if (packagename.includes('Advanced')) {
            str3 = 'Adv';
          } else if (packagename.includes('Pro')) {
            str3 = 'Pro';
          }

          function gacompany() {
            var str31 = 'Company';
            var str32 = str31.concat(str3);
            var str4 = document.getElementById("totalprice").innerHTML;
            var str5 = str4.split("$");
            var str6 = str5[1].split(".");
            var str7 = str6[0].split("/");
            var res = str1.concat('\'', str2, 'Click\',\'QACompany', str3, '\',', str7[0]);
            console.log(res);
            //ga(res);    
            console.log(str11 + ' ' + str12 + ' ' + str13 + ' ' + str21 + ' ' + str32 + ' ' + str7[0]);
            ga(str11, str12, str13, str21, str32, str7[0]);
          }
        </script>
      </div><span id="j_id0:parentofall:bla1" style="order:5" class="panel">
        <div id="paymentInformation">
          <h1 class="panel-heading"> Payment Information <i class="fa1 collapsed" data-target="#payinfodata" data-toggle="collapse" id="paychev" style="pointer-events: none;"></i>
          </h1>
          <script src="https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js" type="text/javascript"></script>
          <script>
            // Sample params for rendering iframe on the client side
            var params = {
              tenantId: "4415",
              id: "2c92a0117cd108fd017ce83d558d25a3",
              token: "xQKBB5slZfd0USiXc93XWUC0pnH799pH",
              signature: "OLgIGfUFj5M2GQg4CnurM9HTzDLXLbypFggEPi3DUqc+LEEkw9dp+boOttIWPYDyPhAOuRD+mQoQZbEe7KecBWE9Yxf4BSO8guKfOM23qDqsQNvU+W1P7SthOB61VTnVuaui838YIwFX4cVqR+BsJ7UNU93vCW9AuxR07KWeHELB3eUNJYZ5Aad9L01T+u2thrmh7jddlHSjPOOYOFtq4N1umGImcvjZRxNAqCxPhCawUiMpRKvkRG44dkYgu1rYO32QMB4hAxlxE+wqx1UncdayhtJzrGlW2AYxvxJnUTI5YLmmaz4JQwuXEVqNMh/M5wQDTI/MPrnP8QfvCs4Avg==",
              style: "inline",
              key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnJ5GMqiacmacJCnlrN5HWoTGlpHlLCPJ11+mFGhLTGoGSjCXfD0Pi8mkmHzYf+UClMwfnQ0V/xOhcf9RSn8R/8xqThFSfbStYBCeG3ipIhv1jdEwEJPfeed0nEPOH7CkBVylvimWpzVdNn0HxMQibBe7tRPVi+B4EtsMtIxSrww/mHHXpQMAWVss5MNnF7TSn23SiQtQWXCCumi8jkHfNcsjjQht3uQB4tQmTBfHeRWmKcTwJxGl7p7mlk4FJ9R7xwreRA2owLpmgl8VxPaKOIvVvOZT6Cdyqc84pQQFfIoptTSbGalqdvMxJME4Zh0mUSdQS9dj9Mxtxjb7blsr/QIDAQAB",
              submitEnabled: "true",
              url: "https://www.zuora.com/apps/PublicHostedPageLite.do",
              //paymentGateway:"DefaultGateway" //payment gateway name
            };
            console.log('token ' + params.token);
            console.log('signature ' + params.signature);
            console.log('key ' + params.key);
            var prepopulateFields = {
              creditCardHolderName: "",
              achBankAccountName: ""
            };

            function callback(response) {
              console.log('response' + response);
              console.log('success now' + response.success);
              if (response.success) {
                console.log('q11confirming now');
                $("[id$='refId']").val(response.refId);
                $("[id$='page5direct']").val(true);
                $("[id$='PaymentError']").html('');
                //setRefIf();
                var ss = 'false';
                //keepspinning();
                //console.log('response after callback '+response.refId);
                var leadconverted = 'true';
                // console.log('call back lead conv '+leadconverted);
                var ref1 = '';
                //console.log('ref22 id '+ref1);
                //console.log('ref22 id '+Boolean(ref1));
                // if(leadconverted=='true'){
                //     collapseall();
                // UpdateAccount();            
                // NavigateToConfirmPageFun();
                //  }
                //  var modal2 = document.getElementById("modalforpay"); //SF-8302 Raghav  raghav new w-000778
                //  modal2.style.display= "block"; //SF-8302 Raghav  raghav new w-000778
                document.getElementById("pbtn").style = ('border-color: #DDD;color:#DDD;pointer-events:none'); //SF-8302 Raghav raghav new w-000778
                document.getElementById("mbtn").style = ('border-color: #DDD;color:#DDD;pointer-events:none'); //SF-8302 Raghav raghav new w-000778
                collapseall(); //raghav new w-000778 LEGOS
                //keepspinning(); //raghav new w-000778 LEGOS
                console.log('confirming now');
                //NavigateToConfirmPage(refID1);
                gotoconfirm(response.refId);
                //setTimeout(() => { gotoconfirm(response.refId); }, 5000); //legos gotoconfirm(response.refId);  NavigateToConfirmPage(response.refId)
              } else {
                $("[id$='PaymentError']").html('<span class="error">Error : ' + response.errorMessage + '.</span>');
                togglePurchaseBtn(false); //Enabled for payment failures for ticket 2333 added by---Mahantesh
              }
            }

            function loadHostedPage() {
              Z.render(params, prepopulateFields, callback);
            }

            function setNavsCss() {
              var marginLeft = $("#z_hppm_iframe").css('margin-left');
              var marginRight = $("#z_hppm_iframe").css('margin-right');
              $('#navtab').css('margin-left', marginLeft).css('margin-right', marginRight);
            }
            $(document).ready(function() {
              function disableBack() {
                window.history.forward()
              }
              window.onload = disableBack();
              window.onpageshow = function(evt) {
                if (evt.persisted) disableBack()
              }
              loadHostedPage();
              setNavsCss();
              if (false) {
                //keepspinning();
                collapseall();
              }
              if (false) //rreditc
              { //NavigateToConfirmPage();
                //keepspinning();
              }
            });
            // Listen for resize changes
            window.addEventListener("resize", function() {
              setNavsCss();
            }, false);

            function NavigateToConfirmPageFun() {
              //toggleSpinnerPay();
              if (false) { //rreditc
                // NavigateToConfirmPage();
              } //rreditc
            }
            //SF-8302 Raghav 
            function zSubmit2(event) {
              console.log('zubevent==' + event);
              if (document.getElementById('j_id0:parentofall:agrement').checked == true) { //raghav edit legos
                Z.submit();
                //var modal2 = document.getElementById("modalforpay"); //SF-8302 Raghav raghav new w-000778
                //modal2.style.display= "block"; //SF-8302 Raghav raghav new w-000778
                //document.getElementById("pbtn").style= ('border-color: #DDD;color:#DDD;pointer-events:none');     //SF-8302 Raghav raghav new w-000778
                //document.getElementById("mbtn").style= ('border-color: #DDD;color:#DDD;pointer-events:none');    //SF-8302 Raghav raghav new w-000778
              } else {
                togglePurchaseBtn(false); //Enabled for Aggrement checkbox uncheck for ticket 2333--added by Mahantesh
              }
            }
            //SF-8302 Raghav end
            //related changes for ticket 2333-- added by Mahantesh
            let purchaseBtnId;

            function togglePurchaseBtn(disablePurchaseBtn) {
              if (purchaseBtnId != undefined && purchaseBtnId != null && purchaseBtnId != '') {
                document.getElementById(purchaseBtnId).disabled = disablePurchaseBtn;
              }
            }

            function PaymmentFinish(event) {
              purchaseBtnId = event.target.id;
              togglePurchaseBtn(true); //Disable on purchase after payment finish for ticket 2333--added by mahantesh
              var leadconverted = 'true';
              console.log('lconverted from payment finish ' + leadconverted);
              var tnc2 = 'false';
              console.log('lconverted from payment finish ' + tnc2);
              if (document.getElementById('j_id0:parentofall:agrement').checked == true) {
                // Z.submit();  
                //collapseall();
              } else {
                var validClient = true;
                console.log('event==' + event);
                var fieldsNotToValidate = ["agrement", "d_agrement"]; // Added by Shiva 
                $.each(msgObj, function(key, value) {
                  var checkKey = fieldsNotToValidate.includes(key); // Added by Shiva 
                  console.log('c==' + checkKey);
                  if (checkKey) { // Added by Shiva
                    console.log('k==' + key);
                    console.log('value==' + value);
                    value.status = app.validateField(value.ref, value.msg);
                    if (validClient) validClient = value.status;
                  }
                });
                if (!app.getServerStatus()) {
                  var validServer = true;
                  $.each(serverStatus, function(key, value) {
                    if (validServer) validServer = value;
                  });
                  if (validServer) app.setServerStatus(true);
                }
                if (!(validClient) || !app.getServerStatus()) $('.cstm-validation-form .form-error').text("Please correct above errors!");
                else $('.cstm-validation-form .form-error').text("");
                console.log('vc: ' + validClient);
                console.log('as: ' + app.getServerStatus());
                if (validClient && app.getServerStatus()) {
                  hideeditsection();
                }
              }
              //NavigateToConfirmPage();       
            }

            function setPaymentMethod(target, paymentMethod) {
              if ($(target).hasClass('active')) return false;
              $("[id$='paymentMethodType']").val(paymentMethod);
              InitializePayment();
            }

            function UpdateAchAgreement() {
              var isAgree = $("[id$='ACH_Agreement_Chk']").is(':checked');
              if (isAgree) {
                $('.error').text("");
                //UpdateAchAgreementOnAccount();
              } else {
                $('.error').text("Required.");
              }
            }
          </script>
          <style>
            ul#navtab li.active a {
              background-color: #EDEDED;
            }
          </style>
          <style>
            .cstm-payment {
              position: relative;
              max-width: 700px;
            }

            .cstm-payment iframe {
              max-width: 700px !important;
              min-height: 400px !important;
              margin-left: auto !important;
              margin-right: auto !important;
            }

            .cstm-payment .cstm-overlay {
              display: none;
              position: absolute;
              width: 100%;
              height: 100%;
              background-color: rgba(0, 0, 0, 0.5);
            }
          </style>
          <style>
            .payment-methods {
              display: table;
              width: 100%;
            }

            .payment-methods .payment-item {
              display: inline-block;
              text-align: center;
              width: 50%;
              cursor: pointer;
            }

            .payment-methods .payment-item input {
              position: absolute;
              opacity: 0;
              height: 0.1px;
              width: 0.1px;
            }

            .payment-methods .payment-item label {
              display: block;
              width: 100%;
              height: 30px;
              line-height: 30px;
              border: 1px solid #ddd;
            }

            .payment-methods input:checked+label {
              background-color: #0275d8;
              color: #fff;
              border: 1px solid #0275d8;
            }
          </style>
          <script id="j_id0:parentofall:j_id138" type="text/javascript">
            InitializePayment = function() {
              A4J.AJAX.Submit('j_id0:parentofall', null, {
                'similarityGroupingId': 'j_id0:parentofall:j_id138',
                'parameters': {
                  'j_id0:parentofall:j_id138': 'j_id0:parentofall:j_id138'
                }
              })
            };
          </script>
          <div aria-expanded="false" class="panel-collapse collapse " id="payinfodata" style="border:0">
            <div class="panel-body center-block" id="paymentedit"><input id="j_id0:parentofall:page5direct" type="text" name="j_id0:parentofall:page5direct" value="false" onchange="toggleSpinnerPay();NavigateToConfirmPageFun();"
                style="border:none;width:0px;color:transparent;"><input id="j_id0:parentofall:paymentMethodType" type="hidden" name="j_id0:parentofall:paymentMethodType" value="CreditCard">
              <div class="panel-body center-block" id="purchasebtn" style="padding-left:20px"><span id="j_id0:parentofall:PaymentWindowComponent_CC">
                  <div id="zuora_payment"><iframe
                      src="https://www.zuora.com/apps/PublicHostedPageLite.do?method=requestPage&amp;host=https%3A%2F%2Fsignup.truckstop.com%2FSignUp%3Faccounttype%3DCarrier%26productid%3D2c92a0ff6931f538016935e2393a70b8&amp;fromHostedPage=true&amp;jsVersion=1.3.1&amp;tenantId=4415&amp;id=2c92a0117cd108fd017ce83d558d25a3&amp;token=xQKBB5slZfd0USiXc93XWUC0pnH799pH&amp;signature=OLgIGfUFj5M2GQg4CnurM9HTzDLXLbypFggEPi3DUqc%2BLEEkw9dp%2BboOttIWPYDyPhAOuRD%2BmQoQZbEe7KecBWE9Yxf4BSO8guKfOM23qDqsQNvU%2BW1P7SthOB61VTnVuaui838YIwFX4cVqR%2BBsJ7UNU93vCW9AuxR07KWeHELB3eUNJYZ5Aad9L01T%2Bu2thrmh7jddlHSjPOOYOFtq4N1umGImcvjZRxNAqCxPhCawUiMpRKvkRG44dkYgu1rYO32QMB4hAxlxE%2Bwqx1UncdayhtJzrGlW2AYxvxJnUTI5YLmmaz4JQwuXEVqNMh%2FM5wQDTI%2FMPrnP8QfvCs4Avg%3D%3D&amp;style=inline&amp;submitEnabled=true&amp;zlog_level=warn"
                      id="z_hppm_iframe" overflow="visible" scrolling="no" frameborder="0" allowtransparency="true" class="z_hppm_iframe" width="2" height="2" style="display: block;"></iframe></div>
                </span>
              </div>
              <style>
                iframe {
                  width: auto !important;
                }
              </style>
              <br>
              <div class="col-12" id="subscribediv" style="padding-bottom:8px"><input id="j_id0:parentofall:subscribe" type="checkbox" name="j_id0:parentofall:subscribe" checked="checked" tabindex="27">
                <label for="" style="display: inline;font-weight:normal;color:#2A2A2A;padding-left:10px;">Subscribe to our newsletter for market info, announcements and business tips.</label>
              </div>
              <div class="col-12" id="agreementdiv"><input id="j_id0:parentofall:agrement" type="checkbox" name="j_id0:parentofall:agrement" class="d-agrement isRequired" tabindex="28">
                <label for="j_id0:parentofall:agrement" style="display: inline;font-weight:normal;color:#2A2A2A;padding-left:10px;">I <span style="font-weight:800;">AGREE</span> to truckstop.com's
                  <a href="https://truckstop.com/terms/" target="_blank"><span style="color:#C8102E">User Agreement, Privacy Policy and Cookie Policy</span></a>.</label>
              </div>
              <span class="error" style="padding-left:20px"></span><span id="j_id0:parentofall:purchasebuttonrender">
                <div class="panel-body center-block" id="purchasebtn" style="padding-left:20px"><input class="btn primary_btn" id="j_id0:parentofall:j_id146" name="j_id0:parentofall:j_id146"
                    onclick="PaymmentFinish(event);gapurchase();zSubmit2(event);;return A4J.AJAX.Submit('j_id0:parentofall',event,{'similarityGroupingId':'j_id0:parentofall:j_id146','html5Validate':true,'parameters':{'j_id0:parentofall:j_id146':'j_id0:parentofall:j_id146'} } );"
                    value="PURCHASE" style="padding:0px;text-align:center;width: 111px;height: 33px;background: #B60207;letter-spacing:1.5px;font-size: 14px;color: #ffffff;border-radius: 3px;font-family: 'Open Sans';font-weight:600;" tabindex="29"
                    type="submit">
                </div><input id="j_id0:parentofall:refId" type="hidden" name="j_id0:parentofall:refId"><input id="j_id0:parentofall:QuoteId" type="hidden" name="j_id0:parentofall:QuoteId">
                <script id="j_id0:parentofall:j_id148" type="text/javascript">
                  assignerrormsg = function() {
                    A4J.AJAX.Submit('j_id0:parentofall', null, {
                      'similarityGroupingId': 'j_id0:parentofall:j_id148',
                      'oncomplete': function(request, event, data) {
                        console.log('error msg assigned')
                      },
                      'parameters': {
                        'j_id0:parentofall:j_id148': 'j_id0:parentofall:j_id148'
                      }
                    })
                  };
                </script>
              </span>
              <script>
                function checkquoteid() {
                  console.log('inside go to confirm interval assignerror');
                  console.log('inside go to confirm interval assignerror 1');
                  var errormsg = document.getElementById('companyInfoErrorMessage').innerHTML
                  let zqId = document.getElementById('j_id0:parentofall:QuoteId').value;
                  if (zqId && !errormsg.includes("null")) {
                    console.log('inside go to confirm interval assignerror 2' + zqId);
                    console.log('inside go to confirm interval assignerror 3' + errormsg);
                  } else {
                    console.log('inside go to confirm interval assignerror 4' + zqId);
                    console.log('inside go to confirm interval assignerror 5' + errormsg);
                    assignerrormsg();
                    if (errormsg.includes("null")) {
                      var modal22 = document.getElementById("modalforpay"); //legos
                      modal22.style.display = "none";
                    }
                  }
                }

                function gotoconfirm(refID1) {
                  console.log('inside go to confirm');
                  var intervalnew = setInterval(function() {
                    console.log('inside go to confirm interval');
                    let zqId = document.getElementById('j_id0:parentofall:QuoteId').value;
                    if (zqId) {
                      console.log('---QuoteId hai' + zqId);
                      var leadconverted = 'true';
                      console.log('call111 back lead conv ' + leadconverted);
                      var ref1 = 'false';
                      console.log('ref11122221 id ' + ref1);
                      //console.log('ref1111 id '+Boolean(ref1));
                      if (leadconverted == 'true') { // && ref1=='false'){
                        console.log('about to update license');
                        //keepspinning();
                        var nof = document.getElementById("noflic").value;
                        console.log('the latest lic number ' + nof);
                        //licenseup1(nof);
                        //redirectConfirmation();
                        NavigateToConfirmPage(refID1); //refID1);
                        collapseall();
                      }
                      clearInterval(intervalnew); //stop that interval
                    } else {
                      checkquoteid();
                    }
                  }, 2000);
                }
              </script>
              <script id="j_id0:parentofall:j_id150" type="text/javascript">
                NavigateToConfirmPage = function(p1) {
                  A4J.AJAX.Submit('j_id0:parentofall', null, {
                    'similarityGroupingId': 'j_id0:parentofall:j_id150',
                    'parameters': {
                      'p1': (typeof p1 != 'undefined' && p1 != null) ? p1 : '',
                      'j_id0:parentofall:j_id150': 'j_id0:parentofall:j_id150'
                    }
                  })
                };
              </script>
            </div>
            <script>
              var str1 = "'send', 'event', 'Button',";
              var str11 = 'send';
              var str12 = 'event';
              var str13 = 'Button';
              var str2 = 'Carrier';
              var str21 = str2.concat('Click');
              var packagename = 'Load Board Pro - Carrier ';
              var str3 = "";
              if (packagename.includes('Basic')) {
                str3 = 'Basic';
              } else if (packagename.includes('Advanced')) {
                str3 = 'Adv';
              } else if (packagename.includes('Pro')) {
                str3 = 'Pro';
              }

              function gapurchase() {
                var str31 = 'Purchase';
                var str32 = str31.concat(str3);
                var str4 = document.getElementById("totalprice").innerHTML;
                var str5 = str4.split("$");
                var str6 = str5[1].split(".");
                var str7 = str6[0].split("/");
                var res = str1.concat('\'', str2, 'Click\',\'QAPurchase', str3, '\',', str7[0]);
                console.log(res);
                //ga(res);    
                console.log(str11 + ' ' + str12 + ' ' + str13 + ' ' + str21 + ' ' + str32 + ' ' + str7[0]);
                ga(str11, str12, str13, str21, str32, str7[0]);
              }
            </script>
          </div>
        </div>
        <style>
          /* The Modal (background) */
          .modal22 {
            display: none;
            position: fixed;
            /* Stay in place */
            z-index: 1;
            /* Sit on top */
            padding-top: 400px;
            /* Location of the box */
            left: 0;
            top: 0;
            width: 100%;
            /* Full width */
            height: 100%;
            /* Full height */
            overflow: auto;
            /* Enable scroll if needed */
            background-color: rgb(0, 0, 0);
            /* Fallback color */
            background-color: rgba(0, 0, 0, 0.4);
            /* Black w/ opacity */
          }
        </style>
        <div class="modal22" id="modalforpay" style="text-align:center;">
          <img height="35" src="/resource/1635974811000/PaymentProcessing" width="100">
        </div>
      </span>
    </div>
  </div>
  <br><br><br>
  <div xmlns="http://www.w3.org/1999/xhtml" id="j_id0:parentofall:j_id575"></div>
</form>

Text Content

Already have an account?  Log in >


CART TOTAL

Load Board Pro - Carrier
$149/user/mo
Based on tiered pricing

Access to the best-paying loads on Truckstop.com’s real-time Load Board, plus:
Rate Insights, route planning, broker credit, and days-to-pay information.

CART TOTAL
$149/mo


CONTACT INFORMATION EDIT

 Don't have a DOT number.






DOT Number First Name Last Name Email Address Phone Number




COMPANY INFORMATION

State AL AK AZ AR CA CO CT DE DC FL GA HI ID IL IN IA KS KY LA ME MD MA MI MN MS
MO MT NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY AB
BC MB NB NL NS NT NU ON PE QC SK YT

US Canada
Company Street City State Postal Code Country

Billing information is the same as contact information.




PAYMENT INFORMATION



Subscribe to our newsletter for market info, announcements and business tips.
I AGREE to truckstop.com's User Agreement, Privacy Policy and Cookie Policy.








Sales: 1-888-364-1189

© 2022 Truckstop.com | Terms & Conditions | Privacy Policy




LICENSE LIMIT MET

You have reached the limit of three Carrier Load Board Basic licenses.
Please upgrade to the pro package or decrease the number of licenses.

OK

LICENSE LIMIT MET

For volume discounts, please call
1-888-364-1189.

OK