travel.coop.co.uk Open in urlscan Pro
31.121.109.183  Public Scan

Submitted URL: https://travel.coop.co.uk/
Effective URL: https://travel.coop.co.uk/CGI-BIN/LANSAWEB?PROCFUN+INSUREGO+IAC7001+ALC+ENG
Submission: On December 16 via api from US — Scanned from GB

Form analysis 1 forms found in the DOM

Name: LANSAPOST /CGI-BIN/LANSAWEB?WEBEVENT+L0C368E023E95C90196AC021+ALC+ENG

<form method="post" name="LANSA" action="/CGI-BIN/LANSAWEB?WEBEVENT+L0C368E023E95C90196AC021+ALC+ENG">
  <input name="_NAME" type="hidden" size="20" maxlength="20" value="&amp;NULL">
  <input name="_ROW" type="hidden" size="2" maxlength="2" value="01">
  <input name="_COLUMN" type="hidden" size="2" maxlength="2" value="01">
  <input name="_SELECT" type="hidden" size="6" maxlength="6" value="00">
  <input name="_PANEL" type="hidden" value="INSUREGO  IAC7001001">
  <input name="_BUTTON" type="hidden" value="OK">
  <input name="_CALFLD" type="hidden" size="20" maxlength="20" value="&amp;NULL">
  <input name="_PROCESS" type="hidden" size="10" maxlength="10" value="INSUREGO ">
  <input name="_FUNCTION" type="hidden" size="10" maxlength="10" value="IAC7001 ">
  <input name="_OPROCESS" type="hidden" size="10" maxlength="10" value="INSUREGO">
  <input name="_OFUNCTION" type="hidden" size="10" maxlength="10" value="IAC7001">
  <input name="_PARTITION" type="hidden" size="3" maxlength="3" value="ALC">
  <input name="_COLORFLD" type="hidden" size="10" maxlength="10" value="">
  <input name="_LW3TRCID" type="hidden" size="15" maxlength="15" value="">
  <input name="_EXCHALLBL" type="hidden" size="10" maxlength="10" value="">
  <!--     STD Header      -->
  <div id="headerDIV">
    <!-- Affiliate Headers -->
    <!-- Options Headers -->
    <!-- AMII, BIBA & Retail Footers -->
    <!-- dont show for BIBA non quote pages -->
    <!-- end not HOME Y -->
    <!-- ACE Headers -->
    <!-- Other Headers -->
    <!-- MillStream Headers -->
    <!-- HL Headers -->
    <!-- Key Connect Headers -->
    <!-- UIA Headers -->
    <!-- keep these UIA scheme's as these are scheme driven websites for UIA old styles -->
    <!-- AXA Footers -->
  </div> <!-- END headerDIV -->
  <div id="container">
    <table border="0" cellpadding="0" cellspacing="0" align="CENTER">
      <tbody>
        <tr>
          <td><input name="ASTDRENTRY" type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="AWAWSID   " type="hidden" size="010" maxlength="010" value="38705335"></td>
          <td><input name="AMSDWSID  " type="hidden" size="010" maxlength="010" value=""></td>
          <td><input name="AWLSCCD   " type="hidden" size="003" maxlength="003" value="IGC"></td>
          <td><input name="SAXAGE01  " type="hidden" size="002" maxlength="002" value="0"></td>
          <td><input name="SAXAGE02  " type="hidden" size="002" maxlength="002" value="0"></td>
          <td><input name="SAXAGE03  " type="hidden" size="002" maxlength="002" value="0"></td>
          <td><input name="SAXAGE04  " type="hidden" size="002" maxlength="002" value="0"></td>
          <td><input name="AWBTCTY   " type="hidden" size="010" maxlength="010" value=""></td>
          <td><input name="AW2NMDS   " type="hidden" size="030" maxlength="030" value="WWW"></td>
          <td><input name="AREGIONA  " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="PREGION   " type="hidden" size="001" maxlength="001" value="0"></td>
          <td><input name="AAXCOVT   " type="hidden" size="001" maxlength="001" value="S"></td>
          <td><input name="AADJUST   " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="AOVER31   " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="ABTNREGN  " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="ABTNTRAV  " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="ASHOWDTE  " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="SAXAGE05  " type="hidden" size="002" maxlength="002" value="0"></td>
          <td><input name="AWBSORC   " type="hidden" size="004" maxlength="004" value=""></td>
          <td><input name="AREQUOTE  " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="SWBCYCD   " type="hidden" size="005" maxlength="005" value="0"></td>
          <td><input name="PTOTRAV   " type="hidden" size="002" maxlength="002" value="0"></td>
          <td><input name="ACOUNTRYMC" type="hidden" size="030" maxlength="100" value=""></td>
          <td><input name="ACOUNTRYRN" type="hidden" size="030" maxlength="100" value=""></td>
          <td><input name="ACNTRYSLCT" type="hidden" size="001" maxlength="001" value="Y"></td>
          <td><input name="ACNTRYHLD " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="AIAG7     " type="hidden" size="001" maxlength="001" value="Y"></td>
          <td><input name="ASCHEME   " type="hidden" size="003" maxlength="003" value=""></td>
          <td><input name="ASHWRDT   " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="ASTEP     " type="hidden" size="001" maxlength="001" value="1"></td>
          <td><input name="AUNDER65  " type="hidden" size="001" maxlength="001" value=""></td>
          <td><input name="LSECNO    " type="hidden" size="030" maxlength="050" value="6G125(8858831G)5283i8186i6n4A6"></td>
          <td><input name="ACLASS    " type="hidden" size="007" maxlength="007" value="NIK&amp;VIK"></td>
          <td>
            <style>
              @media screen and (max-width: 525px) {
                .titlemain1 {
                  font-size: 16px;
                }
              }

              .speech-bubble {
                background: #efefef;
                -webkit-border-radius: 4px;
                border-radius: 4px;
                font-size: 1.2rem;
                line-height: 1.3;
                margin: 0 auto 40px;
                max-width: 400px;
                padding: 15px;
                position: relative;
              }

              .speech-bubble p {
                margin: 0 0 10px;
              }

              .speech-bubble p:last-of-type {
                margin-bottom: 0;
              }

              .speech-bubble::after {
                border-left: 20px solid transparent;
                border-top: 20px solid #efefef;
                bottom: -20px;
                content: "";
                position: absolute;
                right: 20px;
              }

              #crafty_postcode_lookup_result_option1 {
                max-width: 400px !important;
                width: 100% !important;
              }
            </style>
            <script src="https://www.allcleartravel.co.uk/js/crafty_clicks.class.js"></script>
            <script>
              var cp_obj = CraftyPostcodeCreate();
              cp_obj.set("access_token", "2ed44-0f58f-be167-07fd8");
              cp_obj.set("form", "");
              cp_obj.set("elem_street1", "streetwalker");
              cp_obj.set("elem_town", "townwalker");
              cp_obj.set("elem_postcode", "pcode1");
              cp_obj.set("elem_house_num", "houseno");
              cp_obj.set("result_elem_id", "testfetch");
              cp_obj.set("res_autoselect", 0);
              $(document).ready(function() {
                $("#lookupFullAddress").click(function(event) {
                  event.preventDefault();
                  console.log("clicked");
                  cp_obj.doLookup();
                  return false;
                });
              });
            </script>
            <script>
              $("div.helptext").hide();
              $(document).on('click', function(e) {
                if ($(e.target).closest('#HelpTxtRes1').length) {
                  $("#reschk").show();
                  $("#HelpTxtRes1").hide();
                  $("#HelpTxtRes2").show();
                } else if (!$(e.target).closest('#reschk').length) {
                  $('#reschk').hide();
                  $("#HelpTxtRes1").show();
                  $("#HelpTxtRes2").hide();
                }
              });
              $(document).on('click', function(e) {
                if ($(e.target).closest('#HelpTxtCru1').length) {
                  $("#CruHelp").show();
                  $("#HelpTxtCru1").hide();
                  $("#HelpTxtCru2").show();
                } else if (!$(e.target).closest('#CruHelp').length) {
                  $('#CruHelp').hide();
                  $("#HelpTxtCru1").show();
                  $("#HelpTxtCru2").hide();
                }
              });
            </script>
            <div id="mainContentDIVtop"></div>
            <div id="mainContentDIV">
              <!-- Start Navi Left  -->
              <div id="leftContentDIV">
                <!-- HL -->
                <!-- End M_LMENU  -->
              </div><!-- END leftContentDIV -->
              <div id="centerContentDIV">
                <div id="quoteBoxTop"></div>
                <div id="quoteBox">
                  <div id="msgBox">
                  </div><!-- end msgBox -->
                  <div class="desktopProgressBar">
                    <ol class="progress progress--large">
                      <li class="is-active cirlce panelDetail progLeft panelDetail" data-step="">
                        <span class="progress_name current"> Your details </span>
                      </li>
                      <li class="is-" data-step="">
                        <span class="progress_name midColor"></span>
                      </li>
                      <li class="is- cirlce panelStep progMid" data-step="">
                        <span class="progress_name"> Your Quotes </span>
                      </li>
                      <li data-step="" class="progress__name progress__last cirlce confStep progRight">
                        <span class="progress_name"> Confirmation </span>
                      </li>
                    </ol>
                  </div>
                  <div class="mobProgressBar">
                    <div class="containerProgressMob">
                      <ul class="progressbarMob">
                        <li class="activeProg stepHere"><span class="progress_name current"> Your details </span></li>
                        <li><span class="progress_name"> Your Quotes </span></li>
                        <li><span class="progress_name"> Confirmation </span></li>
                      </ul>
                    </div>
                  </div>
                  <div class="clearBoth"></div>
                  <!-- NOT C -->
                  <!-- NOT Q -->
                  <div class="clearBoth"></div>
                  <div class="iagFormCont">
                    <div class="iagFormWrap">
                      <h1>Tell us about your trip</h1>
                      <div class="clearBoth"></div>
                      <div class="resFloat1" id="ResQ">
                        <h2>Are you a resident of the UK? <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtRes1" class="questionClear">
                            <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                            <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                          </svg>
                          <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtRes2" class="questionClear" style="display: none;">
                            <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                            <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                          </svg>
                        </h2>
                      </div>
                      <div class="helptext" id="reschk" style="display: none;"><strong>Are you a resident of the UK?</strong>
                        <br> You must have <strong>lived in the UK for at least 6 of the last 12 months.</strong> You must have a <strong>permanent UK address</strong> and be <strong>registered with a medical practitioner in the UK.</strong>
                      </div>
                      <div class="clearBoth"></div>
                      <p>This policy is only available to UK residents who are in the UK at the time of the purchase (includes England, Scotland, Wales, Northern Ireland, the Scilly Isles, the Isle of Man and Channel Islands).</p>
                      <div class="loaderMsgBox" style="display:none;">
                        <div id="loaderMsg2">
                          <style>
                            @media screen and (min-width: 1000px) {
                              .loaderIMG {
                                border: 16px solid #e0f0fa;
                                border-top: 16px solid #232b73;
                                border-radius: 50%;
                                width: 80px;
                                height: 80px;
                                position: relative;
                                animation: spin 2s linear infinite;
                                margin: auto;
                              }

                              .loaderTXT {
                                width: 90%;
                                margin: auto;
                                font-size: 2vw;
                                margin-bottom: 5%;
                              }

                              .loaderTXT2 {
                                width: 90%;
                                margin: auto;
                                font-size: 1em;
                                margin-bottom: 5%;
                              }

                              #loaderMsg2 {
                                max-width: 50% !important;
                                min-height: 20%;
                                border-radius: 3px;
                                -webkit-border-radius: 3px;
                                font-family: 'Roboto', sans-serif;
                                font-size: 24px;
                                color: #626262;
                                border: solid 0px #232b73;
                                padding: 20px 20px 0 20px;
                                color: #626262;
                                text-align: center;
                                cursor: pointer;
                                position: relative;
                                margin: 5% auto 0px;
                                background: #ffffff;
                                border: 3px solid #232b73;
                                border-radius: 10px;
                              }
                            }

                            @media screen and (max-width: 1000px) {
                              .loaderIMG {
                                border: 16px solid #e0f0fa;
                                border-top: 9px solid #232b73 !important;
                                border-radius: 50%;
                                width: 80px;
                                height: 80px;
                                position: relative;
                                animation: spin 2s linear infinite;
                                margin: auto;
                              }

                              .loaderTXT {
                                width: 90%;
                                margin: auto;
                                font-size: 3vw;
                                margin-bottom: 5%;
                              }
                            }

                            @media screen and (max-width: 917px) {
                              .loaderTXT {
                                width: 100%;
                                margin: auto;
                                font-size: 3vw;
                                margin-bottom: 5%;
                              }
                            }

                            @media screen and (max-width: 600px) {
                              #loaderMsg2 {
                                max-width: 80% !important;
                                min-height: 20%;
                                border-radius: 3px;
                                -webkit-border-radius: 3px;
                                font-family: 'Roboto', sans-serif;
                                font-size: 24px;
                                color: #626262;
                                border: solid 0px #1e5772;
                                padding: 20px 20px 0 20px;
                                color: #626262;
                                text-align: center;
                                cursor: pointer;
                                position: relative;
                                margin: 5% auto 0px;
                                background: #ffffff;
                                border: 3px solid #3498db;
                                border-radius: 10px;
                              }

                              .loaderIMG {
                                border: 8px solid #e0f0fa;
                                border-top: 8px solid #232b73;
                                border-radius: 50%;
                                width: 40px;
                                height: 40px;
                                position: relative;
                                animation: spin 2s linear infinite;
                                margin: auto;
                              }

                              .loaderTXT {
                                width: 90%;
                                margin: auto;
                                font-size: 4vw;
                                margin-bottom: 5%;
                              }
                            }

                            @keyframes spin {
                              0% {
                                transform: rotate(0deg);
                              }

                              100% {
                                transform: rotate(360deg);
                              }
                            }
                          </style>
                          <style>
                            @media screen and (min-width: 1000px) {
                              .loaderIMG {
                                border: 16px solid #e0f0fa;
                                border-top: 16px solid #232b73;
                                border-radius: 50%;
                                width: 80px;
                                height: 80px;
                                position: relative;
                                animation: spin 2s linear infinite;
                                margin: auto;
                              }

                              .loaderTXT {
                                width: 90%;
                                margin: auto;
                                font-size: 2vw;
                                margin-bottom: 5%;
                              }

                              .loaderTXT2 {
                                width: 90%;
                                margin: auto;
                                font-size: 1em;
                                margin-bottom: 5%;
                              }

                              #loaderMsg2 {
                                max-width: 50% !important;
                                min-height: 20%;
                                border-radius: 3px;
                                -webkit-border-radius: 3px;
                                font-family: 'Roboto', sans-serif;
                                font-size: 24px;
                                color: #626262;
                                border: solid 0px #232b73;
                                padding: 20px 20px 0 20px;
                                color: #626262;
                                text-align: center;
                                cursor: pointer;
                                position: relative;
                                margin: 5% auto 0px;
                                background: #ffffff;
                                border: 3px solid #232b73;
                                border-radius: 10px;
                              }
                            }

                            @media screen and (max-width: 1000px) {
                              .loaderIMG {
                                border: 16px solid #e0f0fa;
                                border-top: 16px solid #232b73;
                                border-radius: 50%;
                                width: 80px;
                                height: 80px;
                                position: relative;
                                animation: spin 2s linear infinite;
                                margin: auto;
                              }

                              .loaderTXT {
                                width: 90%;
                                margin: auto;
                                font-size: 3vw;
                                margin-bottom: 5%;
                              }
                            }

                            @media screen and (max-width: 917px) {
                              .loaderTXT {
                                width: 100%;
                                margin: auto;
                                font-size: 3vw;
                                margin-bottom: 5%;
                              }
                            }

                            @media screen and (max-width: 600px) {
                              #loaderMsg2 {
                                max-width: 80% !important;
                                min-height: 20%;
                                border-radius: 3px;
                                -webkit-border-radius: 3px;
                                font-family: 'Roboto', sans-serif;
                                font-size: 24px;
                                color: #626262;
                                border: solid 0px #1e5772;
                                padding: 20px 20px 0 20px;
                                color: #626262;
                                text-align: center;
                                cursor: pointer;
                                position: relative;
                                margin: 5% auto 0px;
                                background: #ffffff;
                                border: 3px solid #3498db;
                                border-radius: 10px;
                              }

                              .loaderIMG {
                                border: 8px solid #e0f0fa;
                                border-top: 8px solid #232b73;
                                border-radius: 50%;
                                width: 40px;
                                height: 40px;
                                position: relative;
                                animation: spin 2s linear infinite;
                                margin: auto;
                              }

                              .loaderTXT {
                                width: 90%;
                                margin: auto;
                                font-size: 4vw;
                                margin-bottom: 5%;
                              }
                            }

                            @keyframes spin {
                              0% {
                                transform: rotate(0deg);
                              }

                              100% {
                                transform: rotate(360deg);
                              }
                            }
                          </style>
                          <!-- END NOT BRZ -->
                          <!-- END NOT BRZ -->
                          <!-- END NOT BLA -->
                          <!-- END NOT T2T -->
                          <!-- END NOT TMD -->
                          <div class="loaderIMG"></div>
                          <br>
                          <div class="loaderTXT"> Just a moment please </div>
                        </div><!-- end loaderMsg -->
                      </div><!-- end loaderMsgBox -->
                      <div class="clearBoth"></div>
                      <style>
                        @media only screen and (max-width: 768px) {
                          .ui-datepicker .ui-widget .ui-widget-content {
                            position: absolute;
                            top: 1155.69px;
                            left: 384px;
                            z-index: 1;
                            display: block;
                          }
                        }

                        @media only screen and (max-width: 540px) {

                          .traveller-box-001,
                          .countryFloat1 {
                            width: 48% !important;
                            margin: 20px 7px 0px 0px !important;
                          }

                          .res-box-001,
                          .traveller-box-001,
                          .countryFloat1 {
                            width: 48% !important;
                            margin: 1% 1% 0% 0% !important;
                            line-height: 20px;
                            float: none !important;
                          }
                        }
                      </style>
                      <script>
                        // copyright 1999 Idocs, Inc. http://www.idocs.com
                        // Distribute this script freely but keep this notice in place
                        function numberOnly(e) {
                          var key;
                          var keychar;
                          if (window.event) key = window.event.keyCode;
                          else if (e) key = e.which;
                          else return true;
                          keychar = String.fromCharCode(key);
                          keychar = keychar.toLowerCase();
                          // control keys
                          if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) return true;
                          // numbers only
                          else if ((("1234567890/").indexOf(keychar) > -1)) return true;
                          else return false;
                        }

                        function numberOnly2(e) {
                          var key;
                          var keychar;
                          if (window.event) key = window.event.keyCode;
                          else if (e) key = e.which;
                          else return true;
                          keychar = String.fromCharCode(key);
                          keychar = keychar.toLowerCase();
                          // control keys
                          if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) return true;
                          // numbers only
                          else if ((("1234567890/").indexOf(keychar) > -1)) return true;
                          else return false;
                        }
                        $("div.helptext").hide();
                        $(document).on('click', function(e) {
                          if ($(e.target).closest('#HelpTxtTrip1').length) {
                            $("#TripHelp").show();
                            $("#HelpTxtTrip1").hide();
                            $("#HelpTxtTrip2").show();
                          } else if (!$(e.target).closest('#TripHelp').length) {
                            $('#TripHelp').hide();
                            $("#HelpTxtTrip1").show();
                            $("#HelpTxtTrip2").hide();
                          }
                        });
                        $(document).on('click', function(e) {
                          if ($(e.target).closest('#HelpTxtSDates1').length) {
                            $("#SDatesHelp").show();
                            $("#HelpTxtSDates1").hide();
                            $("#HelpTxtSDates2").show();
                          } else if (!$(e.target).closest('#SDatesHelp').length) {
                            $('#SDatesHelp').hide();
                            $("#HelpTxtSDates1").show();
                            $("#HelpTxtSDates2").hide();
                          }
                        });
                        $(document).on('click', function(e) {
                          if ($(e.target).closest('#HelpTxtADates1').length) {
                            $("#ADatesHelp").show();
                            $("#HelpTxtADates1").hide();
                            $("#HelpTxtADates2").show();
                          } else if (!$(e.target).closest('#ADatesHelp').length) {
                            $('#ADatesHelp').hide();
                            $("#HelpTxtADates1").show();
                            $("#HelpTxtADates2").hide();
                          }
                        });
                        $(document).on('click', function(e) {
                          if ($(e.target).closest('#HelpTxtCntry1').length) {
                            $("#SCntryHelp").show();
                            $("#HelpTxtCntry1").hide();
                            $("#HelpTxtCntry2").show();
                          } else if (!$(e.target).closest('#SCntryHelp').length) {
                            $('#SCntryHelp').hide();
                            $("#HelpTxtCntry1").show();
                            $("#HelpTxtCntry2").hide();
                          }
                        });
                        $("#errordivCntry").hide();
                      </script>
                      <style>
                        @media only screen and (max-width: 420px) {
                          .ui-datepicker {
                            width: 20em !important;
                            padding: .2em .2em 0;
                            display: none;
                          }

                          .ui-datepicker td span,
                          .ui-datepicker td a {
                            display: block;
                            padding: 0.2em;
                            text-align: right;
                            text-decoration: none;
                          }

                          .easyselect-field {
                            border: 1px solid #45758b;
                            /* box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); */
                            /* -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); */
                            width: 100% !important;
                          }
                        }
                      </style>
                      <script>
                        $('#HelpTxtTrip1').hover(function() {
                          $('#DesktopTripHelp').css('display', 'inline-bock!important')
                        }, function() {
                          $('#c').css('display', 'none')
                        });
                        $('#HelpTxtTrip2').hover(function() {
                          $('#DesktopTripHelp').css('display', 'inline-bock!important')
                        }, function() {
                          $('#c').css('display', 'none')
                        });
                      </script>
                      <style>
                        #DesktopTripHelp {
                          display: none;
                        }

                        #HelpTxtTrip1:hover~#DesktopTripHelp {
                          display: block;
                        }

                        #HelpTxtTrip2:hover~#DesktopTripHelp {
                          display: block;
                        }
                      </style>
                      <div id="whiteBox">
                        <div class="singleFloat1">
                          <h2>What type of travel insurance do you need? <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtTrip1" class="questionClear">
                              <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                              <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                            </svg>
                            <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtTrip2" class="questionClear" style="display: none;">
                              <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                              <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                            </svg>
                            <div class="helptext" id="TripHelp" style="display: none;"><strong>Single or annual multi-trip?</strong>
                              <br>
                              <p>Single trip: Cover for a single trip, for the exact number of days you need.</p>
                              <p>Annual multi-trip: Cover for an unlimited number of trips within 365 days. You can purchase your annual multi-trip policy up to 60 days in advance of your policy start date. There will be no cover for any claims until
                                the start date of your policy. The maximum number of days you can travel on any one trip can be up to 31, 45 or 55 days depending on the level of cover you choose on the "Your Quotes" step.</p>
                            </div>
                            <div class="helptext" id="DesktopTripHelp" style="display: none;"><strong>Single or annual multi-trip?</strong>
                              <br>
                              <p>Single trip: Cover for a single trip, for the exact number of days you need.</p>
                              <p>Annual multi-trip: Cover for an unlimited number of trips within 365 days. You can purchase your annual multi-trip policy up to 60 days in advance of your policy start date. There will be no cover for any claims until
                                the start date of your policy. The maximum number of days you can travel on any one trip can be up to 31, 45 or 55 days depending on the level of cover you choose on the "Your Quotes" step.</p>
                            </div>
                          </h2>
                        </div>
                        <div class="clearBoth"></div>
                        <div class="errorText3" id="errordivforTripType" style="display: none;"> Please select Single or Annual </div>
                        <div class="singleAnnualSelect">
                          <div class="trip-box-001 switch-001 annual-001-button first ga-trip4 active" id="annual">
                            <fieldset>
                              <legend></legend>
                              <input type="radio" name="ASTRIP    " id="annual" value="A" class="css-radio-001-annual">
                              <label for="annual" class="css-label-radio-001-annual radGroup1">
                                <div class="select_box_name annSingCnt ga-trip4">
                                  <span>Annual multi-trip</span>
                                  <div>Cover for an unlimited number of trips</div>
                                  <div>within 365 days</div>
                                </div>
                              </label>
                            </fieldset>
                          </div>
                          <div class="trip-box-001 switch-001 single-001-button ga-trip3" id="tagsbutton">
                            <fieldset>
                              <legend></legend>
                              <input type="radio" name="ASTRIP    " id="single" value="S" class="css-radio-001-single">
                              <label for="single" class="css-label-radio-001-single radGroup1">
                                <div class="select_box_name annSingCnt ga-trip3">
                                  <span>Single trip </span>
                                  <div>Cover for one trip</div>
                                  <div>over specific dates</div>
                                </div>
                              </label>
                            </fieldset>
                          </div>
                        </div>
                        <div id="singleAnnualCheckMark"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                        <div class="clearBoth"></div>
                      </div> <!-- end whitebox -->
                      <div class="showSingle" style="display:none;">
                        <div id="whiteBox">
                          <div class="datesFloat">
                            <h2>When are you travelling? <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtSDates1" class="questionClear">
                                <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                                <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                              </svg>
                              <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtSDates2" class="questionClear" style="display: none;">
                                <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                                <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                              </svg>
                            </h2>
                          </div>
                          <div class="helptext" id="SDatesHelp" style="display: none;"><b>Single trip</b><br> A single trip policy could work out cheaper if you're only travelling once within the year and cover can be arranged for the exact number of
                            days you require. <br><br> Please note the minimum trip length is 2 days. </div>
                          <style>
                            #SDatesHelp {
                              display: none;
                            }

                            #HelpTxtSDates1:hover+#SDatesHelp {
                              display: block;
                            }
                          </style>
                          <style>
                            .ui-datepicker .ui-datepicker-prev,
                            .ui-datepicker .ui-datepicker-next {
                              position: absolute;
                              top: 2px;
                              width: 1.8em;
                              height: 1.8em;
                              cursor: pointer;
                            }
                          </style>
                          <div class="clearBoth"></div>
                          <div class="singleDatesCont">
                            <div class="singleStartCont">
                              <div class="floatw200mt10a" id="StrtHead"><label for="datefrom">
                                  <h3>Start date</h3>
                                </label></div>
                              <div class="clearBoth"></div>
                              <div class="floatw200mt10ab ga-trip5" id="tagfrmdate"><input name="SWBDEPV" type="text" size="008" maxlength="010" autocomplete="off" id="datefrom" title="Select Start Date" onkeypress="return numberOnly(event)"
                                  placeholder="dd/mm/yyyy" readonly="readonly" class="hasDatepicker"></div>
                            </div>
                            <div class="singleRetCont">
                              <div class="floatw200mt20" id="FrmHead"><label for="dateto">
                                  <h3>Return date</h3>
                                </label></div>
                              <div class="clearBoth"></div>
                              <div class="floatw200mt20b" id="tagrtndate"><input name="dateto" type="text" size="008" maxlength="010" autocomplete="off" id="dateto" title="Select Return Date" onkeypress="return numberOnly(event)"
                                  placeholder="dd/mm/yyyy" readonly="readonly" class="hasDatepicker"></div>
                            </div>
                          </div>
                          <div id="singDateCheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                          <div class="clearBoth"></div>
                          <div class="errorText ga-error-1" id="errordivforstartdate" style="display: none;">Please enter a valid start date</div>
                          <div class="errorText ga-error-6" style="display: none;" id="errordivforreturndate31">We cannot cover you for more than 31 days</div>
                          <div class="errorText ga-error-7" style="display: none;" id="errordivforreturndate92">We cannot cover you for more than 365 days.</div>
                          <div class="errorText" id="errordivforSstartdatepast" style="display: none;">Travel dates cannot be before todays date</div>
                          <div class="errorText" style="display: none;" id="errordivforreturndatepast">Your return date cannot be before the departure date</div>
                          <div class="errorText" style="display: none;" id="errordivforYearStartdate">Your trip cannot start more than 365 days in advance</div>
                          <div class="errorText ga-error-5" style="display: none;" id="errordivforreturndate2">The return date cannot be less than 2 nights from the start of the trip</div>
                          <div class="errorText ga-error-2" id="errordivforreturndate" style="display: none;">Please enter a valid return date</div>
                          <div class="errorText" style="display: none;" id="errordivforreturndatepast">Your return date cannot be before the departure date</div>
                          <div class="clearBoth"></div>
                        </div> <!-- end whitebox -->
                        <div id="whiteBox" class="countryCont">
                          <div class="travellingFloat1">
                            <h2>Where are you travelling to? <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtCntry1" class="questionClear">
                                <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                                <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                              </svg>
                              <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtCntry2" class="questionClear" style="display: none;">
                                <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                                <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                              </svg>
                              <div class="helptext" id="SCntryHelp" style="display: none;"><strong>Where are you travelling to?</strong>
                                <br> Make sure you add every country you're visiting within your trip. If you cannot find your country, then check the spelling or try typing the first few letters. You can only add up to 9 countries.
                              </div>
                            </h2>
                          </div>
                          <div class="clearBoth"></div>
                          <div class="countryFloat1 first c_france ga-trip10">
                            <input type="radio" name="CNTRY" id="spain" value="U" class="css-radio-001-spain">
                            <label for="spain" class="css-label-radio-001-spain radGroup1"> <span style="display:none;">Spain</span></label>
                            <div class="select_box_name css-radio-001-spain ga-trip10">Spain</div>
                          </div>
                          <div class="countryFloat1 c_spain ga-trip11">
                            <input type="radio" name="CNTRY" id="france" value="S" class="css-radio-001-france">
                            <label for="france" class="css-label-radio-001-france radGroup1"> <span style="display:none;">France</span></label>
                            <div class="select_box_name css-radio-001-france ga-trip11">France </div>
                          </div>
                          <div class="countryFloat1 c_usa ga-trip12">
                            <input type="radio" name="CNTRY" id="italy" value="U" class="css-radio-001-italy">
                            <label for="italy" class="css-label-radio-001-italy radGroup1"> <span style="display:none;">USA</span></label>
                            <div class="select_box_name css-radio-001-italy ga-trip12">Italy </div>
                          </div>
                          <div class="countryFloat1 c_spain c_spainR ga-trip12">
                            <input type="radio" name="CNTRY" id="greece" value="P" class="css-radio-001-greece">
                            <label for="greece" class="css-label-radio-001-greece radGroup1"> <span style="display:none;">Greece</span></label>
                            <div class="select_box_name css-radio-001-greece ga-trip12">Greece </div>
                          </div>
                          <div class="clearBoth"></div>
                          <div id="v7cntry" style="display: none;">
                            <div style="margin-top:20px;"></div>
                            <div id="searchTextW" style="display:none;">
                              <strong>Please search and add each country you are travelling to individually.</strong>
                            </div>
                            <div class="clearBoth"></div>
                            <div class="errorText3" id="errordivCntryMax" style="display: none;">Maximum number of destinations reached</div>
                            <div class="clearBoth"></div>
                            <link rel="stylesheet" href="../css/jquery.easyselectv7.min.css">
                            <script type="text/javascript" src="../js/jquery.easyselectv7.js"></script>
                            <!-- before country selected -->
                            <input id="ACOUNTRYMC" name="ACOUNTRYMC" type="hidden" size="100" maxlength="100" value="" title="Type a country here">
                            <label for="ACOUNTRYMC"><span style="display:none;">Select another country</span></label>
                            <!-- after country selected -->
                            <!-- added override styles here as .css file is shared with other sites -->
                            <style>
                              #countryMobile,
                              #shbox,
                              .selectionHeaderDiv,
                              .ms-selectable,
                              .ms-container,
                              .ms-list,
                              .ms-selection {
                                display: none;
                                visibilty: hidden;
                              }

                              input#single-country-selector::-webkit-input-placeholder {
                                color: #2D373D;
                                font-weight: 600;
                              }

                              input#single-country-selector::placeholder {
                                color: #2D373D;
                                font-weight: 600;
                              }

                              input#single-country-selector::-ms-input-placeholder {
                                color: #2D373D;
                                font-weight: 600;
                              }

                              input#single-country-selector:-ms-input-placeholder {
                                color: #2D373D;
                                font-weight: 600;
                              }

                              /* Remove default style from Safari */
                              input[type="search"] {
                                -webkit-appearance: none;
                              }

                              input#single-country-selector {
                                width: 100% !important;
                              }

                              div.easyselect-field-wrapper {
                                width: 100% !important;
                              }

                              input#single-country-selector {
                                color: #000 !important;
                                font-weight: normal !important;
                              }

                              @media screen and (max-width: 375px) {
                                .easyselect-box-item-bob {
                                  background: none !important;
                                  width: 140px !important;
                                  padding: 8px !important;
                                }
                              }

                              @media screen and (min-width: 376px) {
                                .easyselect-box-item-bob {
                                  background: none !important;
                                  width: 180px !important;
                                  padding: 8px !important;
                                }
                              }

                              .easyselect-box:before {
                                padding: 15px 0 0 0;
                                width: 100%;
                                /* content: "You have selected the following countries"; */
                                content: "You have successfully selected the following countries:";
                              }

                              .ez-click-remove {
                                width: 78px;
                                float: left;
                                margin-top: 28px !important;
                                margin-left: 7px;
                                color: #be605c;
                                text-decoration: none;
                                cursor: pointer;
                                font-weight: bold;
                                font-style: normal;
                              }

                              .ez-click-remove:before {
                                content: '\f056' !important;
                                font-family: 'fontAwesome' !important;
                                font-size: 23px !important;
                                padding: 2px 3px 0 0;
                              }

                              .easyselect-box-item-bob:after {
                                color: #32CD32 !important;
                              }

                              .easyselect-list-wrapper width:100% !important;
                              }

                              .easyselect-list-wrapper ul {
                                width: 98%;
                                background: #fff !important;
                              }

                              /* wrapper for list */
                              ul.easyselect-list {
                                width: 100% !important;
                              }

                              .easyselect-list-wrapper li {
                                width: 98% !important;
                                padding: 0 0 0 1% !important;
                                margin: 0 !important;
                                border-left: 2px solid #b8b8b8 !important;
                                border-right: 2px solid #b8b8b8 !important;
                              }

                              .easyselect-list {
                                -webkit-box-shadow: none !important;
                                -moz-box-shadow: none !important;
                              }

                              .easyselect-list li.active {
                                border: solid 2px #232b73 !important;
                              }
                            </style>
                            <div class="clearBoth"></div>
                            <div class="pad30"></div>
                            <label for="country"><span style="display:none;">Country list</span></label>
                            <select size="3" multiple="multiple" name="LOPT_CNTRY" id="country" style="display: none;">
                              <option value="1">Abu Dhabi</option>
                              <option value="3">Alaska</option>
                              <option value="4">Albania</option>
                              <option value="5">Algeria</option>
                              <option value="274">America</option>
                              <option value="6">Andorra</option>
                              <option value="7">Angola</option>
                              <option value="8">Anguilla</option>
                              <option value="9">Antarctic</option>
                              <option value="10">Antigua</option>
                              <option value="11">Argentina</option>
                              <option value="12">Armenia</option>
                              <option value="13">Aruba</option>
                              <option value="14">Ascension Island</option>
                              <option value="15">Australia</option>
                              <option value="16">Austria</option>
                              <option value="17">Azerbaijan</option>
                              <option value="18">Azores</option>
                              <option value="19">Bahamas</option>
                              <option value="20">Bahrain</option>
                              <option value="21">Balearics</option>
                              <option value="22">Bali</option>
                              <option value="23">Bangladesh</option>
                              <option value="24">Barbados</option>
                              <!--
<option value="25">Belarus</option>
-->
                              <option value="26">Belgium</option>
                              <option value="27">Belize</option>
                              <!--
<option value="28">Benin</option>
-->
                              <option value="29">Bermuda</option>
                              <option value="30">Bhutan</option>
                              <option value="31">Bolivia</option>
                              <option value="32">Bonaire (Antilles)</option>
                              <option value="33">Bosnia And Herzegovina</option>
                              <option value="34">Botswana</option>
                              <option value="36">Brazil</option>
                              <option value="35">British Virgin Isles</option>
                              <option value="37">Brunei Darussalam</option>
                              <option value="38">Bulgaria</option>
                              <!--
<option value="39">Burkina Faso</option>
-->
                              <option value="40">Burma</option>
                              <option value="42">Cambodia</option>
                              <option value="43">Cameroon</option>
                              <option value="44">Canada</option>
                              <option value="45">Canary Islands</option>
                              <option value="46">Cape Verde</option>
                              <option value="47">Cayman Islands</option>
                              <option value="275">Channel Islands</option>
                              <option value="50">Chile</option>
                              <option value="51">China</option>
                              <option value="52">Colombia</option>
                              <option value="53">Comoros Islands</option>
                              <option value="54">Congo</option>
                              <option value="55">Cook Islands</option>
                              <option value="56">Corfu</option>
                              <option value="57">Corsica</option>
                              <option value="58">Costa Rica</option>
                              <option value="59">Cote D'ivoire</option>
                              <option value="60">Crete</option>
                              <option value="61">Croatia</option>
                              <option value="62">Cuba</option>
                              <option value="63">Curaçao</option>
                              <option value="64">Cyprus</option>
                              <option value="65">Czech Republic</option>
                              <option value="66">Denmark</option>
                              <option value="67">Djibouti</option>
                              <option value="68">Dominica</option>
                              <option value="69">Dominican Republic</option>
                              <option value="70">Ecuador</option>
                              <option value="71">Egypt</option>
                              <option value="72">Eire</option>
                              <option value="73">El Salvador</option>
                              <option value="276">England</option>
                              <option value="74">Equatorial Guinea</option>
                              <option value="75">Eritrea</option>
                              <option value="76">Estonia</option>
                              <option value="77">Ethiopia</option>
                              <option value="78">Falkland Islands</option>
                              <option value="79">Faroe Islands</option>
                              <option value="80">Fiji</option>
                              <option value="81">Finland</option>
                              <option value="82">France</option>
                              <option value="83">French Guiana</option>
                              <option value="84">French Polynesia</option>
                              <option value="85">Gabon</option>
                              <option value="86">Galapagos Islands</option>
                              <option value="87">Gambia</option>
                              <option value="88">Georgia</option>
                              <option value="89">Germany</option>
                              <option value="90">Ghana</option>
                              <option value="91">Gibraltar</option>
                              <option value="92">Greece</option>
                              <option value="93">Greenland</option>
                              <option value="94">Grenada</option>
                              <option value="95">Guadeloupe</option>
                              <option value="96">Guam</option>
                              <option value="97">Guatemala</option>
                              <option value="98">Guernsey</option>
                              <option value="100">Guinea-bissau</option>
                              <option value="101">Guyana</option>
                              <option value="103">Hawaii</option>
                              <option value="104">Holland</option>
                              <option value="105">Honduras</option>
                              <option value="106">Hong Kong</option>
                              <option value="107">Hungary</option>
                              <option value="108">Ibiza</option>
                              <option value="109">Iceland</option>
                              <option value="110">India</option>
                              <option value="111">Indonesia</option>
                              <option value="114">Ireland</option>
                              <option value="115">Isle Of Man</option>
                              <!--
<option value="116">Israel</option>
-->
                              <option value="117">Italy</option>
                              <option value="118">Ivory Coast</option>
                              <option value="119">Jamaica</option>
                              <option value="120">Japan</option>
                              <option value="121">Jersey</option>
                              <option value="122">Jordan</option>
                              <option value="123">Kazakhstan</option>
                              <option value="124">Kenya</option>
                              <option value="125">Kiribati</option>
                              <option value="126">South Korea</option>
                              <option value="127">Kos (Greek Island)</option>
                              <option value="128">Kuwait</option>
                              <option value="129">Kyrgyzstan</option>
                              <option value="130">Laos</option>
                              <option value="131">Latvia</option>
                              <!--
<option value="132">Lebanon</option>
-->
                              <option value="133">Leeward Islands</option>
                              <option value="134">Lesotho</option>
                              <option value="135">Liberia</option>
                              <option value="137">Liechtenstein</option>
                              <option value="138">Lithuania</option>
                              <option value="139">Luxembourg</option>
                              <option value="140">Macau</option>
                              <option value="141">North Macedonia</option>
                              <option value="224">Madagascar</option>
                              <option value="142">Madeira</option>
                              <option value="143">Majorca</option>
                              <option value="144">Malawi</option>
                              <option value="145">Malaysia</option>
                              <option value="146">Maldives</option>
                              <option value="148">Malta</option>
                              <option value="149">Marshall Islands</option>
                              <option value="150">Martinique</option>
                              <option value="152">Mauritius</option>
                              <option value="153">Mayotte</option>
                              <option value="154">Mexico</option>
                              <option value="155">Micronesia</option>
                              <option value="156">Midway Island</option>
                              <option value="157">Minorca</option>
                              <option value="158">Moldova</option>
                              <option value="159">Monaco</option>
                              <option value="160">Mongolia</option>
                              <option value="161">Montenegro</option>
                              <option value="162">Montserrat</option>
                              <option value="163">Morocco</option>
                              <option value="164">Mozambique</option>
                              <!--
<option value="165">Myanmar</option>
-->
                              <option value="166">Namibia</option>
                              <option value="167">Nauru</option>
                              <option value="168">Nepal</option>
                              <option value="169">Netherlands</option>
                              <option value="170">Netherlands Antilles</option>
                              <option value="171">Nevis Island</option>
                              <option value="172">New Caledonia</option>
                              <option value="173">New Zealand</option>
                              <option value="174">Nicaragua</option>
                              <option value="176">Nigeria</option>
                              <option value="177">Niue</option>
                              <option value="178">Norfolk Island</option>
                              <option value="179">Northern Ireland</option>
                              <option value="180">Northern Marianas</option>
                              <option value="181">Norway</option>
                              <option value="182">Oman</option>
                              <option value="183">Pakistan</option>
                              <option value="184">Palau</option>
                              <option value="185">Panama</option>
                              <option value="186">Papua New Guinea</option>
                              <option value="187">Paraguay</option>
                              <option value="188">Peru</option>
                              <option value="189">Philippines</option>
                              <option value="190">Pitcairn Islands</option>
                              <option value="191">Poland</option>
                              <option value="192">Portugal</option>
                              <option value="193">Puerto Rico</option>
                              <option value="194">Qatar</option>
                              <option value="195">Reunion</option>
                              <option value="196">Rhodes</option>
                              <option value="197">Rodriguez Island</option>
                              <option value="198">Romania</option>
                              <!--
<option value="199">Russia</option>
-->
                              <option value="200">Rwanda</option>
                              <option value="201">Saipan</option>
                              <option value="202">Samoa (Western)</option>
                              <option value="203">San Marino</option>
                              <option value="204">Sao Tome and Principe</option>
                              <option value="205">Sarawak</option>
                              <option value="206">Sardinia</option>
                              <option value="207">Saudi Arabia</option>
                              <option value="278">Scotland</option>
                              <option value="208">Senegal</option>
                              <option value="209">Serbia</option>
                              <option value="210">Seychelles</option>
                              <option value="211">Sierra Leone</option>
                              <option value="212">Singapore</option>
                              <option value="213">Slovakia</option>
                              <option value="214">Slovenia</option>
                              <option value="215">Solomon Islands</option>
                              <option value="217">South Africa</option>
                              <option value="218">South Georgia &amp; The South Sandwich Islands</option>
                              <option value="219">Spain</option>
                              <option value="220">Sri Lanka</option>
                              <option value="221">St Helena</option>
                              <option value="222">St Kitts &amp; Nevis</option>
                              <option value="223">St Lucia</option>
                              <option value="225">St Martin</option>
                              <option value="226">St Pierre &amp; Miquelon</option>
                              <option value="227">St Vincent &amp; the Grenadines</option>
                              <option value="229">Suriname</option>
                              <option value="230">Eswatini (Swaziland)</option>
                              <option value="231">Sweden</option>
                              <option value="232">Switzerland</option>
                              <option value="234">Taiwan</option>
                              <option value="235">Tajikistan</option>
                              <option value="236">Tanzania</option>
                              <option value="237">Tenerife</option>
                              <option value="238">Thailand</option>
                              <option value="239">Togo</option>
                              <option value="240">Tonga</option>
                              <option value="241">Trinidad And Tobago</option>
                              <option value="242">Tristan Da Cunha</option>
                              <option value="243">Tunisia</option>
                              <option value="244">Turkey</option>
                              <option value="245">Turkmenistan</option>
                              <option value="246">Turks And Caicos Islands</option>
                              <option value="247">Tuvalu</option>
                              <option value="248">UAE</option>
                              <option value="249">Uganda</option>
                              <!--
<option value="250">Ukraine</option>
-->
                              <option value="281">United Arab Emirates</option>
                              <option value="251">United Kingdom</option>
                              <option value="280">United States of America</option>
                              <option value="252">Uruguay</option>
                              <option value="253">USA</option>
                              <option value="254">Uzbekistan</option>
                              <option value="255">Vanuatu</option>
                              <option value="256">Vatican City</option>
                              <option value="258">Vietnam</option>
                              <option value="259">Virgin Islands (UK)</option>
                              <option value="260">Virgin Islands (US)</option>
                              <option value="261">Wake Island</option>
                              <option value="277">Wales</option>
                              <option value="262">Wallis And Futuna</option>
                              <option value="264">Zaire</option>
                              <option value="265">Zambia</option>
                              <option value="266">Zanzibar</option>
                              <option value="267">Zimbabwe</option>
                            </select>
                            <div class="easyselect-container search">
                              <div class="easyselect-field-wrapper"><input class="easyselect-field" id="single-country-selector" type="search" autocomplete="none" placeholder="Or, search another country"
                                  style="font-family:Arial, FontAwesome; display:inline-block;">
                                <div class="easyselect-list-wrapper">
                                  <ul class="easyselect-list">
                                    <li data-value="1">Abu Dhabi</li>
                                    <li data-value="3">Alaska</li>
                                    <li data-value="4">Albania</li>
                                    <li data-value="5">Algeria</li>
                                    <li data-value="274">America</li>
                                    <li data-value="6">Andorra</li>
                                    <li data-value="7">Angola</li>
                                    <li data-value="8">Anguilla</li>
                                    <li data-value="9">Antarctic</li>
                                    <li data-value="10">Antigua</li>
                                    <li data-value="11">Argentina</li>
                                    <li data-value="12">Armenia</li>
                                    <li data-value="13">Aruba</li>
                                    <li data-value="14">Ascension Island</li>
                                    <li data-value="15">Australia</li>
                                    <li data-value="16">Austria</li>
                                    <li data-value="17">Azerbaijan</li>
                                    <li data-value="18">Azores</li>
                                    <li data-value="19">Bahamas</li>
                                    <li data-value="20">Bahrain</li>
                                    <li data-value="21">Balearics</li>
                                    <li data-value="22">Bali</li>
                                    <li data-value="23">Bangladesh</li>
                                    <li data-value="24">Barbados</li>
                                    <li data-value="26">Belgium</li>
                                    <li data-value="27">Belize</li>
                                    <li data-value="29">Bermuda</li>
                                    <li data-value="30">Bhutan</li>
                                    <li data-value="31">Bolivia</li>
                                    <li data-value="32">Bonaire (Antilles)</li>
                                    <li data-value="33">Bosnia And Herzegovina</li>
                                    <li data-value="34">Botswana</li>
                                    <li data-value="36">Brazil</li>
                                    <li data-value="35">British Virgin Isles</li>
                                    <li data-value="37">Brunei Darussalam</li>
                                    <li data-value="38">Bulgaria</li>
                                    <li data-value="40">Burma</li>
                                    <li data-value="42">Cambodia</li>
                                    <li data-value="43">Cameroon</li>
                                    <li data-value="44">Canada</li>
                                    <li data-value="45">Canary Islands</li>
                                    <li data-value="46">Cape Verde</li>
                                    <li data-value="47">Cayman Islands</li>
                                    <li data-value="275">Channel Islands</li>
                                    <li data-value="50">Chile</li>
                                    <li data-value="51">China</li>
                                    <li data-value="52">Colombia</li>
                                    <li data-value="53">Comoros Islands</li>
                                    <li data-value="54">Congo</li>
                                    <li data-value="55">Cook Islands</li>
                                    <li data-value="56">Corfu</li>
                                    <li data-value="57">Corsica</li>
                                    <li data-value="58">Costa Rica</li>
                                    <li data-value="59">Cote D'ivoire</li>
                                    <li data-value="60">Crete</li>
                                    <li data-value="61">Croatia</li>
                                    <li data-value="62">Cuba</li>
                                    <li data-value="63">Curaçao</li>
                                    <li data-value="64">Cyprus</li>
                                    <li data-value="65">Czech Republic</li>
                                    <li data-value="66">Denmark</li>
                                    <li data-value="67">Djibouti</li>
                                    <li data-value="68">Dominica</li>
                                    <li data-value="69">Dominican Republic</li>
                                    <li data-value="70">Ecuador</li>
                                    <li data-value="71">Egypt</li>
                                    <li data-value="72">Eire</li>
                                    <li data-value="73">El Salvador</li>
                                    <li data-value="276">England</li>
                                    <li data-value="74">Equatorial Guinea</li>
                                    <li data-value="75">Eritrea</li>
                                    <li data-value="76">Estonia</li>
                                    <li data-value="77">Ethiopia</li>
                                    <li data-value="78">Falkland Islands</li>
                                    <li data-value="79">Faroe Islands</li>
                                    <li data-value="80">Fiji</li>
                                    <li data-value="81">Finland</li>
                                    <li data-value="82">France</li>
                                    <li data-value="83">French Guiana</li>
                                    <li data-value="84">French Polynesia</li>
                                    <li data-value="85">Gabon</li>
                                    <li data-value="86">Galapagos Islands</li>
                                    <li data-value="87">Gambia</li>
                                    <li data-value="88">Georgia</li>
                                    <li data-value="89">Germany</li>
                                    <li data-value="90">Ghana</li>
                                    <li data-value="91">Gibraltar</li>
                                    <li data-value="92">Greece</li>
                                    <li data-value="93">Greenland</li>
                                    <li data-value="94">Grenada</li>
                                    <li data-value="95">Guadeloupe</li>
                                    <li data-value="96">Guam</li>
                                    <li data-value="97">Guatemala</li>
                                    <li data-value="98">Guernsey</li>
                                    <li data-value="100">Guinea-bissau</li>
                                    <li data-value="101">Guyana</li>
                                    <li data-value="103">Hawaii</li>
                                    <li data-value="104">Holland</li>
                                    <li data-value="105">Honduras</li>
                                    <li data-value="106">Hong Kong</li>
                                    <li data-value="107">Hungary</li>
                                    <li data-value="108">Ibiza</li>
                                    <li data-value="109">Iceland</li>
                                    <li data-value="110">India</li>
                                    <li data-value="111">Indonesia</li>
                                    <li data-value="114">Ireland</li>
                                    <li data-value="115">Isle Of Man</li>
                                    <li data-value="117">Italy</li>
                                    <li data-value="118">Ivory Coast</li>
                                    <li data-value="119">Jamaica</li>
                                    <li data-value="120">Japan</li>
                                    <li data-value="121">Jersey</li>
                                    <li data-value="122">Jordan</li>
                                    <li data-value="123">Kazakhstan</li>
                                    <li data-value="124">Kenya</li>
                                    <li data-value="125">Kiribati</li>
                                    <li data-value="126">South Korea</li>
                                    <li data-value="127">Kos (Greek Island)</li>
                                    <li data-value="128">Kuwait</li>
                                    <li data-value="129">Kyrgyzstan</li>
                                    <li data-value="130">Laos</li>
                                    <li data-value="131">Latvia</li>
                                    <li data-value="133">Leeward Islands</li>
                                    <li data-value="134">Lesotho</li>
                                    <li data-value="135">Liberia</li>
                                    <li data-value="137">Liechtenstein</li>
                                    <li data-value="138">Lithuania</li>
                                    <li data-value="139">Luxembourg</li>
                                    <li data-value="140">Macau</li>
                                    <li data-value="141">North Macedonia</li>
                                    <li data-value="224">Madagascar</li>
                                    <li data-value="142">Madeira</li>
                                    <li data-value="143">Majorca</li>
                                    <li data-value="144">Malawi</li>
                                    <li data-value="145">Malaysia</li>
                                    <li data-value="146">Maldives</li>
                                    <li data-value="148">Malta</li>
                                    <li data-value="149">Marshall Islands</li>
                                    <li data-value="150">Martinique</li>
                                    <li data-value="152">Mauritius</li>
                                    <li data-value="153">Mayotte</li>
                                    <li data-value="154">Mexico</li>
                                    <li data-value="155">Micronesia</li>
                                    <li data-value="156">Midway Island</li>
                                    <li data-value="157">Minorca</li>
                                    <li data-value="158">Moldova</li>
                                    <li data-value="159">Monaco</li>
                                    <li data-value="160">Mongolia</li>
                                    <li data-value="161">Montenegro</li>
                                    <li data-value="162">Montserrat</li>
                                    <li data-value="163">Morocco</li>
                                    <li data-value="164">Mozambique</li>
                                    <li data-value="166">Namibia</li>
                                    <li data-value="167">Nauru</li>
                                    <li data-value="168">Nepal</li>
                                    <li data-value="169">Netherlands</li>
                                    <li data-value="170">Netherlands Antilles</li>
                                    <li data-value="171">Nevis Island</li>
                                    <li data-value="172">New Caledonia</li>
                                    <li data-value="173">New Zealand</li>
                                    <li data-value="174">Nicaragua</li>
                                    <li data-value="176">Nigeria</li>
                                    <li data-value="177">Niue</li>
                                    <li data-value="178">Norfolk Island</li>
                                    <li data-value="179">Northern Ireland</li>
                                    <li data-value="180">Northern Marianas</li>
                                    <li data-value="181">Norway</li>
                                    <li data-value="182">Oman</li>
                                    <li data-value="183">Pakistan</li>
                                    <li data-value="184">Palau</li>
                                    <li data-value="185">Panama</li>
                                    <li data-value="186">Papua New Guinea</li>
                                    <li data-value="187">Paraguay</li>
                                    <li data-value="188">Peru</li>
                                    <li data-value="189">Philippines</li>
                                    <li data-value="190">Pitcairn Islands</li>
                                    <li data-value="191">Poland</li>
                                    <li data-value="192">Portugal</li>
                                    <li data-value="193">Puerto Rico</li>
                                    <li data-value="194">Qatar</li>
                                    <li data-value="195">Reunion</li>
                                    <li data-value="196">Rhodes</li>
                                    <li data-value="197">Rodriguez Island</li>
                                    <li data-value="198">Romania</li>
                                    <li data-value="200">Rwanda</li>
                                    <li data-value="201">Saipan</li>
                                    <li data-value="202">Samoa (Western)</li>
                                    <li data-value="203">San Marino</li>
                                    <li data-value="204">Sao Tome and Principe</li>
                                    <li data-value="205">Sarawak</li>
                                    <li data-value="206">Sardinia</li>
                                    <li data-value="207">Saudi Arabia</li>
                                    <li data-value="278">Scotland</li>
                                    <li data-value="208">Senegal</li>
                                    <li data-value="209">Serbia</li>
                                    <li data-value="210">Seychelles</li>
                                    <li data-value="211">Sierra Leone</li>
                                    <li data-value="212">Singapore</li>
                                    <li data-value="213">Slovakia</li>
                                    <li data-value="214">Slovenia</li>
                                    <li data-value="215">Solomon Islands</li>
                                    <li data-value="217">South Africa</li>
                                    <li data-value="218">South Georgia &amp; The South Sandwich Islands</li>
                                    <li data-value="219">Spain</li>
                                    <li data-value="220">Sri Lanka</li>
                                    <li data-value="221">St Helena</li>
                                    <li data-value="222">St Kitts &amp; Nevis</li>
                                    <li data-value="223">St Lucia</li>
                                    <li data-value="225">St Martin</li>
                                    <li data-value="226">St Pierre &amp; Miquelon</li>
                                    <li data-value="227">St Vincent &amp; the Grenadines</li>
                                    <li data-value="229">Suriname</li>
                                    <li data-value="230">Eswatini (Swaziland)</li>
                                    <li data-value="231">Sweden</li>
                                    <li data-value="232">Switzerland</li>
                                    <li data-value="234">Taiwan</li>
                                    <li data-value="235">Tajikistan</li>
                                    <li data-value="236">Tanzania</li>
                                    <li data-value="237">Tenerife</li>
                                    <li data-value="238">Thailand</li>
                                    <li data-value="239">Togo</li>
                                    <li data-value="240">Tonga</li>
                                    <li data-value="241">Trinidad And Tobago</li>
                                    <li data-value="242">Tristan Da Cunha</li>
                                    <li data-value="243">Tunisia</li>
                                    <li data-value="244">Turkey</li>
                                    <li data-value="245">Turkmenistan</li>
                                    <li data-value="246">Turks And Caicos Islands</li>
                                    <li data-value="247">Tuvalu</li>
                                    <li data-value="248">UAE</li>
                                    <li data-value="249">Uganda</li>
                                    <li data-value="281">United Arab Emirates</li>
                                    <li data-value="251">United Kingdom</li>
                                    <li data-value="280">United States of America</li>
                                    <li data-value="252">Uruguay</li>
                                    <li data-value="253">USA</li>
                                    <li data-value="254">Uzbekistan</li>
                                    <li data-value="255">Vanuatu</li>
                                    <li data-value="256">Vatican City</li>
                                    <li data-value="258">Vietnam</li>
                                    <li data-value="259">Virgin Islands (UK)</li>
                                    <li data-value="260">Virgin Islands (US)</li>
                                    <li data-value="261">Wake Island</li>
                                    <li data-value="277">Wales</li>
                                    <li data-value="262">Wallis And Futuna</li>
                                    <li data-value="264">Zaire</li>
                                    <li data-value="265">Zambia</li>
                                    <li data-value="266">Zanzibar</li>
                                    <li data-value="267">Zimbabwe</li>
                                  </ul>
                                </div>
                              </div>
                              <div class="easyselect-box empty"></div>
                            </div>
                            <script type="text/javascript">
                              $(document).ready(function() {
                                var mcsv = $('input[name=ACOUNTRYRN]').val();
                                mcsv = $.trim(mcsv);
                                console.log("mscv equals" + mcsv);
                                if (mcsv != '999') {
                                  console.log("got to mcsv");
                                  var msel = mcsv.split(',');
                                  for (var i = 0; i < msel.length; i++) {
                                    $("#country option[value='" + msel[i] + "']").attr('selected', 'selected');
                                    ///alert(msel[i]);
                                    console.log("got mcsv msel" + msel[i]);
                                  }
                                }
                                $('#country').easySelect({
                                  selectableHeader: "<input name='shbox' id='shbox' type='text' title='To find a country, enter the name here' class='search-input' autocomplete='off' placeholder='To find a country, enter the name here' >Click on a country to add it to your trip",
                                  selectionHeader: "<div class='selectionHeaderDiv'>You have selected these countries<br>(click a country to remove it from the list)</div>",
                                  afterInit: function(ms) {
                                    var that = this,
                                      $selectableSearch = that.$selectableUl.prev(),
                                      $selectionSearch = that.$selectionUl.prev(),
                                      selectableSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selectable:not(.ms-selected)',
                                      selectionSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selection.ms-selected';
                                  },
                                  afterSelect: function() {
                                    $('input[name=ACOUNTRYMC]').val($('#country').val());
                                    //alert($('input[name=ACOUNTRYMC]').val());
                                    console.log("got afterselect func");
                                    $('#shbox').val('');
                                    $('#country').data('easySelect').refresh();
                                  },
                                  afterDeselect: function() {
                                    $('input[name=ACOUNTRYMC]').val($('#country').val());
                                    //alert($('input[name=ACOUNTRYMC]').val());
                                    console.log("got afterdeselect func");
                                    console.log("got to end");
                                    $('#shbox').val('');
                                    $('#country').data('easySelect').refresh();
                                  }
                                });
                                //
                              });
                            </script>
                            <label for="countryMobile"><span style="display:none;">Country list</span></label>
                            <select size="3" multiple="multiple" name="LOPT_CNTRY" id="countryMobile">
                              <option value="1">Abu Dhabi</option>
                              <option value="3">Alaska</option>
                              <option value="4">Albania</option>
                              <option value="5">Algeria</option>
                              <option value="6">Andorra</option>
                              <option value="7">Angola</option>
                              <option value="8">Anguilla</option>
                              <option value="9">Antarctic</option>
                              <option value="10">Antigua</option>
                              <option value="11">Argentina</option>
                              <option value="12">Armenia</option>
                              <option value="13">Aruba</option>
                              <option value="14">Ascension Island</option>
                              <option value="15">Australia</option>
                              <option value="16">Austria</option>
                              <option value="17">Azerbaijan</option>
                              <option value="18">Azores</option>
                              <option value="19">Bahamas</option>
                              <option value="20">Bahrain</option>
                              <option value="21">Balearics</option>
                              <option value="22">Bali</option>
                              <option value="23">Bangladesh</option>
                              <option value="24">Barbados</option>
                              <option value="25">Belarus</option>
                              <option value="26">Belgium</option>
                              <option value="27">Belize</option>
                              <option value="28">Benin</option>
                              <option value="29">Bermuda</option>
                              <option value="30">Bhutan</option>
                              <option value="31">Bolivia</option>
                              <option value="32">Bonaire (Antilles)</option>
                              <option value="33">Bosnia And Herzegovina</option>
                              <option value="34">Botswana</option>
                              <option value="36">Brazil</option>
                              <option value="35">British Virgin Isles</option>
                              <option value="37">Brunei Darussalam</option>
                              <option value="38">Bulgaria</option>
                              <option value="39">Burkina Faso</option>
                              <option value="40">Burma</option>
                              <option value="42">Cambodia</option>
                              <option value="43">Cameroon</option>
                              <option value="44">Canada</option>
                              <option value="45">Canary Islands</option>
                              <option value="46">Cape Verde</option>
                              <option value="47">Cayman Islands</option>
                              <option value="50">Chile</option>
                              <option value="51">China</option>
                              <option value="52">Colombia</option>
                              <option value="53">Comoros Islands</option>
                              <option value="55">Cook Islands</option>
                              <option value="56">Corfu</option>
                              <option value="57">Corsica</option>
                              <option value="58">Costa Rica</option>
                              <option value="59">Côte D'ivoire</option>
                              <option value="60">Crete</option>
                              <option value="61">Croatia</option>
                              <option value="62">Cuba</option>
                              <option value="63">Curaçao</option>
                              <option value="64">Cyprus</option>
                              <option value="65">Czech Republic</option>
                              <option value="66">Denmark</option>
                              <option value="67">Djibouti</option>
                              <option value="68">Dominica</option>
                              <option value="69">Dominican Republic</option>
                              <option value="70">Ecuador</option>
                              <option value="71">Egypt</option>
                              <option value="72">Eire</option>
                              <option value="73">El Salvador</option>
                              <option value="74">Equatorial Guinea</option>
                              <option value="75">Eritrea</option>
                              <option value="76">Estonia</option>
                              <option value="77">Ethiopia</option>
                              <option value="78">Falkland Islands</option>
                              <option value="79">Faroe Islands</option>
                              <option value="80">Fiji</option>
                              <option value="81">Finland</option>
                              <option value="82">France</option>
                              <option value="83">French Guiana</option>
                              <option value="84">French Polynesia</option>
                              <option value="85">Gabon</option>
                              <option value="86">Galapagos Islands</option>
                              <option value="87">Gambia</option>
                              <option value="88">Georgia</option>
                              <option value="89">Germany</option>
                              <option value="90">Ghana</option>
                              <option value="91">Gibraltar</option>
                              <option value="92">Greece</option>
                              <option value="93">Greenland</option>
                              <option value="94">Grenada</option>
                              <option value="95">Guadeloupe</option>
                              <option value="96">Guam</option>
                              <option value="97">Guatemala</option>
                              <option value="98">Guernsey</option>
                              <option value="100">Guinea-bissau</option>
                              <option value="101">Guyana</option>
                              <option value="102">Haiti</option>
                              <option value="103">Hawaii</option>
                              <option value="104">Holland</option>
                              <option value="105">Honduras</option>
                              <option value="106">Hong Kong</option>
                              <option value="107">Hungary</option>
                              <option value="108">Ibiza</option>
                              <option value="109">Iceland</option>
                              <option value="110">India</option>
                              <option value="111">Indonesia</option>
                              <option value="112">Iran</option>
                              <option value="114">Ireland</option>
                              <option value="115">Isle Of Man</option>
                              <option value="117">Italy</option>
                              <option value="118">Ivory Coast</option>
                              <option value="119">Jamaica</option>
                              <option value="120">Japan</option>
                              <option value="121">Jersey</option>
                              <option value="122">Jordan</option>
                              <option value="123">Kazakhstan</option>
                              <option value="124">Kenya</option>
                              <option value="125">Kiribati</option>
                              <option value="126">Korea</option>
                              <option value="127">Kos (Greek Island)</option>
                              <option value="128">Kuwait</option>
                              <option value="129">Kyrgyzstan</option>
                              <option value="130">Laos</option>
                              <option value="131">Latvia</option>
                              <option value="133">Leeward Islands</option>
                              <option value="134">Lesotho</option>
                              <option value="135">Liberia</option>
                              <option value="137">Liechtenstein</option>
                              <option value="138">Lithuania</option>
                              <option value="139">Luxembourg</option>
                              <option value="140">Macau</option>
                              <option value="141">Macedonia</option>
                              <option value="224">Madagascar</option>
                              <option value="142">Madeira</option>
                              <option value="143">Majorca</option>
                              <option value="144">Malawi</option>
                              <option value="145">Malaysia</option>
                              <option value="146">Maldives</option>
                              <option value="148">Malta</option>
                              <option value="149">Marshall Islands</option>
                              <option value="150">Martinique</option>
                              <option value="152">Mauritius</option>
                              <option value="153">Mayotte</option>
                              <option value="154">Mexico</option>
                              <option value="155">Micronesia</option>
                              <option value="156">Midway Island</option>
                              <option value="157">Minorca</option>
                              <option value="158">Moldova</option>
                              <option value="159">Monaco</option>
                              <option value="160">Mongolia</option>
                              <option value="161">Montenegro</option>
                              <option value="162">Montserrat</option>
                              <option value="163">Morocco</option>
                              <option value="164">Mozambique</option>
                              <option value="165">Myanmar</option>
                              <option value="166">Namibia</option>
                              <option value="167">Nauru</option>
                              <option value="168">Nepal</option>
                              <option value="169">Netherlands</option>
                              <option value="170">Netherlands Antilles</option>
                              <option value="171">Nevis Island</option>
                              <option value="172">New Caledonia</option>
                              <option value="173">New Zealand</option>
                              <option value="176">Nigeria</option>
                              <option value="177">Niue</option>
                              <option value="178">Norfolk Island</option>
                              <option value="179">Northern Ireland</option>
                              <option value="180">Northern Marianas</option>
                              <option value="181">Norway</option>
                              <option value="182">Oman</option>
                              <option value="183">Pakistan</option>
                              <option value="184">Palau</option>
                              <option value="185">Panama</option>
                              <option value="186">Papua New Guinea</option>
                              <option value="187">Paraguay</option>
                              <option value="188">Peru</option>
                              <option value="189">Philippines</option>
                              <option value="190">Pitcairn Islands</option>
                              <option value="191">Poland</option>
                              <option value="192">Portugal</option>
                              <option value="193">Puerto Rico</option>
                              <option value="194">Qatar</option>
                              <option value="195">Réunion</option>
                              <option value="196">Rhodes</option>
                              <option value="197">Rodriguez Island</option>
                              <option value="198">Romania</option>
                              <option value="199">Russia</option>
                              <option value="200">Rwanda</option>
                              <option value="201">Saipan</option>
                              <option value="202">Samoa (Western)</option>
                              <option value="203">San Marino</option>
                              <option value="204">Sao Tome and Principe</option>
                              <option value="205">Sarawak</option>
                              <option value="206">Sardinia</option>
                              <option value="207">Saudi Arabia</option>
                              <option value="208">Senegal</option>
                              <option value="209">Serbia</option>
                              <option value="210">Seychelles</option>
                              <option value="212">Singapore</option>
                              <option value="213">Slovakia</option>
                              <option value="214">Slovenia</option>
                              <option value="215">Solomon Islands</option>
                              <option value="217">South Africa</option>
                              <option value="218">South Georgia &amp; The South Sandwich Islands</option>
                              <option value="219">Spain</option>
                              <option value="220">Sri Lanka</option>
                              <option value="221">St Helena</option>
                              <option value="222">St Kitts &amp; Nevis</option>
                              <option value="223">St Lucia</option>
                              <option value="225">St Martin</option>
                              <option value="226">St Pierre &amp; Miquelon</option>
                              <option value="227">St Vincent &amp; the Grenadines</option>
                              <option value="229">Suriname</option>
                              <option value="230">Swaziland</option>
                              <option value="231">Sweden</option>
                              <option value="232">Switzerland</option>
                              <option value="234">Taiwan</option>
                              <option value="235">Tajikistan</option>
                              <option value="236">Tanzania</option>
                              <option value="237">Tenerife</option>
                              <option value="238">Thailand</option>
                              <option value="239">Togo</option>
                              <option value="240">Tonga</option>
                              <option value="241">Trinidad And Tobago</option>
                              <option value="242">Tristan Da Cunha</option>
                              <option value="244">Turkey</option>
                              <option value="245">Turkmenistan</option>
                              <option value="246">Turks And Caicos Islands</option>
                              <option value="247">Tuvalu</option>
                              <option value="248">UAE</option>
                              <option value="249">Uganda</option>
                              <option value="250">Ukraine</option>
                              <option value="251">United Kingdom</option>
                              <option value="252">Uruguay</option>
                              <option value="253">USA</option>
                              <option value="254">Uzbekistan</option>
                              <option value="255">Vanuatu</option>
                              <option value="256">Vatican City</option>
                              <!--<option value="257">Venezuela</option>-->
                              <option value="258">Vietnam</option>
                              <option value="259">Virgin Islands (UK)</option>
                              <option value="260">Virgin Islands, (US)</option>
                              <option value="261">Wake Island</option>
                              <option value="262">Wallis And Futuna</option>
                              <option value="264">Zaire</option>
                              <option value="265">Zambia</option>
                              <option value="266">Zanzibar</option>
                              <option value="267">Zimbabwe</option>
                            </select>
                            <script type="text/javascript">
                              $(document).ready(function() {
                                var mcsv = $('input[name=ACOUNTRYRN]').val();
                                mcsv = $.trim(mcsv);
                                if (mcsv != '999') {
                                  var msel = mcsv.split(',');
                                  for (var i = 0; i < msel.length; i++) {
                                    $("#countryMobile option[value='" + msel[i] + "']").attr('selected', 'selected');
                                    ///alert(msel[i]);
                                  }
                                } < !-- < div class = 'selectableHeaderDiv' > Click on a coutry to add it to your trip < /div> -->
                                $('#countryMobile').multiSelect({
                                  selectableHeader: "<input name='shbox' id='shbox' type='text' title='Enter country name' class='search-input' autocomplete='off' placeholder='Enter country name'><label for="
                                  shbox " ><span style="
                                  display: none;
                                  ">Enter country name</span></label>",
                                  selectionHeader: "<div class='selectionHeaderDiv'></div>",
                                  afterInit: function(ms) {
                                    var that = this,
                                      $selectableSearch = that.$selectableUl.prev(),
                                      $selectionSearch = that.$selectionUl.prev(),
                                      selectableSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selectable:not(.ms-selected)',
                                      selectionSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selection.ms-selected';
                                  },
                                  afterSelect: function() {
                                    $('input[name=ACOUNTRYMC]').val($('#countryMobile').val());
                                    //alert($('input[name=ACOUNTRYMC]').val());
                                    $('#shbox').val('');
                                    $('#countryMobile').multiSelect('refresh');
                                  },
                                  afterDeselect: function() {
                                    $('input[name=ACOUNTRYMC]').val($('#countryMobile').val());
                                    //alert($('input[name=ACOUNTRYMC]').val());
                                    $('#shbox').val('');
                                    $('#countryMobile').multiSelect('refresh');
                                  }
                                });
                                //
                              });
                            </script>
                          </div><!-- end v7cntry -->
                          <div class="clearBoth"></div>
                          <div class="errorText3 ga-error-4" id="errordivCntry" style="display: none;">Please select all countries that you will be visiting on your trip.</div>
                          <div class="clearBoth"></div>
                        </div> <!-- end whitebox -->
                      </div> <!-- end showSingle -->
                      <div class="showAnnual">
                        <div id="whiteBox">
                          <div class="datesFloat">
                            <h2>When would you like your cover to start? <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtADates1" class="questionClear">
                                <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                                <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                              </svg>
                              <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtADates2" class="questionClear" style="display: none;">
                                <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                                <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                              </svg>
                              <div class="helptext" id="ADatesHelp" style="display: none;"><b>Annual multi-trip</b><br> Annual multi Trip Policies cover you for 365 days from your selected start date - Trip length is often limited to around 31, 45 or
                                55 days, but this is dependent on your chosen product. Annual multi-trip policies can be purchased up to 60 days in advance of your policy start date. You will not be eligible for cancellation cover until the policy
                                starts. If you want this cover, you should consider starting the policy straight away. </div>
                            </h2>
                          </div>
                          <div class="floatw200mt10" id="AStrtHead"><label for="dateannual">
                              <h3>Start date</h3>
                            </label></div>
                          <div class="clearBoth"></div>
                          <div class="floatw200mt10b ga-trip6" id="tagfrmdate"><input name="dateannual" type="text" size="008" maxlength="010" autocomplete="off" id="dateannual" title="Select Start Date" onkeypress="return numberOnly(event)" value=""
                              readonly="readonly" class="hasDatepicker"></div>
                          <div id="annDateCheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                          <div class="errorText ga-error-3" id="errordivforstartdateAnnual" style="display: none;">Please enter a valid start date</div>
                          <div class="clearBoth"></div>
                          <div class="errorText3" id="errordivforAstartdatepast" style="display: none;">Travel dates cannot be before todays date</div>
                          <div class="clearBoth"></div>
                          <div class="errorText3" id="errordivforreturndate31Annual" style="display: none;">Your trip cannot start more than <!--31-->60 days in advance</div>
                          <div class="errorText3" style="display: none;" id="errordivforYearstartdateA">Your policy cannot start more than 365 days in advance</div>
                          <div class="clearBoth"></div>
                        </div> <!-- end whitebox -->
                        <div id="whiteBox">
                          <h2>Where are you travelling to?</h2>
                          <div class="clearBoth"></div>
                          <div class="errorText3" id="errordivforAnnualRegion" style="display: none;">Please select a region of travel. </div>
                          <div class="clearBoth"></div>
                          <fieldset>
                            <legend></legend>
                            <div id="annReg">
                              <span class="radioUK switchUK-001 ga-trip7" id="uka" style="cursor:pointer;"><input type="radio" name="AREGIONA" id="uka" value="1" style="visibility:hidden; display:none;" title="United Kingdom">
                                <label for="uka"><b>United Kingdom</b></label></span>
                              <span class="radioEUR switchEUR-001 ga-trip7" id="euro" style="cursor:pointer;"><input type="radio" name="AREGIONA" id="euro" value="2" style="visibility:hidden; display:none;" title="Europe">
                                <label for="euro"><b>Europe</b></label></span>
                              <div class="radioWWX switchWWX-001 ga-trip8" id="wwx" style="cursor:pointer;">
                                <div class="radioAnnualFloat1"><input type="radio" name="AREGIONA" id="wwx" value="4" style="visibility:hidden;" title="Worldwide excluding USA, Mexico, Canada and Caribbean"></div>
                                <div class="radioAnnualFloat2"><label for="wwx"><b>Worldwide</b>
                                    <div style="font-size:13px; line-height: 20px;"> excluding USA, Mexico, Canada and Caribbean</div>
                                  </label></div>
                              </div>
                              <div class="radioWWI switchWWI-001 ga-trip9" id="wwi" style="cursor:pointer;">
                                <div><input type="radio" name="AREGIONA" id="wwi" value="5" style="visibility:hidden;" title="Worldwide"></div>
                                <div style="margin-top:8px;"><label for="wwi"><b>Worldwide</b></label></div>
                              </div>
                            </div>
                          </fieldset>
                          <div id="annRegionCheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                        </div> <!-- end whitebox -->
                      </div> <!-- end showAnnual -->
                      <div class="clearBoth"></div>
                      <div class="section_gap"></div>
                      <!-- Alpha only -->
                      <script>
                        // copyright 1999 Idocs, Inc. http://www.idocs.com
                        // Distribute this script freely but keep this notice in place
                        function letternumber(e) {
                          var key;
                          var keychar;
                          if (window.event) key = window.event.keyCode;
                          else if (e) key = e.which;
                          else return true;
                          keychar = String.fromCharCode(key);
                          keychar = keychar.toLowerCase();
                          // control keys
                          if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) return true;
                          // alphas and numbers
                          else if ((("abcdefghijklmnopqrstuvwxyz '-").indexOf(keychar) > -1)) return true;
                          else return false;
                        }

                        function letternumber2(e) {
                          var key;
                          var keychar;
                          if (window.event) key = window.event.keyCode;
                          else if (e) key = e.which;
                          else return true;
                          keychar = String.fromCharCode(key);
                          keychar = keychar.toLowerCase();
                          // control keys
                          if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) return true;
                          // alphas and numbers
                          else if ((("abcdefghijklmnopqrstuvwxyz1234567890").indexOf(keychar) > -1)) return true;
                          else return false;
                        }
                        $(document).ready(function(event) {
                          $("#errordivfordobcoupleu18").hide();
                          $("#dob").hide();
                        });
                        $(document).on('click', function(e) {
                          if ($(e.target).closest('#HelpTxtTravs1').length) {
                            $("#TravsHelp").show();
                            $("#HelpTxtTravs1").hide();
                            $("#HelpTxtTravs2").show();
                          } else if (!$(e.target).closest('#TravsHelp').length) {
                            $('#TravsHelp').hide();
                            $("#HelpTxtTravs1").show();
                            $("#HelpTxtTravs2").hide();
                          }
                        });
                        $(document).on('click', function(e) {
                          if ($(e.target).closest('#HelpTxtTravs1').length) {
                            $("#TravsHelp").show();
                            $("#HelpTxtTravs1").hide();
                            $("#HelpTxtTravs2").show();
                          } else if (!$(e.target).closest('#TravsHelp').length) {
                            $('#TravsHelp').hide();
                            $("#HelpTxtTravs1").show();
                            $("#HelpTxtTravs2").hide();
                          }
                        });
                        $(document).on('click', function(e) {
                          if ($(e.target).closest('#HelpTxtPriv1 ').length) {
                            $("#privacy").show();
                            $("#HelpTxtPriv1").hide();
                            $("#HelpTxtPriv2").show();
                          } else if (!$(e.target).closest('#privacy').length) {
                            $('#privacy').hide();
                            $("#HelpTxtPriv1").show();
                            $("#HelpTxtPriv2").hide();
                          }
                        });
                        $(".phoneInput").keydown(function(event) {
                          if (event.keyCode == 190 || event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 || (event.keyCode == 65 && event.ctrlKey === true) || (event.keyCode >= 35 &&
                              event.keyCode <= 39)) {
                            if (event.keyCode == 190) {
                              if ($(this).val().indexOf('.') != -1) {
                                event.preventDefault();
                              }
                            }
                            return;
                          } else {
                            if (event.shiftKey || (event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105)) {
                              event.preventDefault();
                            }
                          }
                        });
                      </script>
                      <!-- do not allow first char to be blank -->
                      <script>
                        $(function() {
                          $('body').on('keydown', 'input', function(e) {
                            if (e.which === 32 && e.target.selectionStart === 0) {
                              return false;
                            }
                          });
                        });
                        $(document).ready(function() {
                          var baseYear = 1900;
                          var fullYear = new Date().getFullYear();
                          // Set min and max for year inputs for all travelers
                          for (var i = 1; i <= 10; i++) {
                            $('#doby' + i).attr('min', baseYear);
                            $('#doby' + i).attr('max', fullYear);
                          }
                          // Function to validate input (day, month, and year)
                          function validateInput(input) {
                            const value = parseInt(input.value);
                            const min = parseInt($(input).attr('min'));
                            const max = parseInt($(input).attr('max'));
                            // Validate if the value is within the min/max range
                            if (value < min || value > max || isNaN(value)) {
                              input.style.setProperty('border-color', 'red', 'important');
                            } else {
                              input.style.setProperty('border-color', '', 'important');
                            }
                          }
                          // Format day and month inputs to always be two digits
                          function formatTwoDigits(input) {
                            if (input.value.length === 1) {
                              input.value = '0' + input.value;
                            }
                          }
                          // Function to check if the full date is valid and the user is over 100 years old
                          function checkFullDate(travelerIndex) {
                            const day = parseInt($('#dobd' + travelerIndex).val());
                            const month = parseInt($('#dobm' + travelerIndex).val());
                            const year = parseInt($('#doby' + travelerIndex).val());
                            if (isNaN(day) || isNaN(month) || isNaN(year)) {
                              return; // Exit if any part of the date is missing or invalid
                            }
                            const userDOB = new Date(year, month - 1, day);
                            const currentDate = new Date();
                            // Calculate the age in years
                            let age = currentDate.getFullYear() - userDOB.getFullYear();
                            // Adjust the age if the user's birthday hasn't occurred yet this year
                            if (currentDate.getMonth() < userDOB.getMonth() || (currentDate.getMonth() === userDOB.getMonth() && currentDate.getDate() < userDOB.getDate())) {
                              age--;
                            }
                            // Show notification if the user is over 100 years old
                            if (age >= 100 && age < 150) {
                              $('#over-100-error-' + travelerIndex).show();
                              $('#dobd' + travelerIndex)[0].style.setProperty('border-color', 'red', 'important');
                              $('#dobm' + travelerIndex)[0].style.setProperty('border-color', 'red', 'important');
                              $('#doby' + travelerIndex)[0].style.setProperty('border-color', 'red', 'important');
                            } else if (age < 0 || age > 150) {
                              $('#dobd' + travelerIndex)[0].style.setProperty('border-color', 'red', 'important');
                              $('#dobm' + travelerIndex)[0].style.setProperty('border-color', 'red', 'important');
                              $('#doby' + travelerIndex)[0].style.setProperty('border-color', 'red', 'important');
                            } else {
                              $('#over-100-error-' + travelerIndex).hide();
                              $('#dobd' + travelerIndex)[0].style.setProperty('border-color', '', 'important');
                              $('#dobm' + travelerIndex)[0].style.setProperty('border-color', '', 'important');
                              $('#doby' + travelerIndex)[0].style.setProperty('border-color', '', 'important');
                            }
                          }
                          // Use jQuery to handle focusout events for day, month, and year fields for all travelers
                          $(document).on('focusout', function(e) {
                            for (var i = 1; i <= 10; i++) {
                              if ($(e.target).is('#dobd' + i)) {
                                validateInput($('#dobd' + i)[0]);
                                formatTwoDigits($('#dobd' + i)[0]);
                                checkFullDate(i);
                              } else if ($(e.target).is('#dobm' + i)) {
                                validateInput($('#dobm' + i)[0]);
                                formatTwoDigits($('#dobm' + i)[0]);
                                checkFullDate(i);
                              } else if ($(e.target).is('#doby' + i)) {
                                validateInput($('#doby' + i)[0]);
                                checkFullDate(i);
                              }
                            }
                          });
                        });
                      </script>
                      <style>
                        .traveller-Highlight-Box {
                          background: #eee;
                          padding: 0 0 20px 0;
                          margin: 15px 0 15px 0;
                          width: 100%;
                        }
                      </style>
                      <input id="travNumberHidden" name="travNumberHidden" type="hidden" value="1">
                      <div class="showTravellersICFG">
                        <div class="singleFloat1">
                          <h2>Who would you like the insurance to cover? <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtTravs1" class="questionClear">
                              <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                              <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                            </svg>
                            <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" id="HelpTxtTravs2" class="questionClear" style="display: none;">
                              <path fill="#282828" d="M16 0a16 16 0 1016 16A16 16 0 0016 0zm0 30a14 14 0 1114-14 14 14 0 01-14 14z"></path>
                              <path fill="#282828" d="M15.89 20.32a1.58 1.58 0 00-1.14.46 1.5 1.5 0 00-.47 1.1 1.32 1.32 0 00.13.6 1.57 1.57 0 00.35.48 1.72
1.72 0 00.51.33 1.63 1.63 0 00.62.12 1.55 1.55 0 001.11-.47 1.48 1.48 0 00.47-1.1 1.4 1.4 0 00-.47-1.08 1.59 1.59 0 00-1.11-.44zM19.11
9.71A4.31 4.31 0 0017.74 9a5.15 5.15 0 00-1.63-.25 5.41 5.41 0 00-1.73.25 4.48 4.48 0 00-1.38.78 4.28 4.28 0 00-1 1.28 5 5 0 00-.51
1.71l2.41.23a2.71 2.71 0 01.16-.78 1.92 1.92 0 01.41-.67 2.09 2.09 0 01.64-.46 1.91 1.91 0 01.84-.17 1.78 1.78 0 011.39.53 1.84 1.84 0
01.49 1.31 1.88 1.88 0 01-.27 1 3.91 3.91 0 01-.65.76l-.9.86a5.39 5.39 0 00-.63.68 3.05 3.05 0 00-.63 1.39 5.44 5.44 0 00-.07.86v.76h2.37v-.52a3.88
3.88 0 01.06-.74 1.8 1.8 0 01.21-.56 2.68 2.68 0 01.4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 00.63-.77 3.35 3.35 0 00.4-.88 4.2 4.2 0 00.14-1.13
3.79 3.79 0 00-.38-1.64 3.64 3.64 0 00-.89-1.22z"></path>
                            </svg>
                            <div class="helptext" id="TravsHelp" style="display: none;"><strong>Who would you like the insurance to cover?</strong>
                              <br> This question is based on the people you want insured under this policy. <br>
                              <strong>Couple:</strong> 2 people living at the same address <br>
                              <strong>Family:</strong> Up to 2 adults with at least one child (under the age of 18) <br>
                              <strong>Group:</strong> Up to ten travellers and not necessarily related (extended family and friends etc). At least one traveller should be an adult
                            </div>
                          </h2>
                        </div>
                        <div id="whiteBox">
                          <div class="travsCont">
                            <fieldset>
                              <legend></legend>
                              <div class="clearBoth"></div>
                              <div class="traveller-box-001 switch2-001 first c_individual ga-trip20">
                                <input type="radio" name="ATRVTY" id="I" value="I" class="css-radio-001-indiv">
                                <label for="I" class="css-label-radio-001-indiv  radGroup1">
                                  <div class="unselected"></div>
                                  <div class="selected"></div>
                                  <div class="select_box_name css-radio-001-indiv ga-trip20">Individual </div>
                                </label>
                              </div>
                              <div class="traveller-box-001 switch2-001 c_couple ga-trip21">
                                <input type="radio" name="ATRVTY" id="C" value="C" class="css-radio-001-couple">
                                <label for="C" class="css-label-radio-001-couple radGroup1">
                                  <div class="unselected"></div>
                                  <div class="selected"></div>
                                  <div class="select_box_name css-radio-001-couple ga-trip21">Couple </div>
                                </label>
                              </div>
                              <div class="traveller-box-001 switch2-001 c_family ga-trip22">
                                <input type="radio" name="ATRVTY" id="F" value="F" class="css-radio-001-family">
                                <label for="F" class="css-label-radio-001-family radGroup1">
                                  <div class="unselected"></div>
                                  <div class="selected"></div>
                                  <div class="select_box_name css-radio-001-family ga-trip22">Family </div>
                                </label>
                              </div>
                              <div class="traveller-box-001 switch2-001 c_group ga-trip23">
                                <input type="radio" name="ATRVTY" id="G" value="G" class="css-radio-001-group">
                                <label for="G" class="css-label-radio-001-group radGroup1">
                                  <div class="unselected"></div>
                                  <div class="selected"></div>
                                  <div class="select_box_name css-radio-001-group ga-trip23">Group </div>
                                </label>
                              </div>
                              <div class="clearBoth"></div>
                            </fieldset>
                          </div>
                          <div id="travsCheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                        </div><!-- end whiteBox -->
                        <div class="clearBoth"></div>
                        <div class="section_gap"></div>
                        <div id="whiteBox">
                          <div>
                            <div class="css-radio-001-show-numTravSelect2to7" style="display: none;">
                              <h3>Select the number of travellers</h3>
                              <select size="1" name="MQ_TRAVNO" class="numberofTravsFamily">
                                <option id="" value="">Please select</option>
                                <option id="2" value="2">2</option>
                                <option id="3" value="3">3</option>
                                <option id="4" value="4">4</option>
                                <option id="5" value="5">5</option>
                                <option id="6" value="6">6</option>
                                <option id="7" value="7">7</option>
                              </select>
                            </div>
                          </div>
                        </div><!-- end whiteBox -->
                        <div id="whiteBox">
                          <div class="css-radio-001-show-numTravSelect2to10" style="display: none;">
                            <h3><label for="noofgroup">Select the number of travellers</label></h3>
                            <select size="1" name="MQ_TRAVNO" class="numberofTravsGroup" id="noofgroup">
                              <option id="" value="">Please select</option>
                              <option id="2a" value="2">2</option>
                              <option id="3a" value="3">3</option>
                              <option id="4a" value="4">4</option>
                              <option id="5a" value="5">5</option>
                              <option id="6a" value="6">6</option>
                              <option id="7a" value="7">7</option>
                              <option id="8a" value="8">8</option>
                              <option id="9a" value="9">9</option>
                              <option id="10a" value="10">10</option>
                            </select>
                          </div>
                          <div class="clearBoth"></div>
                          <div id="travellersBox" style="display: none;">
                            <div class="css-radio-001-show-1trav" id="trav1div" style="">
                              <div class="css-radio-001-show-1trav" style="">
                                <div class="clearBoth"></div>
                                <div class="errorText3 ga-error-11" style="display: none;" id="errordivforUnder18">At least one traveller must be under 18</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivforOneTravUnder18">At least one traveller must be over 18 years old</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3 ga-error-12" style="display: none;" id="errordivforTwoTravUnder18">Only two travellers can be over 18</div>
                                <div class="clearBoth"></div>
                                <h3>Main Traveller</h3>
                                <div class="clearBoth"></div>
                                <h3 class="titleH3">What is your title?</h3>
                                <div class="clearBoth"></div>
                                <div>
                                  <div class="titleCont">
                                    <div class="titleBox titleSwitch1 title1Mr titleBox1" id="titleMr1" onclick="title1Mr()">Mr</div>
                                    <div class="titleBox titleSwitch1 title1Mrs titleBox1" id="titleMrs1" onclick="title1Mrs()">Mrs</div>
                                    <div class="titleBox titleSwitch1 title1Miss titleBox1" id="titleMiss1" onclick="title1Miss()">Miss</div>
                                    <div class="titleBox titleSwitch1 title1Ms titleBox1" id="titleMs1" onclick="title1Ms()">Ms</div>
                                    <div class="titleBox titleSwitch1 title1Mx titleBox1" id="titleMx1" onclick="title1Mx()">Mx</div>
                                    <div class="titleBox titleSwitch1 title1Dr titleBox1" id="titleDr1" onclick="title1Dr()">Dr</div>
                                    <div class="titleBox titleSwitch1 title1Mast titleBox1" id="titleMast1" onclick="title1Mast()" style="display:none;">Master</div>
                                  </div>
                                  <div id="title1CheckMark" class="titleCheckStyle" style="display:none;"> <img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                                </div>
                                <div class="clearBoth"></div>
                                <div class="section_gap"></div>
                                <h3>What is your full name?</h3>
                                <div class="clearBoth"></div>
                                <div class="travContainer">
                                  <div class="travsFirst">
                                    <div class="ctitle"><label for="fname1">
                                        <h3>First Name</h3>
                                      </label></div>
                                    <div><input name="LFNAME01   " id="fname1" type="TEXT" autocomplete="OFF" size="024" maxlength="030" onkeypress="return letternumber(event)"></div>
                                  </div>
                                  <div class="travsFirst">
                                    <div class="ctitle"><label for="sname1">
                                        <h3>Last Name</h3>
                                      </label></div>
                                    <div><input name="LSNAME01   " id="sname1" type="TEXT" autocomplete="OFF" size="024" maxlength="030" onkeypress="return letternumber(event)"></div>
                                  </div>
                                </div>
                                <div id="nametrav1CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivfortrav1Title">Please complete the traveller's title</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivfortrav1Fname">Please complete the traveller's first name</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivfortrav1Sname">Please complete the traveller's surname</div>
                                <div class="clearBoth"></div>
                                <div class="section_gap"></div>
                                <div class="clearBoth"></div>
                                <h3>What is your date of birth? </h3>
                                <div class="clearBoth"></div>
                                <div class="helptext" id="dob" style="display:none;"><strong>Date of birth</strong> <br> If you were born before 1923 please call our contact centre on 0330 400 1675 to obtain a quote. </div>
                                <div class="clearBoth"></div>
                                <div class="clearBoth"></div>
                                <div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>
                                <div class="clearBoth"></div>
                                <div id="over-100-error-1" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">
                                  <p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>
                                  <p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>
                                </div>
                                <div class="pad20"></div>
                                <div class="helptext" id="dob" style="display:none;"><strong>Date of birth</strong> <br> If you were born before 1923 please call our contact centre on 0330 400 1675 to obtain a quote. </div>
                                <div class="clearBoth"></div>
                                <div class="coop-c-form__columns">
                                  <div class="coop-c-form__column"><label class="coop-c-form__label coop-c-form__label--column" for="dobd1">Day</label><input name="DOBD01" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2"
                                      id="dobd1" type="number" min="1" max="31" pattern="/^-?d+.?d*$/" onkeypress="if(this.value.length==2) return false;" size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD"></div>
                                  <div class="coop-c-form__column"><label class="coop-c-form__label coop-c-form__label--column" for="dobm1">Month</label><input name="DOBM01" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2"
                                      id="dobm1" type="number" min="1" max="12" pattern="/^-?d+.?d*$/" onkeypress="if(this.value.length==2) return false;" size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM"></div>
                                  <div class="coop-c-form__column"><label class="coop-c-form__label coop-c-form__label--column" for="doby1">Year</label><input name="DOBY01" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4"
                                      id="doby1" type="number" min="1874" max="2024" pattern="/^-?d+.?d*$/" onkeypress="if(this.value.length==4) return false;" size="024" maxlength="004" autocomplete="OFF" onpaste="return false;" placeholder="YYYY">
                                  </div>
                                </div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivforCoupleUnder18a">Both travellers must be over 18 years old</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivforCoupleUnder18c">Main traveller must be over 18 years old</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivforNotBorn1">Please enter a valid date of birth</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivfortrav1DOB">Please complete the traveller's date of birth</div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivOver65trav1">Unfortunately we cannot offer cover to travellers over 65</div>
                                <div class="clearBoth"></div>
                              </div>
                            </div>
                          </div><!-- all travellers are displayed in this box -->
                          <div class="clearBoth"></div>
                        </div>
                      </div><!-- end whiteBox -->
                      <div id="whiteBox">
                        <div>
                          <div id="travSec" style="display: none;">
                            <script type="text/javascript">
                              var date = new Date();
                              var fullYear = date.getFullYear();
                              var baseYear = fullYear - 150;
                              console.log("baseYear = " + baseYear);
                              var trav1collect = '<div class="css-radio-001-show-1trav" id="trav1div" style="display:none"> \
<div class="css-radio-001-show-1trav" style="display:none"> \
<div class="clearBoth"></div> \
<div class="errorText3 ga-error-11" style="display: none;" id="errordivforUnder18">At least one traveller must be under 18</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforOneTravUnder18">At least one traveller must be over 18 years old</div> \
<div class="clearBoth"></div> \
<div class="errorText3 ga-error-12" style="display: none;" id="errordivforTwoTravUnder18">Only two travellers can be over 18</div> \
<div class="clearBoth"></div> \
<h3>Main Traveller</h3> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is your title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch1 title1Mr titleBox1" id="titleMr1" onclick="title1Mr()">Mr</div> \
<div class="titleBox titleSwitch1 title1Mrs titleBox1" id="titleMrs1" onclick="title1Mrs()">Mrs</div> \
<div class="titleBox titleSwitch1 title1Miss titleBox1" id="titleMiss1" onclick="title1Miss()">Miss</div> \
<div class="titleBox titleSwitch1 title1Ms titleBox1" id="titleMs1" onclick="title1Ms()">Ms</div> \
<div class="titleBox titleSwitch1 title1Mx titleBox1" id="titleMx1" onclick="title1Mx()">Mx</div> \
<div class="titleBox titleSwitch1 title1Dr titleBox1" id="titleDr1" onclick="title1Dr()">Dr</div> \
<div class="titleBox titleSwitch1 title1Mast titleBox1" id="titleMast1" onclick="title1Mast()" style="display:none;">Master</div> \
</div> \
<div id="title1CheckMark" class="titleCheckStyle" style="display:none;"> \
	<img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is your full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname1"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME01   " id="fname1" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname1"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME01   " id="sname1" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav1CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav1Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav1Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav1Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is your date of birth? \
</h3> \
<div class="clearBoth"></div> \
<div class="helptext" id="dob" style="display:none;"><strong>Date of birth</strong> \
<br> \
 \
If you were born before 1923 please call our contact centre on 0330 400 1675 to obtain a quote. \
 \
</div> \
<div class="clearBoth"></div> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-1" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
\
<div class="helptext" id="dob" style="display:none;"><strong>Date of birth</strong> \
<br> \
 \
If you were born before 1923 please call our contact centre on 0330 400 1675 to obtain a quote. \
 \
</div> \
<div class="clearBoth"></div> \
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd1">Day</label>\
<input name="DOBD01" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd1" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm1">Month</label>\
<input name="DOBM01" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm1" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby1">Year</label>\
<input name="DOBY01" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby1" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforCoupleUnder18a">Both travellers must be over 18 years old</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforCoupleUnder18c">Main traveller must be over 18 years old</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn1">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav1DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav1">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div> \
</div> '
                            </script>
                            <div class="clearBoth"></div>
                            <div class="section_gap"></div>
                            <h2>What are your contact details?</h2>
                            <div class="clearBoth"></div>
                            <h3><label for="phoneno">Your phone number</label></h3>
                            <div><input name="WDHTNO  " type="tel" class="phoneN" id="phoneno" onkeypress="return isNumberKey(event)" onpaste="return false;"
                                oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" maxlength="14" onblur="$(this).val($(this).val().replace(/\s/g,''));">
                              <div id="contactNoCheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                            </div>
                            <div class="clearBoth"></div>
                            <div class="errorText3 ga-error-13" style="display: none;" id="errordivphone">Please enter a valid contact number</div>
                            <div class="clearBoth"></div>
                            <h3><label for="email">Email address</label></h3>
                            <div><input name="LWKEMAIL" id="email" type="email" size="024" maxlength="050" autocomplete="OFF" onpaste="return false;" onfocusout="inlineValEmail(this);">
                              <div id="emailCheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                            </div>
                            <div class="clearBoth"></div>
                            <div class="errorText3 ga-error-13" style="display: none;" id="errordivEmail">Please enter a valid email address</div>
                            <div class="clearBoth"></div>
                            <div class="addContainer">
                              <div class="contact2b">
                                <div>
                                  <h3><label for="pcode1">Postcode</label></h3>
                                  <input name="AWDP1CD" autocomplete="new-password" id="pcode1" type="TEXT" size="020" maxlength="008" onkeypress="return letternumber2(event)" placeholder="" onblur="$(this).val($(this).val().replace(/\s/g,''));">
                                  <div class="clearBoth"></div>
                                </div>
                                <div class="travsFloat13">
                                  <div class="findbtn"><a href="#" class="button2 findBtn" id="lookupFullAddress"><span>Find Address</span></a></div>
                                </div>
                                <div class="clearBoth"></div>
                                <div class="errorText3" style="display: none;" id="errordivaddress">Please select find address or enter your address manually</div>
                                <div class="clearBoth"></div>
                                <div id="AddFull" style="display: none;">
                                  <div class="fulladdress-btn"><span style="color:#535353;">Please select your address from the dropdown to confirm your address or manually enter your address below</span></div>
                                  <div class="clearBoth"></div>
                                  <div class="pad20"></div>
                                  <div class="contact2b">
                                    <div id="testfetch"></div>
                                  </div>
                                  <div class="clearBoth"></div>
                                  <div class="pad10"></div>
                                  <div class="contact2b">
                                    <div><label for="houseno">
                                        <h3>House Number/Name</h3>
                                      </label></div>
                                    <input name="WDAD01" id="houseno" type="text" size="024" maxlength="055" autocomplete="OFF" onpaste="return false;">
                                  </div>
                                  <div class="contact2b">
                                    <label for="streetwalker">
                                      <h3>Address Line One</h3>
                                    </label>
                                    <div class="clearBoth"></div>
                                    <input name="streetwalker" autocomplete="new-password" id="streetwalker" type="TEXT" size="024" maxlength="025">
                                  </div>
                                  <div class="contact2b1">
                                    <label for="townwalker">
                                      <h3>Town*</h3>
                                    </label>
                                    <div><input name="townwalker" autocomplete="new-password" id="townwalker" maxlength="030">
                                    </div>
                                  </div>
                                </div>
                                <div class="clearBoth"></div>
                              </div>
                              <div id="addCheck1Mark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                              <div id="townCheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div>
                              <div class="clearBoth"></div>
                              <div class="section_gap"></div>
                              <script type="text/javascript">
                                var trav2collect = '<div class="css-radio-001-show-2trav" id="trav2div" style="display:none"> \
<div class="section_gap"></div> \
<div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Second traveller details</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the second travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch2 title2Mr titleBox2" id="titleMr2" onclick="title2Mr()">Mr</div> \
<div class="titleBox titleSwitch2 title2Mrs titleBox2" id="titleMrs2" onclick="title2Mrs()">Mrs</div> \
<div class="titleBox titleSwitch2 title2Miss titleBox2" id="titleMiss2" onclick="title2Miss()">Miss</div> \
<div class="titleBox titleSwitch2 title2Ms titleBox2" id="titleMs2" onclick="title2Ms()">Ms</div> \
<div class="titleBox titleSwitch2 title2Mx titleBox2" id="titleMx2" onclick="title2Mx()">Mx</div> \
<div class="titleBox titleSwitch2 title2Dr titleBox2" id="titleDr2" onclick="title2Dr()">Dr</div> \
<div class="titleBox titleSwitch2 title2Mast titleBox2" id="titleMast2" onclick="title2Mast()" style="display:none;">Master</div> \
</div> \
<div id="title2CheckMark" class="titleCheckStyle" style="display:none;"> \
<img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the second travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname2"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME02   " id="fname2" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname2"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME02   " id="sname2" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav2CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav2Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav2Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav2Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the second traveller\'s date of birth?</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-2" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd2">Day</label>\
<input name="DOBD02" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd2" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm2">Month</label>\
<input name="DOBM02" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm2" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby2">Year</label>\
<input name="DOBY02" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby2" type="number" \
min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" \
maxlength="004" autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforCoupleUnder18b">Both travellers must be over 18 years old</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn2">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav2DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav2">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div> \
</div>'
                                var trav3collect = '<div class="css-radio-001-show-3trav" id="trav3div" style="display:none"> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Third Traveller</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the third travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch3 title3Mr titleBox3" id="titleMr3" onclick="title3Mr()">Mr</div> \
<div class="titleBox titleSwitch3 title3Mrs titleBox3" id="titleMrs3" onclick="title3Mrs()">Mrs</div> \
<div class="titleBox titleSwitch3 title3Miss titleBox3" id="titleMiss3" onclick="title3Miss()">Miss</div> \
<div class="titleBox titleSwitch3 title3Ms titleBox3" id="titleMs3" onclick="title3Ms()">Ms</div> \
<div class="titleBox titleSwitch3 title3Mx titleBox3" id="titleMx3" onclick="title3Mx()">Mx</div> \
<div class="titleBox titleSwitch3 title3Dr titleBox3" id="titleDr3" onclick="title3Dr()">Dr</div> \
<div class="titleBox titleSwitch3 title3Mast titleBox3" id="titleMast3" onclick="title3Mast()" style="display:none;">Master</div> \
</div> \
<div id="title3CheckMark" class="titleCheckStyle" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the third travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname3"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME03   " id="fname3" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" \
			MAXLENGTH="030" onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname3"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME03   " id="sname3" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" \
			MAXLENGTH="030"  onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav3CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav3Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav3Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav3Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the third travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-3" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd3">Day</label>\
<input name="DOBD03" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" \
id="dobd3" type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm3">Month</label>\
<input name="DOBM03" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" \
id="dobm3" type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby3">Year</label>\
<input name="DOBY03" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby3" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn3">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav3DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav3">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div>'
                                var trav4collect = '<div class="css-radio-001-show-4trav" id="trav4div" style="display:none"> \
<div class="section_gap"></div> \
<div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Fourth Traveller</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the fourth travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch4 title4Mr titleBox4" id="titleMr4" onclick="title4Mr()">Mr</div> \
<div class="titleBox titleSwitch4 title4Mrs titleBox4" id="titleMrs4" onclick="title4Mrs()">Mrs</div> \
<div class="titleBox titleSwitch4 title4Miss titleBox4" id="titleMiss4" onclick="title4Miss()">Miss</div> \
<div class="titleBox titleSwitch4 title4Ms titleBox4" id="titleMs4" onclick="title4Ms()">Ms</div> \
<div class="titleBox titleSwitch4 title4Mx titleBox4" id="titleMx4" onclick="title4Mx()">Mx</div> \
<div class="titleBox titleSwitch4 title4Dr titleBox4" id="titleDr4" onclick="title4Dr()">Dr</div> \
<div class="titleBox titleSwitch4 title4Mast titleBox4" id="titleMast4" onclick="title4Mast()" style="display:none;">Master</div> \
</div> \
<div id="title4CheckMark" class="titleCheckStyle" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the fourth travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname4"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME04   " id="fname4" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname4"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME04   " id="sname4" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav4CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav4Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav4Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav4Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the fourth travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-4" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd4">Day</label>\
<input name="DOBD04" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd4" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm4">Month</label>\
<input name="DOBM04" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm4" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby4">Year</label>\
<input name="DOBY04" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby4" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn4">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav4DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav4">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div> \
</div>'
                                var trav5collect = '<div class="css-radio-001-show-5trav" id="trav5div" style="display:none"> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Fifth Traveller</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the fifth travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch5 title5Mr titleBox5" id="titleMr5" onclick="title5Mr()">Mr</div> \
<div class="titleBox titleSwitch5 title5Mrs titleBox5" id="titleMrs5" onclick="title5Mrs()">Mrs</div> \
<div class="titleBox titleSwitch5 title5Miss titleBox5" id="titleMiss5" onclick="title5Miss()">Miss</div> \
<div class="titleBox titleSwitch5 title5Ms titleBox5" id="titleMs5" onclick="title5Ms()">Ms</div> \
<div class="titleBox titleSwitch5 title5Mx titleBox5" id="titleMx5" onclick="title5Mx()">Mx</div> \
<div class="titleBox titleSwitch5 title5Dr titleBox5" id="titleDr5" onclick="title5Dr()">Dr</div> \
<div class="titleBox titleSwitch5 title5Mast titleBox5" id="titleMast5" onclick="title5Mast()" style="display:none;">Master</div> \
</div> \
<div id="title5CheckMark" class="titleCheckStyle" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the fifth travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname5"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME05   " id="fname5" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname5"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME05   " id="sname5" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav5CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav5Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav5Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav5Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the fifth travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-5" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd5">Day</label>\
<input name="DOBD05" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" \
id="dobd5" type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm5">Month</label>\
<input name="DOBM05" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm5" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby5">Year</label>\
<input name="DOBY05" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby5" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn5">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav5DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav5">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div>'
                                var trav6collect = '<div class="css-radio-001-show-6trav" id="trav6div" style="display:none"> \
<div class="section_gap"></div> \
<div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Sixth Traveller</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the sixth travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch6 title6Mr titleBox6" id="titleMr6" onclick="title6Mr()">Mr</div> \
<div class="titleBox titleSwitch6 title6Mrs titleBox6" id="titleMrs6" onclick="title6Mrs()">Mrs</div> \
<div class="titleBox titleSwitch6 title6Miss titleBox6" id="titleMiss6" onclick="title6Miss()">Miss</div> \
<div class="titleBox titleSwitch6 title6Ms titleBox6" id="titleMs6" onclick="title6Ms()">Ms</div> \
<div class="titleBox titleSwitch6 title6Mx titleBox6" id="titleMx6" onclick="title6Mx()">Mx</div> \
<div class="titleBox titleSwitch6 title6Dr titleBox6" id="titleDr6" onclick="title6Dr()">Dr</div> \
<div class="titleBox titleSwitch6 title6Mast titleBox6" id="titleMast6" onclick="title6Mast()" style="display:none;">Master</div> \
</div> \
<div id="title6CheckMark" class="titleCheckStyle" style="display:none;"> \
<img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the sixth travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname6"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME06   " id="fname6" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname6"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME06   " id="sname6" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav6CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav6Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav6Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav6Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the sixth travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-6" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd6">Day</label>\
<input name="DOBD06" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd6" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm6">Month</label>\
<input name="DOBM06" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm6" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby6">Year</label>\
<input name="DOBY06" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby6" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn6">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav6DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav6">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div> \
</div>'
                                var trav7collect = '<div class="css-radio-001-show-7trav" id="trav7div" style="display:none"> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Seventh Traveller</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the seventh travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch7 title7Mr titleBox7" id="titleMr7" onclick="title7Mr()">Mr</div> \
<div class="titleBox titleSwitch7 title7Mrs titleBox7" id="titleMrs7" onclick="title7Mrs()">Mrs</div> \
<div class="titleBox titleSwitch7 title7Miss titleBox7" id="titleMiss7" onclick="title7Miss()">Miss</div> \
<div class="titleBox titleSwitch7 title7Ms titleBox7" id="titleMs7" onclick="title7Ms()">Ms</div> \
<div class="titleBox titleSwitch7 title7Mx titleBox7" id="titleMx7" onclick="title7Mx()">Mx</div> \
<div class="titleBox titleSwitch7 title7Dr titleBox7" id="titleDr7" onclick="title7Dr()">Dr</div> \
<div class="titleBox titleSwitch7 title7Mast titleBox7" id="titleMast7" onclick="title7Mast()" style="display:none;">Master</div> \
</div> \
<div id="title7CheckMark" class="titleCheckStyle" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the seventh travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname7"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME07   " id="fname7" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname7"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME07   " id="sname7" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav7CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav7Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav7Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav7Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the seventh travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-7" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd7">Day</label>\
<input name="DOBD07" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd7" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm7">Month</label>\
<input name="DOBM07" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm7" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby7">Year</label>\
<input name="DOBY07" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby7" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn7">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav7DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav7">Unfortunately we cannot offer cover to travellers over 75</div> \
<div class="clearBoth"></div>'
                                var trav8collect = '<div class="css-radio-001-show-8trav" id="trav8div" style="display:none"> \
<div class="section_gap"></div> \
<div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Eighth Traveller</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the eighth travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch8 title8Mr titleBox8" id="titleMr8" onclick="title8Mr()">Mr</div> \
<div class="titleBox titleSwitch8 title8Mrs titleBox8" id="titleMrs8" onclick="title8Mrs()">Mrs</div> \
<div class="titleBox titleSwitch8 title8Miss titleBox8" id="titleMiss8" onclick="title8Miss()">Miss</div> \
<div class="titleBox titleSwitch8 title8Ms titleBox8" id="titleMs8" onclick="title8Ms()">Ms</div> \
<div class="titleBox titleSwitch8 title8Mx titleBox8" id="titleMx8" onclick="title8Mx()">Mx</div> \
<div class="titleBox titleSwitch8 title8Dr titleBox8" id="titleDr8" onclick="title8Dr()">Dr</div> \
<div class="titleBox titleSwitch8 title8Mast titleBox8" id="titleMast8" onclick="title8Mast()" style="display:none;">Master</div> \
</div> \
<div id="title8CheckMark" class="titleCheckStyle" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the eighth travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname8"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME08   " id="fname8" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname8"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME08   " id="sname8" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav8CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav8Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav8Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav8Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the eighth travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-8" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd8">Day</label>\
<input name="DOBD08" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd8" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm8">Month</label>\
<input name="DOBM08" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm8" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby8">Year</label>\
<input name="DOBY08" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby8" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav8DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn8">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav8">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div> \
</div>'
                                var trav9collect = '<div class="css-radio-001-show-9trav" id="trav9div" style="display:none"> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Ninth Traveller</h3></div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the ninth travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch9 title9Mr titleBox9" id="titleMr9" onclick="title9Mr()">Mr</div> \
<div class="titleBox titleSwitch9 title9Mrs titleBox9" id="titleMrs9" onclick="title9Mrs()">Mrs</div> \
<div class="titleBox titleSwitch9 title9Miss titleBox9" id="titleMiss9" onclick="title9Miss()">Miss</div> \
<div class="titleBox titleSwitch9 title9Ms titleBox9" id="titleMs9" onclick="title9Ms()">Ms</div> \
<div class="titleBox titleSwitch9 title9Mx titleBox9" id="titleMx9" onclick="title9Mx()">Mx</div> \
<div class="titleBox titleSwitch9 title9Dr titleBox9" id="titleDr9" onclick="title9Dr()">Dr</div> \
<div class="titleBox titleSwitch9 title9Mast titleBox9" id="titleMast9" onclick="title9Mast()" style="display:none;">Master</div> \
</div> \
<div id="title9CheckMark" class="titleCheckStyle" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the ninth travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname9"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME09   " id="fname9" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname9"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME09   " id="sname9" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav9CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav9Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav9Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav9Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the ninth travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div id="over-100-error-9" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd9">Day</label>\
<input name="DOBD09" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd9" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm9">Month</label>\
<input name="DOBM09" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm9" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby9">Year</label>\
<input name="DOBY09" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby9" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn9">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav9DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivOver65trav9">Unfortunately we cannot offer cover to travellers over 65</div> \
<div class="clearBoth"></div>'
                                var trav10collect = '<div class="css-radio-001-show-10trav" id="trav10div" style="display:none"> \
<div class="section_gap"></div> \
<div> \
<div class="clearBoth"></div> \
<div class="travNumber001"><h3>Tenth Traveller</h3></div> \
<div class="clearBoth"></div> \
<h3 class="titleH3">What is the tenth travellers title?</h3> \
<div class="clearBoth"></div> \
<div><div class="titleCont"> \
<div class="titleBox titleSwitch10 title10Mr titleBox1" id="titleMr10" onclick="title10Mr()">Mr</div> \
<div class="titleBox titleSwitch10 title10Mrs titleBox1" id="titleMrs10" onclick="title10Mrs()">Mrs</div> \
<div class="titleBox titleSwitch10 title10Miss titleBox1" id="titleMiss10" onclick="title10Miss()">Miss</div> \
<div class="titleBox titleSwitch10 title10Ms titleBox1" id="titleMs10" onclick="title10Ms()">Ms</div> \
<div class="titleBox titleSwitch10 title10Mx titleBox10" id="titleMx10" onclick="title10Mx()">Mx</div> \
<div class="titleBox titleSwitch10 title10Dr titleBox1" id="titleDr10" onclick="title10Dr()">Dr</div> \
<div class="titleBox titleSwitch10 title10Mast titleBox1" id="titleMast10" onclick="title10Mast()" style="display:none;">Master</div> \
</div> \
<div id="title10CheckMark" class="titleCheckStyle" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28"></div> \
</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<h3>What is the tenth travellers full name?</h3> \
<div class="clearBoth"></div> \
<div class="travContainer"> \
<div class="travsFirst"> \
<div class="ctitle"><label for="fname10"><h3>First Name</h3></label></div> \
<div><INPUT NAME="LFNAME10   " id="fname10" TYPE="TEXT" AUTOCOMPLETE="OFF"  SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
<div class="travsFirst"> \
<div class="ctitle"><label for="sname10"><h3>Last Name</h3></label></div> \
<div><INPUT NAME="LSNAME10   " id="sname10" TYPE="TEXT" AUTOCOMPLETE="OFF" SIZE="024" MAXLENGTH="030" \
onKeyPress="return letternumber(event)" ></div> \
</div> \
</div> \
<div id="nametrav10CheckMark" style="display:none;"><img src="/images/alc/iag001_check.svg" width="28" height="28" /></div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav10Title">Please complete the traveller&#39;s title</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav10Fname">Please complete the traveller&#39;s first name</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav10Sname">Please complete the traveller&#39;s surname</div> \
<div class="clearBoth"></div> \
<div class="section_gap"></div> \
<div class="clearBoth"></div> \
<h3>What is the tenth travellers date of birth?\</h3> \
<div class="clearBoth"></div> \
<div class="coop-c-text coop-c-text--lightgrey">Your date of birth will help us to calculate your quote</div>\
<div class="clearBoth"></div> \
<div class="dobFlex"> \
<div id="over-100-error-10" class="coop-c-notification coop-c-notification--column coop-c-notification--red coop-c-notification--margin-t-15" role="alert" style="display: none;">\
<p class="coop-c-notification__heading">Please call 0330 400 1675 to complete your quote</p>\
<p class="coop-c-notification__text">We need to confirm some extra details as you are over 100 years old.</p>\
</div>\
<div class="pad20" ></div>\
<div class="coop-c-form__columns">\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobd10">Day</label>\
<input name="DOBD010" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobd10" \
type="number" min="1" max="31" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="DD">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="dobm10">Month</label>\
<input name="DOBM010" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-2" id="dobm10" \
type="number" min="1" max="12" pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==2) return false;" \
size="024" maxlength="002" autocomplete="OFF" onpaste="return false;" placeholder="MM">\
</div>\
<div class="coop-c-form__column">\
<label class="coop-c-form__label coop-c-form__label--column" for="doby10">Year</label>\
<input name="DOBY010" class="coop-c-form__field coop-c-form__input coop-c-form__input--width-4" id="doby10" \
type="number" min="' + baseYear + '"  max="' + fullYear + '"\
pattern="/^-?\d+\.?\d*$/" onKeyPress="if(this.value.length==4) return false;" size="024" maxlength="004" \
autocomplete="OFF" onpaste="return false;" placeholder="YYYY">\
</div>\
</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivfortrav10DOB">Please complete the traveller&#39;s date of birth</div> \
<div class="clearBoth"></div> \
<div class="errorText3" style="display: none;" id="errordivforNotBorn10">Please enter a valid date of birth</div> \
<div class="clearBoth"></div> \
</div>'
                                eandp = ''
                              </script>
                              <div class="clearBoth"></div>
                            </div>
                          </div>
                          <!-- showTravellersICFG -->
                          <style>
                            #memberWrap {
                              display: none;
                            }

                            #memberSignup {
                              display: none;
                            }

                            #memberPop1 {
                              margin-top: 0px;
                              clear: both;
                            }
                          </style>
                          <!-- Co-op HTML code Start -->
                          <div class="coop-c-form coop-c-form--endpadding">
                            <h2 class="coop-c-heading">Are you a Co-op Group Member?</h2>
                            <div class="coop-c-notification coop-c-notification--align-centre" role="alert">
                              <svg class="coop-c-notification__logo" xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none">
                                <g clip-path="url(#clip0_909_2024)">
                                  <g filter="url(#filter0_ddd_909_2024)">
                                    <path d="M5.33325 0.585133C5.33325 0.261973 5.59729 0 5.92299 0L26.0768 0C26.4026 0 26.6666 0.261973 26.6666 0.585133V31.4149C26.6666
								 31.738 26.4026 32 26.0768 32H5.92299C5.59729 32 5.33325 31.738 5.33325 31.4149L5.33325 0.585133Z" fill="#00B1E7"></path>
                                  </g>
                                  <g clip-path="url(#clip1_909_2024)">
                                    <path d="M22.9597 6.51037C22.9581 5.97975 22.889 5.45148 22.7539 4.93835C22.6586 4.63205 22.4959 4.35103 22.2776 4.116C22.0593 3.88097
								 21.791 3.69792 21.4926 3.58032C20.2739 3.15227 18.9458 3.15227 17.7272 3.58032C17.4253 3.69225 17.154 3.87342 16.9349
								 4.10928C16.7159 4.34514 16.5552 4.6291 16.4658 4.93835C16.1757 5.96558 16.1757 7.05309 16.4658 8.08032C16.5618 8.3846 16.7242
								 8.66374 16.9412 8.89754C17.1583 9.13134 17.4247 9.31396 17.721 9.43218C18.3241 9.65034 18.9625 9.75499 19.6037 9.74082C20.2434
								 9.7357 20.8785 9.63158 21.4864 9.43218C21.7885 9.32005 22.06 9.13856 22.279 8.90233C22.4981 8.6661 22.6587 8.38172 22.7477
								 8.07209C22.8841 7.56257 22.9553 7.03781 22.9597 6.51037ZM20.9226 6.51037C20.923 6.76649 20.8842 7.02116 20.8074 7.26551C20.7538
								 7.43113 20.6571 7.57954 20.5273 7.69558C20.3975 7.81162 20.2393 7.89114 20.0687 7.926C19.7482 7.98362 19.4201 7.98362 19.0996
								 7.926C18.9275 7.8947 18.7675 7.81644 18.6371 7.69988C18.5068 7.58332 18.4112 7.43299 18.3609 7.26551C18.2066 6.76618 18.2066
								 6.23192 18.3609 5.73259C18.4149 5.56735 18.5117 5.41937 18.6414 5.30371C18.7712 5.18805 18.9293 5.10884 19.0996 5.07415C19.4199
								 5.01449 19.7484 5.01449 20.0687 5.07415C20.24 5.10495 20.3996 5.18228 20.5299 5.29769C20.6601 5.4131 20.7562 5.56213 20.8074
								 5.72847C20.8867 5.98169 20.929 6.24505 20.9329 6.51037H20.9226ZM15.5091 15.0268C15.8012 13.9999 15.8012 12.9118 15.5091 11.8849C15.4145
								 11.5782 15.2519 11.2969 15.0335 11.0617C14.8152 10.8266 14.5466 10.6438 14.2477 10.5268C13.0298 10.0988 11.7023 10.0988 10.4844
								 10.5268C10.182 10.6379 9.91023 10.8188 9.69105 11.0548C9.47186 11.2908 9.31151 11.5752 9.22304 11.8849C8.93086 12.9118 8.93086
								 13.9999 9.22304 15.0268C9.31791 15.3336 9.48051 15.6151 9.69884 15.8505C9.91717 16.0859 10.1856 16.2692 10.4844 16.3869C11.7027
								 16.8128 13.0294 16.8128 14.2477 16.3869C14.5517 16.2782 14.8251 16.0978 15.0446 15.861C15.2642 15.6243 15.4235 15.3382 15.5091
								 15.0268ZM13.686 13.4754C13.6869 13.7324 13.6473 13.9879 13.5687 14.2326C13.5155 14.3979 13.4192 14.546 13.2897 14.6617C13.1603
								 14.7775 13.0023 14.8566 12.8321 14.891C12.5111 14.9507 12.1819 14.9507 11.8609 14.891C11.6893 14.86 11.5296 14.782 11.3996
								 14.6658C11.2696 14.5496 11.1743 14.3996 11.1243 14.2326C10.97 13.7333 10.97 13.199 11.1243 12.6997C11.1781 12.5345 11.2746 12.3865
								 11.4039 12.2705C11.5333 12.1546 11.6909 12.0748 11.8609 12.0392C12.1821 11.9815 12.5109 11.9815 12.8321 12.0392C13.004 12.0702
								 13.164 12.1483 13.2941 12.265C13.4241 12.3816 13.5192 12.5321 13.5687 12.6997C13.6473 12.9507 13.6869 13.2123 13.686 13.4754ZM13.686
								 6.48979H15.723C15.7226 5.96587 15.6534 5.44428 15.5173 4.93835C15.4227 4.63171 15.2602 4.35036 15.0418 4.11524C14.8234 3.88011
								 14.5548 3.69727 14.256 3.58032C13.038 3.15226 11.7105 3.15226 10.4926 3.58032C10.1903 3.69139 9.91846 3.87228 9.69928 4.10826C9.48009
								 4.34425 9.31974 4.62866 9.23127 4.93835C8.93909 5.9653 8.93909 7.05338 9.23127 8.08032C9.32634 8.38473 9.48817 8.66406 9.70496
								 8.89794C9.92175 9.13182 10.188 9.31434 10.4844 9.43218C11.09 9.6408 11.7266 9.74516 12.3671 9.74082C13.0062 9.73591 13.6406 9.63179
								 14.2477 9.43218C14.5498 9.32005 14.8213 9.13856 15.0404 8.90233C15.2594 8.6661 15.42 8.38172 15.5091 8.07209C15.5285 7.98291 15.5532
								 7.89496 15.5831 7.80872L13.6613 6.91777C13.6458 7.03563 13.6203 7.15195 13.5852 7.26551C13.5313 7.43102 13.4346 7.57933 13.3049
								 7.69534C13.1751 7.81135 13.017 7.89094 12.8465 7.926C12.526 7.98362 12.1978 7.98362 11.8774 7.926C11.7053 7.8947 11.5453 7.81644
								 11.4149 7.69988C11.2846 7.58332 11.189 7.43299 11.1387 7.26551C10.9844 6.76618 10.9844 6.23192 11.1387 5.73259C11.1928 5.56709
								 11.2899 5.41893 11.4201 5.30325C11.5502 5.18757 11.7087 5.10851 11.8794 5.07415C12.1997 5.01449 12.5283 5.01449 12.8486 5.07415C13.0202
								 5.1046 13.1802 5.18178 13.3109 5.29721C13.4416 5.41265 13.5379 5.56186 13.5893 5.72847C13.6497 5.97648 13.6821 6.23046 13.686
								 6.48567V6.48979ZM16.4206 11.9013C16.283 12.414 16.2139 12.9425 16.2148 13.4733V18.0742H18.2519V13.4754C18.2499 13.221 18.2867 12.9677
								 18.3609 12.7244C18.4149 12.5591 18.5117 12.4111 18.6414 12.2955C18.7712 12.1798 18.9293 12.1006 19.0996 12.0659C19.4199 12.0063 19.7484
								 12.0063 20.0687 12.0659C20.2405 12.0971 20.4004 12.175 20.5307 12.2912C20.6611 12.4074 20.7568 12.5573 20.8074 12.7244C20.9617 13.2237
								 20.9617 13.7579 20.8074 14.2573C20.7551 14.4201 20.6615 14.5666 20.5356 14.6824C20.4097 14.7982 20.2559 14.8793 20.0893 14.9178C19.7681
								 14.9754 19.4393 14.9754 19.1181 14.9178C19.0605 14.8972 18.9823 14.8787 18.9247 14.8602L19.6222 16.7614C20.2621 16.756 20.8973 16.6512
								 21.5049 16.4507C21.8073 16.3396 22.0791 16.1587 22.2983 15.9228C22.5174 15.6868 22.6778 15.4024 22.7663 15.0927C23.0584 14.065 23.0584
								 12.9763 22.7663 11.9486C22.6717 11.642 22.5091 11.3606 22.2907 11.1255C22.0724 10.8904 21.8038 10.7076 21.5049 10.5906C20.287 10.1626
								 18.9595 10.1626 17.7416 10.5906C17.4299 10.6823 17.1459 10.8501 16.9153 11.0789C16.6847 11.3077 16.5147 11.5904 16.4206 11.9013Z" fill="white"></path>
                                  </g>
                                </g>
                                <defs>
                                  <filter id="filter0_ddd_909_2024" x="-4.66675" y="-9" width="41.3333" height="52" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
                                    <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood>
                                    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                    <feOffset dy="2"></feOffset>
                                    <feGaussianBlur stdDeviation="2"></feGaussianBlur>
                                    <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.05 0"></feColorMatrix>
                                    <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_909_2024"></feBlend>
                                    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                    <feOffset dy="1"></feOffset>
                                    <feGaussianBlur stdDeviation="5"></feGaussianBlur>
                                    <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.04 0"></feColorMatrix>
                                    <feBlend mode="normal" in2="effect1_dropShadow_909_2024" result="effect2_dropShadow_909_2024"></feBlend>
                                    <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                    <feOffset dy="4"></feOffset>
                                    <feGaussianBlur stdDeviation="2.5"></feGaussianBlur>
                                    <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.02 0"></feColorMatrix>
                                    <feBlend mode="normal" in2="effect2_dropShadow_909_2024" result="effect3_dropShadow_909_2024"></feBlend>
                                    <feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow_909_2024" result="shape"></feBlend>
                                  </filter>
                                  <clipPath id="clip0_909_2024">
                                    <rect width="32" height="32" fill="white"></rect>
                                  </clipPath>
                                  <clipPath id="clip1_909_2024">
                                    <rect width="14.8148" height="14.8148" fill="white" transform="translate(8.59229 3.25928)"></rect>
                                  </clipPath>
                                </defs>
                              </svg>
                              <p class="coop-c-notification__heading--weight500"><a class="coop-c-notification--link" href="https://www.coop.co.uk/membership" target="_blank">Co-op
				Members</a> get an exclusive discount</p>
                            </div>
                            <div>
                              <div class="coop-c-form__row">
                                <input type="radio" id="memberBoxY" class="coop-c-form__radio-button" name="memberInput">
                                <label class="coop-c-form__label" for="memberBoxY">Yes</label>
                              </div>
                              <div class="coop-c-form__row">
                                <input type="radio" id="memberBoxN" class="coop-c-form__radio-button" name="memberInput">
                                <label class="coop-c-form__label" for="memberBoxN">No</label>
                              </div>
                            </div>
                          </div>
                          <div class="coop-c-form coop-c-form--endpadding" id="memberWrap">
                            <h2 class="coop-c-heading">Co-op Membership number</h2>
                            <p class="coop-c-description">You can find your 18 digit number on the back of your membership card or in the app.</p>
                            <div style="display: none;" id="memberPop1">
                              <p class="coop-c-description" style="color: red; margin: 0;">Enter a valid Co-op Group Membership Number</p>
                              <div class="clearBoth"></div>
                            </div>
                            <div class="coop-c-form__row">
                              <div class="coop-c-form__membership" id="memberInput">
                                <div class="coop-c-form__membership__prefix">
                                  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32" fill="none">
                                    <g clip-path="url(#clip0_909_2024)">
                                      <g filter="url(#filter0_ddd_909_2024)">
                                        <path d="M5.33325 0.585133C5.33325 0.261973 5.59729 0 5.92299 0L26.0768 0C26.4026 0 26.6666 0.261973 26.6666 0.585133V31.4149C26.6666
										 31.738 26.4026 32 26.0768 32H5.92299C5.59729 32 5.33325 31.738 5.33325 31.4149L5.33325 0.585133Z" fill="#00B1E7"></path>
                                      </g>
                                      <g clip-path="url(#clip1_909_2024)">
                                        <path d="M22.9597 6.51037C22.9581 5.97975 22.889 5.45148 22.7539 4.93835C22.6586 4.63205 22.4959 4.35103 22.2776 4.116C22.0593 3.88097
										 21.791 3.69792 21.4926 3.58032C20.2739 3.15227 18.9458 3.15227 17.7272 3.58032C17.4253 3.69225 17.154 3.87342 16.9349
										 4.10928C16.7159 4.34514 16.5552 4.6291 16.4658 4.93835C16.1757 5.96558 16.1757 7.05309 16.4658 8.08032C16.5618 8.3846 16.7242
										 8.66374 16.9412 8.89754C17.1583 9.13134 17.4247 9.31396 17.721 9.43218C18.3241 9.65034 18.9625 9.75499 19.6037 9.74082C20.2434
										 9.7357 20.8785 9.63158 21.4864 9.43218C21.7885 9.32005 22.06 9.13856 22.279 8.90233C22.4981 8.6661 22.6587 8.38172 22.7477
										 8.07209C22.8841 7.56257 22.9553 7.03781 22.9597 6.51037ZM20.9226 6.51037C20.923 6.76649 20.8842 7.02116 20.8074 7.26551C20.7538
										 7.43113 20.6571 7.57954 20.5273 7.69558C20.3975 7.81162 20.2393 7.89114 20.0687 7.926C19.7482 7.98362 19.4201 7.98362 19.0996
										 7.926C18.9275 7.8947 18.7675 7.81644 18.6371 7.69988C18.5068 7.58332 18.4112 7.43299 18.3609 7.26551C18.2066 6.76618 18.2066
										 6.23192 18.3609 5.73259C18.4149 5.56735 18.5117 5.41937 18.6414 5.30371C18.7712 5.18805 18.9293 5.10884 19.0996 5.07415C19.4199
										 5.01449 19.7484 5.01449 20.0687 5.07415C20.24 5.10495 20.3996 5.18228 20.5299 5.29769C20.6601 5.4131 20.7562 5.56213 20.8074
										 5.72847C20.8867 5.98169 20.929 6.24505 20.9329 6.51037H20.9226ZM15.5091 15.0268C15.8012 13.9999 15.8012 12.9118 15.5091
										 11.8849C15.4145 11.5782 15.2519 11.2969 15.0335 11.0617C14.8152 10.8266 14.5466 10.6438 14.2477 10.5268C13.0298 10.0988 11.7023
										 10.0988 10.4844 10.5268C10.182 10.6379 9.91023 10.8188 9.69105 11.0548C9.47186 11.2908 9.31151 11.5752 9.22304 11.8849C8.93086
										 12.9118 8.93086 13.9999 9.22304 15.0268C9.31791 15.3336 9.48051 15.6151 9.69884 15.8505C9.91717 16.0859 10.1856 16.2692 10.4844
										 16.3869C11.7027 16.8128 13.0294 16.8128 14.2477 16.3869C14.5517 16.2782 14.8251 16.0978 15.0446 15.861C15.2642 15.6243 15.4235
										 15.3382 15.5091 15.0268ZM13.686 13.4754C13.6869 13.7324 13.6473 13.9879 13.5687 14.2326C13.5155 14.3979 13.4192 14.546 13.2897
										 14.6617C13.1603 14.7775 13.0023 14.8566 12.8321 14.891C12.5111 14.9507 12.1819 14.9507 11.8609 14.891C11.6893 14.86 11.5296 14.782
										 11.3996 14.6658C11.2696 14.5496 11.1743 14.3996 11.1243 14.2326C10.97 13.7333 10.97 13.199 11.1243 12.6997C11.1781 12.5345 11.2746
										 12.3865 11.4039 12.2705C11.5333 12.1546 11.6909 12.0748 11.8609 12.0392C12.1821 11.9815 12.5109 11.9815 12.8321 12.0392C13.004
										 12.0702 13.164 12.1483 13.2941 12.265C13.4241 12.3816 13.5192 12.5321 13.5687 12.6997C13.6473 12.9507 13.6869 13.2123 13.686
										 13.4754ZM13.686 6.48979H15.723C15.7226 5.96587 15.6534 5.44428 15.5173 4.93835C15.4227 4.63171 15.2602 4.35036 15.0418
										 4.11524C14.8234 3.88011 14.5548 3.69727 14.256 3.58032C13.038 3.15226 11.7105 3.15226 10.4926 3.58032C10.1903 3.69139 9.91846
										 3.87228 9.69928 4.10826C9.48009 4.34425 9.31974 4.62866 9.23127 4.93835C8.93909 5.9653 8.93909 7.05338 9.23127 8.08032C9.32634
										 8.38473 9.48817 8.66406 9.70496 8.89794C9.92175 9.13182 10.188 9.31434 10.4844 9.43218C11.09 9.6408 11.7266 9.74516 12.3671
										 9.74082C13.0062 9.73591 13.6406 9.63179 14.2477 9.43218C14.5498 9.32005 14.8213 9.13856 15.0404 8.90233C15.2594 8.6661 15.42
										 8.38172 15.5091 8.07209C15.5285 7.98291 15.5532 7.89496 15.5831 7.80872L13.6613 6.91777C13.6458 7.03563 13.6203 7.15195 13.5852
										 7.26551C13.5313 7.43102 13.4346 7.57933 13.3049 7.69534C13.1751 7.81135 13.017 7.89094 12.8465 7.926C12.526 7.98362 12.1978 7.98362
										 11.8774 7.926C11.7053 7.8947 11.5453 7.81644 11.4149 7.69988C11.2846 7.58332 11.189 7.43299 11.1387 7.26551C10.9844 6.76618
										 10.9844 6.23192 11.1387 5.73259C11.1928 5.56709 11.2899 5.41893 11.4201 5.30325C11.5502 5.18757 11.7087 5.10851 11.8794
										 5.07415C12.1997 5.01449 12.5283 5.01449 12.8486 5.07415C13.0202 5.1046 13.1802 5.18178 13.3109 5.29721C13.4416 5.41265 13.5379
										 5.56186 13.5893 5.72847C13.6497 5.97648 13.6821 6.23046 13.686 6.48567V6.48979ZM16.4206 11.9013C16.283 12.414 16.2139 12.9425
										 16.2148 13.4733V18.0742H18.2519V13.4754C18.2499 13.221 18.2867 12.9677 18.3609 12.7244C18.4149 12.5591 18.5117 12.4111 18.6414
										 12.2955C18.7712 12.1798 18.9293 12.1006 19.0996 12.0659C19.4199 12.0063 19.7484 12.0063 20.0687 12.0659C20.2405 12.0971 20.4004
										 12.175 20.5307 12.2912C20.6611 12.4074 20.7568 12.5573 20.8074 12.7244C20.9617 13.2237 20.9617 13.7579 20.8074 14.2573C20.7551
										 14.4201 20.6615 14.5666 20.5356 14.6824C20.4097 14.7982 20.2559 14.8793 20.0893 14.9178C19.7681 14.9754 19.4393 14.9754 19.1181
										 14.9178C19.0605 14.8972 18.9823 14.8787 18.9247 14.8602L19.6222 16.7614C20.2621 16.756 20.8973 16.6512 21.5049 16.4507C21.8073
										 16.3396 22.0791 16.1587 22.2983 15.9228C22.5174 15.6868 22.6778 15.4024 22.7663 15.0927C23.0584 14.065 23.0584 12.9763 22.7663
										 11.9486C22.6717 11.642 22.5091 11.3606 22.2907 11.1255C22.0724 10.8904 21.8038 10.7076 21.5049 10.5906C20.287 10.1626 18.9595
										 10.1626 17.7416 10.5906C17.4299 10.6823 17.1459 10.8501 16.9153 11.0789C16.6847 11.3077 16.5147 11.5904 16.4206 11.9013Z" fill="white"></path>
                                      </g>
                                    </g>
                                    <defs>
                                      <filter id="filter0_ddd_909_2024" x="-4.66675" y="-9" width="41.3333" height="52" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
                                        <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood>
                                        <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                        <feOffset dy="2"></feOffset>
                                        <feGaussianBlur stdDeviation="2"></feGaussianBlur>
                                        <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.05 0"></feColorMatrix>
                                        <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_909_2024"></feBlend>
                                        <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                        <feOffset dy="1"></feOffset>
                                        <feGaussianBlur stdDeviation="5"></feGaussianBlur>
                                        <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.04 0"></feColorMatrix>
                                        <feBlend mode="normal" in2="effect1_dropShadow_909_2024" result="effect2_dropShadow_909_2024"></feBlend>
                                        <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                        <feOffset dy="4"></feOffset>
                                        <feGaussianBlur stdDeviation="2.5"></feGaussianBlur>
                                        <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.02 0"></feColorMatrix>
                                        <feBlend mode="normal" in2="effect2_dropShadow_909_2024" result="effect3_dropShadow_909_2024"></feBlend>
                                        <feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow_909_2024" result="shape"></feBlend>
                                      </filter>
                                      <clipPath id="clip0_909_2024">
                                        <rect width="32" height="32" fill="white"></rect>
                                      </clipPath>
                                      <clipPath id="clip1_909_2024">
                                        <rect width="14.8148" height="14.8148" fill="white" transform="translate(8.59229 3.25928)"></rect>
                                      </clipPath>
                                    </defs>
                                  </svg>
                                  <span> 633174 </span>
                                </div>
                                <input class="coop-c-form__membership__input" name="MEMBERNO" id="memberid" maxlength="14" minlength="14" onfocusout="checkCode();" inputmode="numeric">
                              </div>
                            </div>
                          </div>
                          <div class="coop-c-block coop-c-block--endpadding" id="memberSignup">
                            <div class="coop-c-form">
                              <div>
                                <svg class="coop-c-block__logo" xmlns="http://www.w3.org/2000/svg" width="32" height="42" viewBox="0 0 32 32" fill="none">
                                  <g clip-path="url(#clip0_909_2024)">
                                    <g filter="url(#filter0_ddd_909_2024)">
                                      <path d="M5.33325 0.585133C5.33325 0.261973 5.59729 0 5.92299 0L26.0768 0C26.4026 0 26.6666 0.261973 26.6666
										 0.585133V31.4149C26.6666 31.738 26.4026 32 26.0768 32H5.92299C5.59729 32 5.33325 31.738 5.33325 31.4149L5.33325 0.585133Z" fill="#00B1E7"></path>
                                    </g>
                                    <g clip-path="url(#clip1_909_2024)">
                                      <path d="M22.9597 6.51037C22.9581 5.97975 22.889 5.45148 22.7539 4.93835C22.6586 4.63205 22.4959 4.35103 22.2776 4.116C22.0593 3.88097
										 21.791 3.69792 21.4926 3.58032C20.2739 3.15227 18.9458 3.15227 17.7272 3.58032C17.4253 3.69225 17.154 3.87342 16.9349
										 4.10928C16.7159 4.34514 16.5552 4.6291 16.4658 4.93835C16.1757 5.96558 16.1757 7.05309 16.4658 8.08032C16.5618 8.3846 16.7242
										 8.66374 16.9412 8.89754C17.1583 9.13134 17.4247 9.31396 17.721 9.43218C18.3241 9.65034 18.9625 9.75499 19.6037 9.74082C20.2434
										 9.7357 20.8785 9.63158 21.4864 9.43218C21.7885 9.32005 22.06 9.13856 22.279 8.90233C22.4981 8.6661 22.6587 8.38172 22.7477
										 8.07209C22.8841 7.56257 22.9553 7.03781 22.9597 6.51037ZM20.9226 6.51037C20.923 6.76649 20.8842 7.02116 20.8074 7.26551C20.7538
										 7.43113 20.6571 7.57954 20.5273 7.69558C20.3975 7.81162 20.2393 7.89114 20.0687 7.926C19.7482 7.98362 19.4201 7.98362 19.0996
										 7.926C18.9275 7.8947 18.7675 7.81644 18.6371 7.69988C18.5068 7.58332 18.4112 7.43299 18.3609 7.26551C18.2066 6.76618 18.2066
										 6.23192 18.3609 5.73259C18.4149 5.56735 18.5117 5.41937 18.6414 5.30371C18.7712 5.18805 18.9293 5.10884 19.0996 5.07415C19.4199
										 5.01449 19.7484 5.01449 20.0687 5.07415C20.24 5.10495 20.3996 5.18228 20.5299 5.29769C20.6601 5.4131 20.7562 5.56213 20.8074
										 5.72847C20.8867 5.98169 20.929 6.24505 20.9329 6.51037H20.9226ZM15.5091 15.0268C15.8012 13.9999 15.8012 12.9118 15.5091
										 11.8849C15.4145 11.5782 15.2519 11.2969 15.0335 11.0617C14.8152 10.8266 14.5466 10.6438 14.2477 10.5268C13.0298 10.0988 11.7023
										 10.0988 10.4844 10.5268C10.182 10.6379 9.91023 10.8188 9.69105 11.0548C9.47186 11.2908 9.31151 11.5752 9.22304 11.8849C8.93086
										 12.9118 8.93086 13.9999 9.22304 15.0268C9.31791 15.3336 9.48051 15.6151 9.69884 15.8505C9.91717 16.0859 10.1856 16.2692 10.4844
										 16.3869C11.7027 16.8128 13.0294 16.8128 14.2477 16.3869C14.5517 16.2782 14.8251 16.0978 15.0446 15.861C15.2642 15.6243 15.4235
										 15.3382 15.5091 15.0268ZM13.686 13.4754C13.6869 13.7324 13.6473 13.9879 13.5687 14.2326C13.5155 14.3979 13.4192 14.546 13.2897
										 14.6617C13.1603 14.7775 13.0023 14.8566 12.8321 14.891C12.5111 14.9507 12.1819 14.9507 11.8609 14.891C11.6893 14.86 11.5296 14.782
										 11.3996 14.6658C11.2696 14.5496 11.1743 14.3996 11.1243 14.2326C10.97 13.7333 10.97 13.199 11.1243 12.6997C11.1781 12.5345 11.2746
										 12.3865 11.4039 12.2705C11.5333 12.1546 11.6909 12.0748 11.8609 12.0392C12.1821 11.9815 12.5109 11.9815 12.8321 12.0392C13.004
										 12.0702 13.164 12.1483 13.2941 12.265C13.4241 12.3816 13.5192 12.5321 13.5687 12.6997C13.6473 12.9507 13.6869 13.2123 13.686
										 13.4754ZM13.686 6.48979H15.723C15.7226 5.96587 15.6534 5.44428 15.5173 4.93835C15.4227 4.63171 15.2602 4.35036 15.0418 4.11524C14.8234
										 3.88011 14.5548 3.69727 14.256 3.58032C13.038 3.15226 11.7105 3.15226 10.4926 3.58032C10.1903 3.69139 9.91846 3.87228 9.69928
										 4.10826C9.48009 4.34425 9.31974 4.62866 9.23127 4.93835C8.93909 5.9653 8.93909 7.05338 9.23127 8.08032C9.32634 8.38473 9.48817
										 8.66406 9.70496 8.89794C9.92175 9.13182 10.188 9.31434 10.4844 9.43218C11.09 9.6408 11.7266 9.74516 12.3671 9.74082C13.0062 9.73591
										 13.6406 9.63179 14.2477 9.43218C14.5498 9.32005 14.8213 9.13856 15.0404 8.90233C15.2594 8.6661 15.42 8.38172 15.5091 8.07209C15.5285
										 7.98291 15.5532 7.89496 15.5831 7.80872L13.6613 6.91777C13.6458 7.03563 13.6203 7.15195 13.5852 7.26551C13.5313 7.43102 13.4346
										 7.57933 13.3049 7.69534C13.1751 7.81135 13.017 7.89094 12.8465 7.926C12.526 7.98362 12.1978 7.98362 11.8774 7.926C11.7053 7.8947
										 11.5453 7.81644 11.4149 7.69988C11.2846 7.58332 11.189 7.43299 11.1387 7.26551C10.9844 6.76618 10.9844 6.23192 11.1387 5.73259C11.1928
										 5.56709 11.2899 5.41893 11.4201 5.30325C11.5502 5.18757 11.7087 5.10851 11.8794 5.07415C12.1997 5.01449 12.5283 5.01449 12.8486
										 5.07415C13.0202 5.1046 13.1802 5.18178 13.3109 5.29721C13.4416 5.41265 13.5379 5.56186 13.5893 5.72847C13.6497 5.97648 13.6821
										 6.23046 13.686 6.48567V6.48979ZM16.4206 11.9013C16.283 12.414 16.2139 12.9425 16.2148 13.4733V18.0742H18.2519V13.4754C18.2499
										 13.221 18.2867 12.9677 18.3609 12.7244C18.4149 12.5591 18.5117 12.4111 18.6414 12.2955C18.7712 12.1798 18.9293 12.1006 19.0996
										 12.0659C19.4199 12.0063 19.7484 12.0063 20.0687 12.0659C20.2405 12.0971 20.4004 12.175 20.5307 12.2912C20.6611 12.4074 20.7568
										 12.5573 20.8074 12.7244C20.9617 13.2237 20.9617 13.7579 20.8074 14.2573C20.7551 14.4201 20.6615 14.5666 20.5356 14.6824C20.4097
										 14.7982 20.2559 14.8793 20.0893 14.9178C19.7681 14.9754 19.4393 14.9754 19.1181 14.9178C19.0605 14.8972 18.9823 14.8787 18.9247
										 14.8602L19.6222 16.7614C20.2621 16.756 20.8973 16.6512 21.5049 16.4507C21.8073 16.3396 22.0791 16.1587 22.2983 15.9228C22.5174
										 15.6868 22.6778 15.4024 22.7663 15.0927C23.0584 14.065 23.0584 12.9763 22.7663 11.9486C22.6717 11.642 22.5091 11.3606 22.2907
										 11.1255C22.0724 10.8904 21.8038 10.7076 21.5049 10.5906C20.287 10.1626 18.9595 10.1626 17.7416 10.5906C17.4299 10.6823 17.1459
										 10.8501 16.9153 11.0789C16.6847 11.3077 16.5147 11.5904 16.4206 11.9013Z" fill="white"></path>
                                    </g>
                                  </g>
                                  <defs>
                                    <filter id="filter0_ddd_909_2024" x="-4.66675" y="-9" width="41.3333" height="52" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
                                      <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood>
                                      <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                      <feOffset dy="2"></feOffset>
                                      <feGaussianBlur stdDeviation="2"></feGaussianBlur>
                                      <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.05 0"></feColorMatrix>
                                      <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_909_2024"></feBlend>
                                      <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                      <feOffset dy="1"></feOffset>
                                      <feGaussianBlur stdDeviation="5"></feGaussianBlur>
                                      <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.04 0"></feColorMatrix>
                                      <feBlend mode="normal" in2="effect1_dropShadow_909_2024" result="effect2_dropShadow_909_2024"></feBlend>
                                      <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix>
                                      <feOffset dy="4"></feOffset>
                                      <feGaussianBlur stdDeviation="2.5"></feGaussianBlur>
                                      <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.152941 0 0 0 0 0.407843 0 0 0 0.02 0"></feColorMatrix>
                                      <feBlend mode="normal" in2="effect2_dropShadow_909_2024" result="effect3_dropShadow_909_2024"></feBlend>
                                      <feBlend mode="normal" in="SourceGraphic" in2="effect3_dropShadow_909_2024" result="shape"></feBlend>
                                    </filter>
                                    <clipPath id="clip0_909_2024">
                                      <rect width="32" height="32" fill="white"></rect>
                                    </clipPath>
                                    <clipPath id="clip1_909_2024">
                                      <rect width="14.8148" height="14.8148" fill="white" transform="translate(8.59229 3.25928)"></rect>
                                    </clipPath>
                                  </defs>
                                </svg>
                                <h2 class="coop-c-heading coop-c-text--default-margin">Do you want to become a Co‑op Member for £1?</h2>
                              </div>
                              <div class="coop-c-text">
                                <p class="coop-c-text--default-margin"> You'll get a discount on this purchase and: </p>
                                <ul class="coop-c-bullets coop-c-text--default-margin">
                                  <li>access to our Member Prices</li>
                                  <li>exclusive offers, discounts and events from Co-op</li>
                                  <li>you can choose a local cause to support</li>
                                  <li>you can have a say in how our Co‑op is run</li>
                                </ul>
                                <p class=" coop-c-text--default-margin"> £1 of your first insurance payment will pay for your membership.</p>
                                <p class="coop-c-text--default-margin">Read our <a class="coop-c-text--link coop-c-text--link--lightgrey" href="https://www.coop.co.uk/terms/membership-terms-and-conditions" target="_blank">
						membership terms and conditions.</a></p>
                              </div>
                              <div class="coop-c-form__row">
                                <input type="checkbox" id="memberboxSignup" name="memberInput" class="coop-c-form__checkbox">
                                <label class="coop-c-form__label" for="memberboxSignup">
                                  <span class="coop-c-heading__sub coop-c-text--default-margin">Yes, I want to be a Co‑op Member</span></label>
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="coop-c-form coop-c-form--endpadding ">
                          <div class="coop-c-text coop-c-text--lightgrey">
                            <h2 class="coop-c-heading coop-c-text--default-margin">How would you like us to contact you?</h2>
                            <p class="coop-c-text--default-margin"> We'd like to keep you up to date about products, services and benefits from Co‑op and our family of businesses, such as Insurance, Food and Life Services. </p>
                            <p class="coop-c-text--default-margin">I'd like the Insurance team to contact me by:</p>
                          </div>
                          <div>
                            <div class="coop-c-form__row" style="display: none">
                              <input type="checkbox" id="noMarketCheck" name="NOMARKET" class="coop-c-form__checkbox" value="Y">
                              <label class="coop-c-form__label" for="noMarketCheck">
                                <span class="coop-c-heading__sub coop-c-text--default-margin">marketing perferences</span></label>
                            </div>
                            <div class="coop-c-form__row">
                              <input type="checkbox" id="nophoneCheck" name="MOEMFG    " class="coop-c-form__checkbox" value="Y">
                              <label class="coop-c-form__label" for="nophoneCheck">
                                <span class="coop-c-heading__sub coop-c-text--default-margin">phone</span></label>
                            </div>
                            <div class="coop-c-form__row">
                              <input type="checkbox" id="noemailCheck" name="MOEMFG    " class="coop-c-form__checkbox" value="Y">
                              <label class="coop-c-form__label" for="noemailCheck">
                                <span class="coop-c-heading__sub coop-c-text--default-margin">email</span></label>
                            </div>
                            <div class="coop-c-form__row">
                              <input type="checkbox" id="notextCheck" name="MOEMFG    " class="coop-c-form__checkbox" value="Y">
                              <label class="coop-c-form__label" for="notextCheck">
                                <span class="coop-c-heading__sub coop-c-text--default-margin">text</span></label>
                            </div>
                            <div class="coop-c-form__row">
                              <input type="checkbox" id="nopostCheck" name="MOEMFG    " class="coop-c-form__checkbox" value="Y">
                              <label class="coop-c-form__label" for="nopostCheck">
                                <span class="coop-c-heading__sub coop-c-text--default-margin">post</span></label>
                            </div>
                          </div>
                        </div>
                        <div class="coop-c-form " id="marketingWrap" style="display: none">
                          <p class="coop-c-text coop-c-text--lightgrey coop-c-text--default-margin">I'd like the Membership team to contact me by:</p>
                          <div class="coop-c-form__row">
                            <input type="checkbox" id="nomemberemailCheck" name="MOEMFG    " class="coop-c-form__checkbox" value="Y">
                            <label class="coop-c-form__label" for="nomemberemailCheck">
                              <span class="coop-c-heading__sub coop-c-text--default-margin">email</span></label>
                          </div>
                        </div>
                        <div class="section_gap"></div>
                        <script type="text/javascript">
                          <!--
                          // copyright 1999 Idocs, Inc. http://www.idocs.com
                          // Distribute this script freely but keep this notice in place
                          function letternumber(e) {
                            var key;
                            var keychar;
                            if (window.event) key = window.event.keyCode;
                            else if (e) key = e.which;
                            else return true;
                            keychar = String.fromCharCode(key);
                            keychar = keychar.toLowerCase();
                            // control keys
                            if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) return true;
                            // alphas and numbers
                            else if ((("abcdefghijklmnopqrstuvwxyz '-").indexOf(keychar) > -1)) return true;
                            else return false;
                          }
                          //
                          -->
                        </script>
                        <!-- do not allow first char to be blank -->
                        <script>
                          $(function() {
                            $('body').on('keydown', 'input', function(e) {
                              if (e.which === 32 && e.target.selectionStart === 0) {
                                return false;
                              }
                            });
                          });
                          $("div.helptext").hide();
                          $(document).ready(function() {
                            $("#medHelpTxt").click(function() {
                              $('#MedHelp').css({
                                'display': 'block'
                              });
                            });
                            $("#medCntBtn").click(function() {
                              $('#MedHelp').css({
                                'display': 'none'
                              });
                            });
                          });
                        </script>
                        <div class="pad10"></div>
                      </div>
                      <div class="clearBoth"></div>
                      <div class="med001Cont">
                        <h2>Pre-existing medical conditions</h2>
                        <div class="clearBoth"></div>
                        <h4>Do any of the travellers have pre-existing medical conditions?</h4>
                        <div class="clearBoth"></div> If you are unsure you should answer yes to this question. You must declare ALL existing medical conditions for all travellers to be insured under this policy. <div id="medHelpTxt">
                          <strong><u>What does medical condition mean and when must I answer "Yes"?</u></strong></div>
                        <div class="clearBoth"></div>
                        <div class="pad10"></div>
                        <div class="errorText3" id="errordivMed" style="display: none;">Please select whether you have pre-existing medical conditions.</div>
                        <div class="clearBoth"></div>
                        <label><span class="radioY switchcru-001 css-radio-001-medY"><input type="radio" name="MEDCHK    " id="MedYes" value="Y" style="visibility:hidden; margin-left:0px;" class="medYes css-radio-001-medY">Yes</span></label>
                        <label><span class="radioN switchcru-001 css-radio-001-medN"><input type="radio" name="MEDCHK    " id="MedNO" value="N" style="visibility:hidden; margin-left:0px;" class="medNo css-radio-001-medN">No</span></label>
                        <div class="clearBoth"></div>
                      </div>
                      <div class="clearBoth"></div>
                      <div class="MedMsgBox" id="MedHelp" style="display:none;">
                        <div class="medhelpBox">
                          <strong>You must answer Yes to this question if anyone to be insured under this policy has:</strong> Any disease, illness or injury for which you or anyone else insured on this policy has: <ul>
                            <li>Taken any prescribed medication or required medical treatment within the last two years; </li>
                            <li>Consulted a medical practitioner and/or been registered as an in or out patient at a hospital, clinic or GP surgery in the last two years.</li>
                          </ul> You will then be asked some more specific questions that will help identify whether you need to be medically screened. Being medically screened does not necessarily mean that you will pay any more premium, but will
                          help ensure that we can provide the cover that you need. <br><br> We will provide cover for claims associated with those pre-existing medical conditions or disabilities that you have disclosed to us, we have accepted in
                          writing and for which you have paid any additional premium due. We cannot provide cover for conditions that you choose not to tell us about or where your (or their) state of health is worse than you have told us. <div
                            class="clearBoth"></div>
                          <div id="medCntBtn">Continue</div>
                        </div>
                      </div>
                      <div class="clearBoth"></div>
                    </div><!--end markbox -->
                    <div class="clearBoth"></div>
                  </div>
                </div>
                <div class="clearBoth"></div>
              </div>
            </div>
            <div class="clearBoth"></div>
            <div class="pad30"></div>
            <div class="submitBtnWrap">
              <a href="" class="button buttonMove" id="submitCompletedPage">
<span>Get your quotes</span></a>
            </div>
            <div class="clearBoth"></div>
            <div id="whiteBoxBottom"></div>
            <!-- END quoteBox -->
            <div id="quoteBoxBtm"></div>
            <!-- END centerContentDIV -->
            <!--  M_RMENU -->
            <div id="rightContentDIV">
              <!-- Affiliate -->
              <!-- Retail -->
              <!-- UIA -->
              <!-- END ON UIA -->
              <!-- keep these UIA scheme's as these are scheme driven websites for UIA old styles -->
            </div><!-- END rightContentDIV -->
            <div id="clearBoth"></div>
            <!-- END mainContentDIV -->
            <div id="mainContentDIVbtm"></div>
            <script type="text/javascript">
              $(document).on('input', '#dobd1', function(event) {
                var myLength = $(this).val().trim().length;
                if (myLength == 2) {
                  console.log("max lenth reached");
                  $(this).next('#dobm1').focus();
                }
              });
              $(".fcdoBox").hide();
              $(".fcdoBoxN").hide();
              $("#errordivMed").hide();
              $("div.helptext").hide();
              $("#HelpTxtRes2").hide();
              $("#HelpTxtTrip2").hide();
              $("#HelpTxtSDates2").hide();
              $("#HelpTxtADates2").hide();
              $("#HelpTxtCntry2").hide();
              $("#HelpWar2").hide();
              $("#Help2War2").hide();
              $("#Help3War2").hide();
              $("#Help4War2").hide();
              $("#HelpTxtTravs2").hide();
              $("#HelpTxtPriv2").hide();
              $("#HelpTxtCru2").hide();
              $("#errordivResident1").hide();
              $("#errordivResident2").hide();
              $("#errordivforreturndate31").hide();
              $(".showResid").css('display', 'none');
              $("#errordivforreturndate2").css('display', 'none');
              $("#errordivCruise").css('display', 'none');
              $("#errordivforreturndate31").css('display', 'none');
              $("#errordivforreturndate92").css('display', 'none');
              $("#errordivforSstartdatepast").css('display', 'none');
              $("#errordivforreturndatepast").css('display', 'none');
              $("#errordivforYearStartdate").css('display', 'none');
              $("#errordivforreturndate").css('display', 'none');
              $("#errordivforreturndatepast").css('display', 'none');
              $("#errordivfortrav1Title").css('display', 'none');
              $("#errordivfortrav1Fname").css('display', 'none');
              $("#errordivfortrav1Sname").css('display', 'none');
              $("#errordivfortrav1DOB").css('display', 'none');
              $("#errordivfortrav2Title").css('display', 'none');
              $("#errordivfortrav2Fname").css('display', 'none');
              $("#errordivfortrav2Sname").css('display', 'none');
              $("#errordivfortrav2DOB").css('display', 'none');
              $("#errordivfortrav3Title").css('display', 'none');
              $("#errordivfortrav3Fname").css('display', 'none');
              $("#errordivfortrav3Sname").css('display', 'none');
              $("#errordivfortrav3DOB").css('display', 'none');
              $("#errordivfortrav4Title").css('display', 'none');
              $("#errordivfortrav4Fname").css('display', 'none');
              $("#errordivfortrav4Sname").css('display', 'none');
              $("#errordivfortrav4DOB").css('display', 'none');
              $("#errordivfortrav5Title").css('display', 'none');
              $("#errordivfortrav5Fname").css('display', 'none');
              $("#errordivfortrav5Sname").css('display', 'none');
              $("#errordivfortrav5DOB").css('display', 'none');
              $("#errordivfortrav6Title").css('display', 'none');
              $("#errordivfortrav6Fname").css('display', 'none');
              $("#errordivfortrav6Sname").css('display', 'none');
              $("#errordivfortrav6DOB").css('display', 'none');
              $("#errordivfortrav7Title").css('display', 'none');
              $("#errordivfortrav7Fname").css('display', 'none');
              $("#errordivfortrav7Sname").css('display', 'none');
              $("#errordivfortrav7DOB").css('display', 'none');
              $("#errordivfortrav8Title").css('display', 'none');
              $("#errordivfortrav8Fname").css('display', 'none');
              $("#errordivfortrav8Sname").css('display', 'none');
              $("#errordivfortrav8DOB").css('display', 'none');
              $("#errordivfortrav9Title").css('display', 'none');
              $("#errordivfortrav9Fname").css('display', 'none');
              $("#errordivfortrav9Sname").css('display', 'none');
              $("#errordivfortrav9DOB").css('display', 'none');
              $("#errordivfortrav10Title").css('display', 'none');
              $("#errordivfortrav10Fname").css('display', 'none');
              $("#errordivfortrav10Sname").css('display', 'none');
              $("#errordivfortrav10DOB").css('display', 'none');
              $("#errordivaddress").css('display', 'none');
              $("#errordivphone").css('display', 'none');
              $("#AddFull").css('display', 'none');
              $("#dateSec").css('display', 'none');
              $("#travSec").hide();
              $("#travellersBox").hide();
              $("#v7cntry").hide();
              $("#v7cntryFSU").hide();
              $("#errordivforstartdate").hide();
              $("#errordivforreturndate").hide();
              $("#errordivforstartdateAnnual").hide();
              $("#errordivforwarrantyall1").hide();
              $("#errordivforwarrantyall2").hide();
              $("#errordivforwarrantyall3").hide();
              $("#errordivfordobcoupleu18").hide();
              $("#waitwarranty").hide();
              $("#terminalwarranty").hide();
              $("#travelwarranty").hide();
              $("#closewait").hide();
              $("#errordivforreturndate").hide();
              $("#errordivTravName1").hide();
              $("#errordivDOB1").hide();
              $("#errordiv2DOB1").hide();
              $("#errordivEmail").hide();
              $("#errordivPcode").hide();
              var WSID1 = 38705335;
              Number.isInteger = Number.isInteger || function(value) {
                return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
              };
              $(function() {
                var maxlength = $('.content').attr('maxlength');
                $('.content').keyup(function() {
                  if ($(this).val().length > maxlength) return false;
                });
              });
              $(document).ready(function(event) {
                var annToday = new Date();
                var annTodayDD = annToday.getDate();
                var annTodayMM = annToday.getMonth() + 1;
                var annTodaYYYY = annToday.getFullYear();
                var annDateSta = annTodayDD + "/" + annTodayMM + "/" + annTodaYYYY;
                document.getElementById("dateannual").value = annDateSta;
                document.getElementById("datefrom").value = annDateSta;
                console.log("annDateSta = " + annDateSta);
                document.getElementById("single-country-selector").placeholder = "Or, search another country";
                //marketing request start
                $('input[type=checkbox]#noMarketCheck').change(function() {
                  if ($(this).is(':checked')) {
                    $('input[type=checkbox]#nopostCheck').attr('disabled', true);
                    $('.css-radio-001-post').addClass("disabled");
                    $('input[type=checkbox]#noemailCheck').attr('disabled', true);
                    $('.css-radio-001-email').addClass("disabled");
                    //$('input[type=checkbox]#nophoneCheck').attr('disabled',true);
                    //$('.css-radio-001-tele').addClass("disabled");
                    $('input[type=checkbox]#notextCheck').attr('disabled', true);
                    $('.css-radio-001-sms').addClass("disabled");
                  } else {
                    $('input[type=checkbox]#nopostCheck').attr('disabled', false);
                    $('.css-radio-001-post').removeClass("disabled");
                    $('input[type=checkbox]#noemailCheck').attr('disabled', false);
                    $('.css-radio-001-email').removeClass("disabled");
                    //$('input[type=checkbox]#nophoneCheck').attr('disabled',false);
                    //$('.css-radio-001-tele').removeClass("disabled");
                    $('input[type=checkbox]#notextCheck').attr('disabled', false);
                    $('.css-radio-001-sms').removeClass("disabled");
                  }
                });
                /////  Trip type validation
                function validateTripType(event) {
                  console.log(" single = " + single);
                  console.log(" annual = " + annual);
                  if ((single !== true) && (annual !== true)) {
                    canpostpage = false;
                    $("#errordivforTripType").css('display', 'inline');
                    window.location.hash = '#errordivforTripType';
                    console.log('fail!  ');
                  } else {
                    $("#errordivforTripType").css('display', 'none');
                    console.log('success!  ');
                  }
                }
                //marketing request end
                //medcheck start
                var medcheck = false;
                var medVal;
                $('.css-radio-001-medY').click(function(event) {
                  $(".css-radio-001-medN").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                  medVal = true;
                  medcheck = true;
                });
                $('.css-radio-001-medN').click(function(event) {
                  $(".css-radio-001-medY").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                  medVal = false;
                  medcheck = true;
                });
                //medcheck end
                //member check start
                var memcheck = false;
                var memVal;
                var newmemVal = false;
                $('#memberBoxY').click(function(event) {
                  document.getElementById('memberWrap').style.display = "block";
                  document.getElementById('memberSignup').style.display = "none";
                  document.getElementById('marketingWrap').style.display = "none";
                  $("#memberBoxN").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                  memVal = true;
                  memcheck = true;
                });
                $('#memberBoxN').click(function(event) {
                  document.getElementById('memberWrap').style.display = "none";
                  document.getElementById('memberSignup').style.display = "block";
                  $("#memberBoxY").removeClass("active");
                  $("#memberboxSignup").prop("checked", false);
                  //Add class
                  $(this).addClass("active");
                  memVal = false;
                  memcheck = true;
                });
                $('#memberboxSignup').click(function(event) {
                  if (this.checked) {
                    $('#marketingWrap').css('display', 'flex');
                    newmemVal = true;
                  } else {
                    $('#marketingWrap').css('display', 'none');
                    $("#nomemberemailCheck").prop("checked", false);
                    newmemVal = false;
                  }
                });
                //member check end
                $("#ShowFullAddress").click(function(event) {
                  $("#AddFull").css('display', 'inline');
                  event.preventDefault();
                });
                $('.css-radio-001-indiv').click(function(event) {
                  $("#travSec").show();
                  $("#travellersBox").show();
                  document.getElementById("travsCheckMark").style.display = "inline-block";
                  event.preventDefault();
                });
                $('.css-radio-001-couple').click(function(event) {
                  $("#travSec").show();
                  $("#travellersBox").show();
                  document.getElementById("travsCheckMark").style.display = "inline-block";
                  event.preventDefault();
                });
                $('.css-radio-001-family').click(function(event) {
                  $("#travSec").show();
                  $("#travellersBox").show();
                  document.getElementById("travsCheckMark").style.display = "inline-block";
                  event.preventDefault();
                });
                $('.css-radio-001-group').click(function(event) {
                  $("#travSec").show();
                  $("#travellersBox").show();
                  document.getElementById("travsCheckMark").style.display = "inline-block";
                  event.preventDefault();
                });
                $("#lookupFullAddress").click(function(event) {
                  event.preventDefault();
                  $("#AddFull").css('display', 'inline');
                });
                $("#lookupFullAddressOLD").click(function(event) {
                  //console.log('lookupFullAddress fired');
                  event.preventDefault();
                  $("#AddFull").css('display', 'inline');
                  //event.preventDefault();
                  //var WSID1 = '9898';
                  p1 = document.getElementById('pcode1').value;
                  //p2 = document.getElementById('pcode2').value;
                  postcode = 'p1=' + p1;
                  senddata = postcode;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/postcodelookup.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    //console.log(msg);
                    document.getElementById('streetwalker').value = msg.street;
                    document.getElementById('townwalker').value = msg.town;
                    $("#addressdetails").show().focus();
                    window.location.hash = '#addressdetails';
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    //canpost = 999;
                    //console.log('Didnt fire');
                  }).always(function() {});
                });
                isannual = true;
                ResBtn = true;
                CruBtn = false;
                CruBtn2 = false;
                canpost = 0;
                var canpostpage = true;
                var uk = document.getElementById('uka').checked = false;
                var euro = document.getElementById('euro').checked = false;
                var wwx = document.getElementById('wwx').checked = false;
                var wwi = document.getElementById('wwi').checked = false;
                var single = false;
                var annual = true;
                //console.log("1!!! canpostpage = " + canpostpage);
                //console.log('isannual = ' + isannual);
                //console.log('WSID = ' + WSID1);
                ////////// Trip type selection
                var policyTypeSelected = '';

                function setPropertyType(policyType) {
                  wsid = 'wsid=' + WSID1 + '&';
                  pt = 'pt=' + policyType;
                  senddata = wsid + pt;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/policy-type.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    //console.log(msg); // show if and where the ajax has written to
                    // const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + 1;
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    //console.log('policy type ' + pt);
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                    //console.log('policy type ' + pt);
                  });
                };
                ////////// End Trip type selection
                ////////// med write
                function setmed(medVal) {
                  wsid = 'wsid=' + WSID1 + '&';
                  my = 'my=' + medVal;
                  senddata = wsid + my;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/med.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    //console.log(msg); // show if and where the ajax has written to
                    //const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    //canpost = canpost + 1;
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    //console.log('Cruise = ' + Cruise);
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ////////// End med write
                /////// Membership check/write
                function checkPromoCode() {
                  var canCnt = checkCode(canCnt);
                  console.log("#### canCnt = " + canCnt);
                  if (canCnt == false) {
                    var canpostpage = false;
                    canpost = 999;
                  } else {
                    var membernumber = "633174" + document.getElementById('memberid').value;
                    membernumber = membernumber.replaceAll(' ', '');
                    var eleventh = membernumber.slice(10, 11);
                    membernumber = membernumber.trim();
                    if ((eleventh === "7") || (eleventh === "8")) {
                      var memorCol = "Colleague";
                      var discountCode = "COL";
                    }
                    if ((eleventh === "1")) {
                      var memorCol = "Member";
                      var discountCode = "MEM";
                    }
                    console.log("member or colleague = " + memorCol);
                    wsid = 'wsid=' + WSID1 + '&';
                    promo = 'promo=' + membernumber + '&';
                    mcode = 'mcode=' + discountCode;
                    senddata = wsid + promo + mcode;
                    console.log("senddata = " + senddata);
                    var jqxhr = $.ajax({
                      type: "post",
                      cache: false,
                      url: "../ajax/coopcode.php?i=" + WSID1,
                      data: senddata
                    }).done(function(msg) {
                      var anyerror = "Error:";
                      console.log("Done");
                    }).fail(function(jqxhr, textStatus, errorThrown) {
                      // we did not get a good response so deal with it here
                      canpost = 999;
                      console.log("Fail");
                    }).always(function() {
                      // do anything we would do come pass or fail
                    });
                  }
                };

                function newMember() {
                  var newMembernumber = "Y";
                  wsid = 'wsid=' + WSID1 + '&';
                  promo = 'nmem=' + newMembernumber + '&';
                  senddata = wsid + promo;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/coopcodenm.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    var anyerror = "Error:";
                    console.log("Done");
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                    console.log("Fail");
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };

                function notMember() {
                  var newMembernumber = " ";
                  wsid = 'wsid=' + WSID1 + '&';
                  promo = 'nmem=' + newMembernumber + '&';
                  senddata = wsid + promo;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/coopcodenm.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    var anyerror = "Error:";
                    console.log("Done");
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                    console.log("Fail");
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                /////// Membership check/write end
                ////////// Cruise write
                function setCruise(CruBtn) {
                  if (CruBtn == false) {
                    var Cruise = 'N';
                  }
                  if (CruBtn == true) {
                    var Cruise = 'Y';
                  }
                  wsid = 'wsid=' + WSID1 + '&';
                  cr = 'cr=' + Cruise;
                  senddata = wsid + cr;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/cruisecheck.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    //console.log(msg); // show if and where the ajax has written to
                    //const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + 1;
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    //console.log('Cruise = ' + Cruise);
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                    //console.log('policy type ' + pt);
                  });
                };
                ////////// End Cruise write
                //////////Start Single dates set
                function setSingleStart(event) {
                  if ((fromdateisvalid() != true) && ((todateisvalid() != true) && (issingle() == true))) {
                    //show missed validation
                    //console.log("fromdateisvalid = " + fromdateisvalid());
                    //console.log(" issingle = " + issingle());
                    canpostpage = false;
                    //event.preventDefault();
                    //console.log("canpostpage = false");
                    // set focus to first error
                    if ($("#submitCompletedPage").is(":focus") === true) {
                      // set focus to our first input with error
                    }
                  } else {
                    //console.log("Writing");
                    // write the record with ajax
                    var holidaydatefrom = $("#datefrom").val();
                    var holidaydateto = $("#dateto").val();
                    var splitDate = holidaydateto.split('/');
                    var month = splitDate[1] - 1; //Javascript months are 0-11
                    holidaydateto = new Date(splitDate[2], month, splitDate[0]);
                    splitDate = holidaydatefrom.split('/');
                    //console.log("here 1");
                    month = splitDate[1] - 1; //Javascript months are 0-11
                    holidaydatefrom = new Date(splitDate[2], month, splitDate[0]);
                    var datesdiff = dateDiffInDays(holidaydatefrom, holidaydateto);
                    holidaydatefrom = $("#datefrom").val();
                    holidaydateto = $("#dateto").val();
                    setTravelDates(holidaydatefrom, holidaydateto, datesdiff, '');
                    //console.log('single fired= ' + ' hdf=' + holidaydatefrom + ' hdt=' + holidaydateto + ' diff=' + datesdiff);
                    if (validateTripTypeSingle() === true) {
                      setPropertyType('S');
                      policyTypeSelected = 'S';
                      sc = document.getElementById('ACOUNTRYMC').value;
                      setSingleCountry(sc);
                    }
                  }
                }
                //////////End Single dates set
                //////////Start Annual dates set
                function setAnnualStart(event) {
                  if ((fromdateAnnualisvalid() !== true) && (isannual == true)) {
                    //show missed validation
                    //console.log("fromdateisvalid = " + fromdateisvalid());
                    //console.log(" isannual = " + isannual);
                    canpostpage = false;
                    //event.preventDefault();
                    //console.log("canpostpage = false");
                    // set focus to first error
                    if ($("#submitCompletedPage").is(":focus") === true) {
                      // set focus to our first input with error
                    }
                  } else {
                    //console.log("Writing");
                    //write the record with ajax
                    var holidaydatefrom = $("#dateannual").val();
                    holidaydatefrom = $("#dateannual").val();
                    setTravelDatesAnnual(holidaydatefrom, '', '', holidaydatefrom)
                    //console.log(" ANNUAL REGIONS.... BUT HOW? ");
                    //console.log(" euro = " + euro);
                    //console.log(" wwx = " + wwx);
                    //console.log(" wwi = " + wwi);
                  }
                  policyTypeSelected = 'A';
                  setPropertyType('A');
                }
                //////////End Annual dates set
                ////////// Set traveller type
                // function to ajax to healix
                function setTravellerType(travellerType) {
                  wsid = 'wsid=' + WSID1 + '&';
                  var scheme = 'scheme=' + 'IGC' + '&';
                  var bus = 'bus=' + '770' + '&';
                  tt = 'tt=' + travellerType;
                  senddata = wsid + scheme + bus + tt;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/traveller-type.php?i=" + WSID1,
                    //url: "../ajax/traveller-details.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    console.debug(msg);
                    // const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ////////// End Set traveller type
                ////////// Date validation
                function isDateValid(datetocheck) {
                  var check = false;
                  var re = /^\d{1,2}\/\d{1,2}\/\d{4}$/;
                  if (re.test(datetocheck)) {
                    var adata = datetocheck.split('/');
                    var gg = parseInt(adata[0], 10);
                    var mm = parseInt(adata[1], 10);
                    var aaaa = parseInt(adata[2], 10);
                    var xdata = new Date(aaaa, mm - 1, gg);
                    if ((xdata.getFullYear() === aaaa) && (xdata.getMonth() === mm - 1) && (xdata.getDate() === gg)) {
                      check = true;
                    } else {
                      check = false;
                    }
                  } else {
                    check = false;
                  }
                  return check;
                }

                function isDOBDateValid(datetocheck) {
                  var check = false;
                  var re = /^\d{1,2}\/\d{1,2}\/\d{4}$/;
                  if (re.test(datetocheck)) {
                    var adata = datetocheck.split('/');
                    var gg = parseInt(adata[0], 10);
                    var mm = parseInt(adata[1], 10);
                    var aaaa = parseInt(adata[2], 10);
                    var xdata = new Date(aaaa, mm - 1, gg);
                    var currentDate = new Date();
                    if (
                      (xdata.getFullYear() === aaaa) && (xdata.getMonth() === mm - 1) && (xdata.getDate() === gg) && (xdata <= currentDate)) {
                      var age = currentDate.getFullYear() - aaaa;
                      if (currentDate.getMonth() < xdata.getMonth() || (currentDate.getMonth() === xdata.getMonth() && currentDate.getDate() < xdata.getDate())) {
                        age--;
                      }
                      if (age <= 100) {
                        check = true;
                      } else {
                        check = false;
                      }
                    } else {
                      check = false;
                    }
                  } else {
                    check = false;
                  }
                  return check;
                }

                function dateDiffInDays(a, b) {
                  var date1 = new Date(a);
                  var date2 = new Date(b);
                  var timeDiff = Math.abs(date2.getTime() - date1.getTime());
                  var diffDays = Math.round(timeDiff / (1000 * 3600 * 24));
                  //console.log('date we were sent ' + date1 + ' and ' + date2 + ' which is ' + diffDays + ' difference');
                  return diffDays + 1;
                }
                /// added 20th Jan
                function setTravelDates(travelfrom, travelto, days, annualdeparture) {
                  var today2 = new Date();
                  var todaydd = today2.getDate();
                  var todaymm = today2.getMonth() + 1; //January is 0!
                  var todayyyy = today2.getFullYear();
                  var todayy = todayyyy.toString();
                  var todayy = (todayy.substring(2));
                  var todayTimeh = today2.getHours();
                  var todayTimem = today2.getMinutes();
                  //console.log("today = " + today2);
                  //console.log("todaymm = " + todaymm);
                  //console.log("todaydd = " + todaydd);
                  //console.log("todayyyy = " + todayyyy);
                  //console.log("todayy = " + todayy);
                  //console.log("todayTimeh = " + todayTimeh);
                  //console.log("todayTimem = " + todayTimem);
                  wsid = 'wsid=' + WSID1 + '&';
                  tt = 'tt=' + travelto + '&';
                  tf = 'tf=' + travelfrom + '&';
                  dy = 'dy=' + days + '&';
                  ad = 'ad=' + annualdeparture + '&';
                  dt = 'dt=' + todaydd + '&';
                  mt = 'mt=' + todaymm + '&';
                  yt = 'yt=' + todayy + '&';
                  ht = 'ht=' + todayTimeh + '&';
                  nt = 'nt=' + todayTimem;
                  senddata = wsid + tt + tf + dy + ad + dt + mt + yt + ht + nt;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/holiday-dates.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    //console.log(msg);
                    //const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + 1;
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };

                function setTravelDatesAnnual(travelfrom, travelto, days, annualdeparture) {
                  var today2 = new Date();
                  var todaydd = today2.getDate();
                  var todaymm = today2.getMonth() + 1; //January is 0!
                  var todayyyy = today2.getFullYear();
                  var todayy = todayyyy.toString();
                  var todayy = (todayy.substring(2));
                  var todayTimeh = today2.getHours();
                  var todayTimem = today2.getMinutes();
                  //console.log("today = " + today2);
                  //console.log("todaymm = " + todaymm);
                  //console.log("todaydd = " + todaydd);
                  //console.log("todayyyy = " + todayyyy);
                  //console.log("todayy = " + todayy);
                  //console.log("todayTimeh = " + todayTimeh);
                  //console.log("todayTimem = " + todayTimem);
                  wsid = 'wsid=' + WSID1 + '&';
                  tt = 'tt=' + travelto + '&';
                  tf = 'tf=' + travelfrom + '&';
                  dy = 'dy=' + days + '&';
                  ad = 'ad=' + annualdeparture + '&';
                  dt = 'dt=' + todaydd + '&';
                  mt = 'mt=' + todaymm + '&';
                  yt = 'yt=' + todayy + '&';
                  ht = 'ht=' + todayTimeh + '&';
                  nt = 'nt=' + todayTimem;
                  senddata = wsid + tt + tf + dy + ad + dt + mt + yt + ht + nt;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/holiday-dates-annual.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    policyTypeSelected = 'A';
                    setPropertyType('A');
                    //console.log(msg);
                    //const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + 1;
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ////////// End Date validation
                ////////// showAlert
                function showAlert(title, content) {
                  var example = new jPopup({
                    title: "<h2>" + title + "</h2>",
                    content: "<p>" + content + "</p>",
                    buttons: [{
                      text: "Close",
                      value: true,
                      "class": "ok"
                    }],
                    draggable: false
                  });
                  example.open(function(r) {
                    switch (r) {
                      case true:
                        break;
                    }
                  });
                }
                ////////// End showAlert
                ////////// showWarrantyAlert
                function showWarrantyAlert(title, content) {
                  var example = new jPopup({
                    title: "<h2>" + title + "</h2>",
                    content: "<p>" + content + "</p>",
                    buttons: [{
                      text: "Close",
                      value: true,
                      "class": "ok"
                    }],
                    draggable: false
                  });
                  example.open(function(r) {
                    switch (r) {
                      case true:
                        break;
                    }
                  });
                }
                ////////// End showWarrantyAlert
                /////// Max 31 days by country code - validation further down
                Array.prototype.contains = function(needle) {
                  for (i in this) {
                    if (this[i] == needle) return true;
                  }
                  return false;
                }
                /////// Single date and country validation
                function validateTripTypeSingle(event) {
                  var holidaydatefrom = $("#datefrom").val();
                  var holidaydateto = $("#dateto").val();
                  if (isDateValid(holidaydatefrom) === false) {
                    canpostpage = false;
                    $("#errordivforstartdate").show().focus();
                    window.location.hash = '#errordivforstartdate';
                    //event.preventDefault();
                    console.log("*****errordivforstartdate*****");
                  } else {
                    ////console
                  }
                  var splitDate = holidaydatefrom.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidaydatefrom = new Date(splitDate[2], month, splitDate[0]);
                  var today = new Date();
                  today.setHours(0, 0, 0, 0);
                  if (holidaydatefrom >= today) {
                    //console
                    $("#errordivforSstartdatepast").css('display', 'none');
                  } else {
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivforSstartdatepast").css('display', 'inline');
                    $("#errordivforSstartdatepast").focus();
                    window.location.hash = '#errordivforSstartdatepast';
                    console.log("*****errordivforSstartdatepast*****");
                    return false;
                  }
                  //set holidayfrom31 to a date format
                  var holidayfrom31 = $("#datefrom").val();
                  var splitDate = holidayfrom31.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidayfrom31 = new Date(splitDate[2], month, splitDate[0]);
                  var today = new Date();
                  today.setHours(0, 0, 0, 0);
                  //end date format
                  //set holidayreturn31 to a date format
                  var holidayreturn31 = $("#dateto").val();
                  var splitDate = holidayreturn31.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidayreturn31 = new Date(splitDate[2], month, splitDate[0]);
                  var today = new Date();
                  //console.log('holidayreturn31 = ' + holidayreturn31);
                  today.setHours(0, 0, 0, 0);
                  //end date format
                  var yearinadvance = new Date();
                  yearinadvance.setMonth(yearinadvance.getMonth() + 12);
                  if (holidaydatefrom > yearinadvance) {
                    // date is greater than 1 year forward
                    canpostpage = false;
                    $("#errordivforYearStartdate").focus().css('display', 'inline');
                    window.location.hash = '#errordivforYearStartdate';
                    console.log("****errordivforYearStartdate****");
                    return false;
                  } else {
                    $("#errordivforYearStartdate").css('display', 'none');
                  }
                  ////// check return date
                  if (isDateValid(holidaydateto) === false) {
                    //event.preventDefault();
                    canpostpage = false;
                    $("#errordivforreturndate").show().focus();
                    window.location.hash = '#errordivforreturndate';
                    console.log("****errordivforreturndate****");
                  } else {
                    $("#errordivforreturndate").hide();
                  }
                  var splitDate = holidaydateto.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidaydateto = new Date(splitDate[2], month, splitDate[0]);
                  var holidaydateto2 = new Date(splitDate[2], splitDate[1], splitDate[0]);
                  if (holidaydateto < holidaydatefrom) {
                    //event.preventDefault();
                    canpostpage = false;
                    $("#errordivforreturndatepast").show().focus();
                    window.location.hash = '#errordivforreturndatepast';
                    console.log("****errordivforreturndatepast****");
                  } else {
                    $("#errordivforreturndatepast").hide();
                  }
                  var datesdiff = dateDiffInDays(holidaydatefrom, holidaydateto);
                  console.log('datesdiff here = ' + datesdiff);
                  if (datesdiff < 3) {
                    //event.preventDefault();
                    canpostpage = false;
                    $("#errordivforreturndate2").focus().css('display', 'inline');
                    window.location.hash = '#errordivforreturndate2';
                    console.log("****errordivforreturndate2****");
                  } else {
                    $("#errordivforreturndate2").css('display', 'none');
                  }
                  if (datesdiff > 365) {
                    //event.preventDefault();
                    canpostpage = false;
                    $("#errordivforreturndate92").focus().css('display', 'inline');
                    window.location.hash = '#errordivforreturndate92';
                    console.log("*****errordivforreturndate92*****");
                  } else {
                    $("#errordivforreturndate92").css('display', 'none');
                  }
                  ///// validate max 31 days against country code
                  var only31 = document.getElementById('ACOUNTRYMC').value.split(',');
                  console.log('only31!!! = ' + only31);
                  if ((only31.contains('98')) || (only31.contains('115')) || (only31.contains('121')) || (only31.contains('179')) || (only31.contains('251')) || (only31.contains('275')) || (only31.contains('276')) || (only31.contains('277')) || (
                      only31.contains('278'))) {
                    if (datesdiff > 31) {
                      //event.preventDefault();
                      canpostpage = false;
                      $("#errordivforreturndate31").show().focus();
                      window.location.hash = '#errordivforreturndate31';
                      console.log("*****errordivforreturndate31*****");
                    } else {
                      $("#errordivforreturndate31").hide();
                    }
                  }
                  ///// End validate max 31 days against country code
                  /// send data
                  sc = document.getElementById('ACOUNTRYMC').value;
                  console.log("!!!! SC = " + sc);
                  if ((sc === '') || (sc === '999')) {
                    if (sc === '') {
                      //showAlert('AllClearTravel', 'Please select a country');
                      //return false;
                      //event.preventDefault();
                      canpostpage = false;
                      $("#v7cntry").show("show");
                      $("#errordivCntry").css('display', 'inline');
                      window.location.hash = '#errordivCntry';
                    }
                    if (sc === '999') {
                      //showAlert('AllClearTravel', 'Please select a country');
                      //return false;
                      //event.preventDefault();
                      canpostpage = false;
                      $("#v7cntry").show("show");
                      $("#errordivCntry").css('display', 'inline');
                      window.location.hash = '#errordivCntry';
                    }
                  } else {
                    $("#errordivCntry").css('display', 'none');
                  }
                  return true;
                }
                $(".css-radio-001-yes1").click(function() {
                  $("#travelwarranty").css('display', 'inline');
                  window.location.hash = '#travelwarranty';
                });
                $("#closetravel").click(function() {
                  $("#travelwarranty").css('display', 'none');
                  $("#warrBox").focus();
                  window.location.hash = '#warrBox';
                });
                $(".css-radio-001-yes2").click(function() {
                  $("#waitwarranty").css('display', 'inline');
                  window.location.hash = '#waitwarranty';
                });
                $("#closewait").click(function() {
                  $("#waitwarranty").css('display', 'none');
                });

                function validateWaitCheck() {
                  if (document.getElementById('waitCheck').checked) {
                    //alert("checked");
                    $("#closewait").show();
                  } else {
                    $("#closewait").hide();
                  }
                }
                $("#waitCheck").click(function() {
                  validateWaitCheck();
                });
                $(".css-radio-001-yes3").click(function() {
                  $("#terminalwarranty").css('display', 'inline');
                  window.location.hash = '#terminalwarranty';
                });
                $("#closeterminal").click(function() {
                  $("#terminalwarranty").css('display', 'none');
                  $("#warrBox").focus();
                  window.location.hash = '#warrBox';
                });
                ///////// Waiting list tick box validation start
                function setWaitCheck() {
                  var waitingcheck = 'N';
                  var Wchecked = 'N';
                  if (document.getElementById('waitcheck').checked == true) {
                    waitingcheck = 'Y';
                    Wchecked = 'Y';
                    $("#waitwarranty").hide();
                  }
                  console.log('waitingcheck ' + waitingcheck);
                  console.log('Wchecked ' + Wchecked);
                  if (Wchecked == 'N') {
                    $("#waitwarranty").show();
                  }
                };
                ///////// Waiting list tick box validation end
                $("#validbtn").click(function() {
                  if (validateTripTypeSingle() === true) {
                    var holidaydatefrom = $("#datefrom").val();
                    var holidaydateto = $("#dateto").val();
                    // here
                    var splitDate = holidaydateto.split('/');
                    var month = splitDate[1] - 1; //Javascript months are 0-11
                    holidaydateto = new Date(splitDate[2], month, splitDate[0]);
                    splitDate = holidaydatefrom.split('/');
                    month = splitDate[1] - 1; //Javascript months are 0-11
                    holidaydatefrom = new Date(splitDate[2], month, splitDate[0]);
                    var datesdiff = dateDiffInDays(holidaydatefrom, holidaydateto);
                    // to here
                    holidaydatefrom = $("#datefrom").val();
                    holidaydateto = $("#dateto").val();
                    setTravelDates(holidaydatefrom, holidaydateto, datesdiff, '');
                    console.log('single fired= ' + ' hdf=' + holidaydatefrom + ' hdt=' + holidaydateto + ' diff=' + datesdiff);
                    setPropertyType('S');
                    policyTypeSelected = 'S';
                    sc = document.getElementById('ACOUNTRYMC').value;
                    setSingleCountry(sc);
                  }
                });
                /////  end single date and country validation
                ///// start annual region and date validation
                function validateTripTypeAnnual(event) {
                  console.log('AM I HERE????');
                  console.log(" uk = " + uk);
                  console.log(" euro = " + euro);
                  console.log(" wwx = " + wwx);
                  console.log(" wwi = " + wwi);
                  if ((uk !== true) && (euro !== true) && (wwx !== true) && (wwi !== true)) {
                    //event.preventDefault();
                    canpostpage = false;
                    $("#errordivforAnnualRegion").css('display', 'inline');
                    window.location.hash = '#errordivforAnnualRegion';
                    console.log('WAHHHT ANNUAL region not entered  ');
                    return false;
                  } else {
                    $("#errordivforAnnualRegion").css('display', 'none');
                    //return true;
                    console.log('HOWWWWW!!!!!  ');
                  }
                  var holidaydatefrom = $("#dateannual").val();
                  if (isDateValid(holidaydatefrom) === false) {
                    //event.preventDefault();
                    canpostpage = false;
                    $("#errordivforstartdateAnnual").show().focus();
                    window.location.hash = '#errordivforstartdateAnnual';
                    console.log("*****errordivforstartdateAnnual*****");
                    //event.preventDefault();
                    return false;
                  }
                  var splitDate = holidaydatefrom.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidaydatefrom = new Date(splitDate[2], month, splitDate[0]);
                  var today = new Date();
                  today.setHours(0, 0, 0, 0);
                  if (holidaydatefrom >= today) {
                    //console
                    $("#errordivforAstartdatepast").css('display', 'none');
                  } else {
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivforAstartdatepast").css('display', 'inline');
                    $("#errordivforAstartdatepast").focus();
                    window.location.hash = '#errordivforAstartdatepast';
                    console.log("*****errordivforAstartdatepast*****");
                    return false;
                  }
                  var yearinadvance = new Date();
                  yearinadvance.setMonth(yearinadvance.getMonth() + 12);
                  if (holidaydatefrom > yearinadvance) {
                    // date is greater than 1 year forward
                    canpostpage = false;
                    $("#errordivforYearstartdateA").focus().css('display', 'inline');
                    window.location.hash = '.errordivforYearstartdateA';
                    console.log("*****errordivforYearstartdateA*****");
                    return false;
                  } else {
                    $("#errordivforYearstartdateA").css('display', 'none');
                  }
                  var thirtyonedays = new Date();
                  thirtyonedays.setDate(thirtyonedays.getDate() + 60);
                  if (holidaydatefrom > thirtyonedays) {
                    //event.preventDefault();
                    canpostpage = false;
                    $("#errordivforreturndate31Annual").css('display', 'inline');
                    $("#errordivforreturndate31Annual").focus();
                    window.location.hash = '#errordivforreturndate31Annual';
                    console.log("*****errordivforreturndate31Annual*****");
                    return false;
                  } else {
                    $("#errordivforreturndate31Annual").css('display', 'none');
                  }
                  return true;
                };
                ////////// end annual date validation
                ////////// start annual region validation
                function setAnnualRegion(regionType) {
                  wsid = 'wsid=' + WSID1 + '&';
                  rt = 'rt=' + regionType;
                  senddata = wsid + rt;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/region-type.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    //const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    $("div.showAnnualSubmit").show("slow"); // jquery action after an insert or update
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                  }).always(function() {
                    // console
                  });
                };
                //  }); /// close doc ready
                ////////// end annual region validation
                //// start and 7 10 14 calc and validation
                $("#7n").click(function() {
                  var holidaydatefrom = $("#datefrom").val();
                  if (isDateValid(holidaydatefrom) === false) {
                    return;
                  }
                  var splitDate = holidaydatefrom.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidaydatefrom = new Date(splitDate[2], month, splitDate[0]);
                  holidaydatefrom.setDate(holidaydatefrom.getDate() + 7);
                  var dateMsg = holidaydatefrom.getDate() + '/' + (holidaydatefrom.getMonth() + 1) + '/' + holidaydatefrom.getFullYear();
                  $("#dateto").val(dateMsg);
                  $("div.css-radio-001-show-numTravSelect2to10").hide("slow");
                });
                //////////////
                $("#10n").click(function() {
                  var holidaydatefrom = $("#datefrom").val();
                  if (isDateValid(holidaydatefrom) === false) {
                    return;
                  }
                  var splitDate = holidaydatefrom.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidaydatefrom = new Date(splitDate[2], month, splitDate[0]);
                  holidaydatefrom.setDate(holidaydatefrom.getDate() + 10);
                  var dateMsg = holidaydatefrom.getDate() + '/' + (holidaydatefrom.getMonth() + 1) + '/' + holidaydatefrom.getFullYear();
                  $("#dateto").val(dateMsg);
                });
                //////////////
                $("#14n").click(function() {
                  var holidaydatefrom = $("#datefrom").val();
                  if (isDateValid(holidaydatefrom) === false) {
                    return;
                  }
                  var splitDate = holidaydatefrom.split('/');
                  var month = splitDate[1] - 1; //Javascript months are 0-11
                  var holidaydatefrom = new Date(splitDate[2], month, splitDate[0]);
                  holidaydatefrom.setDate(holidaydatefrom.getDate() + 14);
                  var dateMsg = holidaydatefrom.getDate() + '/' + (holidaydatefrom.getMonth() + 1) + '/' + holidaydatefrom.getFullYear();
                  $("#dateto").val(dateMsg);
                });
                ////////////// end and 7 10 14 calc and validation
                ////////////// Start traveller validation inc email and post code
                function isTravellerValid(title, fname, sname, dob) {
                  console.log('title = *' + title + '* fname *' + fname + '* sname *' + sname + '* dob *' + dob + '*');
                  if ((title === null) || (title === '')) return false;
                  if (!fname) return false;
                  if (!sname) return false;
                  if (isDateValid(dob) === false) {
                    var dobValid = 'false';
                    return false;
                  }
                  var dobValid = 'true';
                  return true;
                }

                function isTravellerTitle(title) {
                  console.log('title = *' + title + '*');
                  if ((title === null) || (title === '')) {
                    return false;
                  } else {
                    return true;
                  }
                }

                function isTravellerFname(fname) {
                  if ((fname === null) || (fname === '')) {
                    return false;
                  } else {
                    return true;
                  }
                }

                function isTravellerSname(sname) {
                  if ((sname === null) || (sname === '')) {
                    return false;
                  } else {
                    return true;
                  }
                }

                function isTravellerDOB(dob) {
                  if (isDOBDateValid(dob) === false) {
                    var dobValid = 'false';
                    return false;
                  }
                  var dobValid = 'true';
                  return true;
                }
                var travellerType = 'I';
                // function to validate travellers
                function setTravellerDetails(numberOfTravellers) {
                  if (document.getElementById('C').checked) {
                    travellerType = 'C';
                  }
                  if (document.getElementById('F').checked) {
                    travellerType = 'F';
                  }
                  if (document.getElementById('G').checked) {
                    travellerType = 'G';
                  }
                  var title01 = "";
                  if (document.querySelector("#titleMr1").classList.contains("active") === true) {
                    title01 = "Mr";
                  }
                  if (document.querySelector("#titleMrs1").classList.contains("active") === true) {
                    title01 = "Mrs";
                  }
                  if (document.querySelector("#titleMs1").classList.contains("active") === true) {
                    title01 = "Ms";
                  }
                  if (document.querySelector("#titleMiss1").classList.contains("active") === true) {
                    title01 = "Miss";
                  }
                  if (document.querySelector("#titleMx1").classList.contains("active") === true) {
                    title01 = "Mx";
                  }
                  if (document.querySelector("#titleDr1").classList.contains("active") === true) {
                    title01 = "Dr";
                  }
                  if (document.querySelector("#titleMast1").classList.contains("active") === true) {
                    title01 = "Master";
                  }
                  console.log
                  wsid = 'wsid=' + WSID1 + '&';
                  var scheme = 'scheme=' + 'IGC' + '&';
                  t1 = 't1=' + title01 + '&';
                  f1 = 'f1=' + document.getElementById('fname1').value + '&';
                  s1 = 's1=' + document.getElementById('sname1').value + '&';
                  var dobd1 = document.getElementById("dobd1").value;
                  d1 = 'd1=' + dobd1 + '&';
                  var dobm1 = document.getElementById("dobm1").value;
                  console.log("dobm1 " + dobm1);
                  m1 = 'm1=' + dobm1 + '&';
                  var doby1 = document.getElementById("doby1").value;
                  y1 = 'y1=' + doby1 + '&';
                  console.log("title01 = " + title01);
                  console.log("Name trav1 = " + t1 + " " + f1 + " " + s1);
                  var validTravTitle = isTravellerTitle(title01);
                  if (validTravTitle === false) {
                    console.log("traveller 1 details blank ");
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivfortrav1Title").css('display', 'inline');
                    window.location.hash = '#errordivfortrav1Title';
                  } else {
                    $("#errordivfortrav1Title").css('display', 'none');
                  }
                  var validTravFname = isTravellerFname(document.getElementById('fname1').value);
                  if (validTravFname === false) {
                    console.log("traveller 1 details blank ");
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivfortrav1Fname").css('display', 'inline');
                    window.location.hash = '#errordivfortrav1Fname';
                  } else {
                    $("#errordivfortrav1Fname").css('display', 'none');
                  }
                  var validTravSname = isTravellerSname(document.getElementById('sname1').value);
                  if (validTravSname === false) {
                    console.log("traveller 1 details blank ");
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivfortrav1Sname").css('display', 'inline');
                    window.location.hash = '#errordivfortrav1Sname';
                  } else {
                    $("#errordivfortrav1Sname").css('display', 'none');
                  }
                  var validTravDOB = isTravellerDOB(dobd1 + '/' + dobm1 + '/' + doby1);
                  if (validTravDOB === false) {
                    console.log("dob = " + dobd1 + '/' + dobm1 + '/' + doby1);
                    console.log("traveller 1 details blank ");
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivfortrav1DOB").css('display', 'inline');
                    window.location.hash = '#errordivfortrav1DOB';
                  } else {
                    $("#errordivfortrav1DOB").css('display', 'none');
                  }
                  var t2, f2, s2, d2, m2, y2;
                  t2, f2, s2, d2, m2, y2 = '';
                  if (numberOfTravellers > 1) {
                    var title02 = "";
                    if (document.querySelector("#titleMr2").classList.contains("active") === true) {
                      title02 = "Mr";
                    }
                    if (document.querySelector("#titleMrs2").classList.contains("active") === true) {
                      title02 = "Mrs";
                    }
                    if (document.querySelector("#titleMs2").classList.contains("active") === true) {
                      title02 = "Ms";
                    }
                    if (document.querySelector("#titleMiss2").classList.contains("active") === true) {
                      title02 = "Miss";
                    }
                    if (document.querySelector("#titleMx2").classList.contains("active") === true) {
                      title02 = "Mx";
                    }
                    if (document.querySelector("#titleDr2").classList.contains("active") === true) {
                      title02 = "Dr";
                    }
                    if (document.querySelector("#titleMast2").classList.contains("active") === true) {
                      title02 = "Master";
                    }
                    t2 = 't2=' + title02 + '&';
                    f2 = 'f2=' + document.getElementById('fname2').value + '&';
                    s2 = 's2=' + document.getElementById('sname2').value + '&';
                    var dobd2 = document.getElementById("dobd2").value;
                    d2 = 'd2=' + dobd2 + '&';
                    var dobm2 = document.getElementById("dobm2").value;
                    m2 = 'm2=' + dobm2 + '&';
                    var doby2 = document.getElementById("doby2").value;
                    y2 = 'y2=' + doby2 + '&';
                    console.log("title02 = " + title02);
                    console.log("Name trav2 = " + t2 + " " + f2 + " " + s2);
                    var validTravTitle = isTravellerTitle(title02);
                    if (validTravTitle === false) {
                      console.log("traveller 2 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav2Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav2Title';
                    } else {
                      $("#errordivfortrav2Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname2').value);
                    if (validTravFname === false) {
                      console.log("traveller 2 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav2Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav2Fname';
                    } else {
                      $("#errordivfortrav2Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname2').value);
                    if (validTravSname === false) {
                      console.log("traveller 2 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav2Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav2Sname';
                    } else {
                      $("#errordivfortrav2Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd2 + '/' + dobm2 + '/' + doby2);
                    if (validTravDOB === false) {
                      console.log("traveller 2 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav2DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav2DOB';
                    } else {
                      $("#errordivfortrav2DOB").css('display', 'none');
                    }
                  }
                  var t3, f3, s3, d3, m3, y3;
                  t3, f3, s3, d3, m3, y3 = '';
                  if (numberOfTravellers > 2) {
                    var title03 = "";
                    if (document.querySelector("#titleMr3").classList.contains("active") === true) {
                      title03 = "Mr";
                    }
                    if (document.querySelector("#titleMrs3").classList.contains("active") === true) {
                      title03 = "Mrs";
                    }
                    if (document.querySelector("#titleMs3").classList.contains("active") === true) {
                      title03 = "Ms";
                    }
                    if (document.querySelector("#titleMiss3").classList.contains("active") === true) {
                      title03 = "Miss";
                    }
                    if (document.querySelector("#titleMx3").classList.contains("active") === true) {
                      title03 = "Mx";
                    }
                    if (document.querySelector("#titleDr3").classList.contains("active") === true) {
                      title03 = "Dr";
                    }
                    if (document.querySelector("#titleMast3").classList.contains("active") === true) {
                      title03 = "Master";
                    }
                    t3 = 't3=' + title03 + '&';
                    f3 = 'f3=' + document.getElementById('fname3').value + '&';
                    s3 = 's3=' + document.getElementById('sname3').value + '&';
                    var dobd3 = document.getElementById("dobd3").value;
                    d3 = 'd3=' + dobd3 + '&';
                    var dobm3 = document.getElementById("dobm3").value;
                    m3 = 'm3=' + dobm3 + '&';
                    var doby3 = document.getElementById("doby3").value;
                    y3 = 'y3=' + doby3 + '&';
                    console.log("title03 = " + title03);
                    console.log("Name trav3 = " + t3 + " " + f3 + " " + s3);
                    var validTravTitle = isTravellerTitle(title03);
                    if (validTravTitle === false) {
                      console.log("traveller 3 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav3Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav3Title';
                    } else {
                      $("#errordivfortrav3Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname3').value);
                    if (validTravFname === false) {
                      console.log("traveller 3 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav3Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav3Fname';
                    } else {
                      $("#errordivfortrav3Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname3').value);
                    if (validTravSname === false) {
                      console.log("traveller 3 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav3Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav3Sname';
                    } else {
                      $("#errordivfortrav3Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd3 + '/' + dobm3 + '/' + doby3);
                    if (validTravDOB === false) {
                      console.log("traveller 3 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav3DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav3DOB';
                    } else {
                      $("#errordivfortrav3DOB").css('display', 'none');
                    }
                  }
                  var t4, f4, s4, d4, m4, y4;
                  t4, f4, s4, d4, m4, y4 = '';
                  if (numberOfTravellers > 3) {
                    var title04 = "";
                    if (document.querySelector("#titleMr4").classList.contains("active") === true) {
                      title04 = "Mr";
                    }
                    if (document.querySelector("#titleMrs4").classList.contains("active") === true) {
                      title04 = "Mrs";
                    }
                    if (document.querySelector("#titleMs4").classList.contains("active") === true) {
                      title04 = "Ms";
                    }
                    if (document.querySelector("#titleMiss4").classList.contains("active") === true) {
                      title04 = "Miss";
                    }
                    if (document.querySelector("#titleMx4").classList.contains("active") === true) {
                      title04 = "Mx";
                    }
                    if (document.querySelector("#titleDr4").classList.contains("active") === true) {
                      title04 = "Dr";
                    }
                    if (document.querySelector("#titleMast4").classList.contains("active") === true) {
                      title04 = "Master";
                    }
                    t4 = 't4=' + title04 + '&';
                    f4 = 'f4=' + document.getElementById('fname4').value + '&';
                    s4 = 's4=' + document.getElementById('sname4').value + '&';
                    var dobd4 = document.getElementById("dobd4").value;
                    d4 = 'd4=' + dobd4 + '&';
                    var dobm4 = document.getElementById("dobm4").value;
                    m4 = 'm4=' + dobm4 + '&';
                    var doby4 = document.getElementById("doby4").value;
                    y4 = 'y4=' + doby4 + '&';
                    console.log("title04 = " + title04);
                    console.log("Name trav4 = " + t4 + " " + f4 + " " + s4);
                    var validTravTitle = isTravellerTitle(title04);
                    if (validTravTitle === false) {
                      console.log("traveller 4 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav4Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav4Title';
                    } else {
                      $("#errordivfortrav4Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname4').value);
                    if (validTravFname === false) {
                      console.log("traveller 4 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav4Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav4Fname';
                    } else {
                      $("#errordivfortrav4Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname4').value);
                    if (validTravSname === false) {
                      console.log("traveller 4 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav4Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav4Sname';
                    } else {
                      $("#errordivfortrav4Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd4 + '/' + dobm4 + '/' + doby4);
                    if (validTravDOB === false) {
                      console.log("traveller 4 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav4DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav4DOB';
                    } else {
                      $("#errordivfortrav4DOB").css('display', 'none');
                    }
                  }
                  var t5, f5, s5, d5, m5, y5;
                  t5, f5, s5, d5, m5, y5 = '';
                  if (numberOfTravellers > 4) {
                    var title05 = "";
                    if (document.querySelector("#titleMr5").classList.contains("active") === true) {
                      title05 = "Mr";
                    }
                    if (document.querySelector("#titleMrs5").classList.contains("active") === true) {
                      title05 = "Mrs";
                    }
                    if (document.querySelector("#titleMs5").classList.contains("active") === true) {
                      title05 = "Ms";
                    }
                    if (document.querySelector("#titleMiss5").classList.contains("active") === true) {
                      title05 = "Miss";
                    }
                    if (document.querySelector("#titleMx5").classList.contains("active") === true) {
                      title05 = "Mx";
                    }
                    if (document.querySelector("#titleDr5").classList.contains("active") === true) {
                      title05 = "Dr";
                    }
                    if (document.querySelector("#titleMast5").classList.contains("active") === true) {
                      title05 = "Master";
                    }
                    t5 = 't5=' + title05 + '&';
                    f5 = 'f5=' + document.getElementById('fname5').value + '&';
                    s5 = 's5=' + document.getElementById('sname5').value + '&';
                    var dobd5 = document.getElementById("dobd5").value;
                    d5 = 'd5=' + dobd5 + '&';
                    var dobm5 = document.getElementById("dobm5").value;
                    m5 = 'm5=' + dobm5 + '&';
                    var doby5 = document.getElementById("doby5").value;
                    y5 = 'y5=' + doby5 + '&';
                    console.log("title05 = " + title05);
                    console.log("Name trav5 = " + t5 + " " + f5 + " " + s5);
                    var validTravTitle = isTravellerTitle(title05);
                    if (validTravTitle === false) {
                      console.log("traveller 5 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav5Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav5Title';
                    } else {
                      $("#errordivfortrav5Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname5').value);
                    if (validTravFname === false) {
                      console.log("traveller 5 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav5Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav5Fname';
                    } else {
                      $("#errordivfortrav5Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname5').value);
                    if (validTravSname === false) {
                      console.log("traveller 5 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav5Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav5Sname';
                    } else {
                      $("#errordivfortrav5Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd5 + '/' + dobm5 + '/' + doby5);
                    if (validTravDOB === false) {
                      console.log("traveller 5 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav5DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav5DOB';
                    } else {
                      $("#errordivfortrav5DOB").css('display', 'none');
                    }
                  }
                  var t6, f6, s6, d6, m6, y6;
                  t6, f6, s6, d6, m6, y6 = '';
                  if (numberOfTravellers > 5) {
                    var title06 = "";
                    if (document.querySelector("#titleMr6").classList.contains("active") === true) {
                      title06 = "Mr";
                    }
                    if (document.querySelector("#titleMrs6").classList.contains("active") === true) {
                      title06 = "Mrs";
                    }
                    if (document.querySelector("#titleMs6").classList.contains("active") === true) {
                      title06 = "Ms";
                    }
                    if (document.querySelector("#titleMiss6").classList.contains("active") === true) {
                      title06 = "Miss";
                    }
                    if (document.querySelector("#titleMx6").classList.contains("active") === true) {
                      title06 = "Mx";
                    }
                    if (document.querySelector("#titleDr6").classList.contains("active") === true) {
                      title06 = "Dr";
                    }
                    if (document.querySelector("#titleMast6").classList.contains("active") === true) {
                      title06 = "Master";
                    }
                    t6 = 't6=' + title06 + '&';
                    f6 = 'f6=' + document.getElementById('fname6').value + '&';
                    s6 = 's6=' + document.getElementById('sname6').value + '&';
                    var dobd6 = document.getElementById("dobd6").value;
                    d6 = 'd6=' + dobd6 + '&';
                    var dobm6 = document.getElementById("dobm6").value;
                    m6 = 'm6=' + dobm6 + '&';
                    var doby6 = document.getElementById("doby6").value;
                    y6 = 'y6=' + doby6 + '&';
                    console.log("title06 = " + title06);
                    console.log("Name trav6 = " + t6 + " " + f6 + " " + s6);
                    var validTravTitle = isTravellerTitle(title06);
                    if (validTravTitle === false) {
                      console.log("traveller 6 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav6Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav6Title';
                    } else {
                      $("#errordivfortrav6Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname6').value);
                    if (validTravFname === false) {
                      console.log("traveller 6 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav6Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav6Fname';
                    } else {
                      $("#errordivfortrav6Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname6').value);
                    if (validTravSname === false) {
                      console.log("traveller 6 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav6Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav6Sname';
                    } else {
                      $("#errordivfortrav6Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd6 + '/' + dobm6 + '/' + doby6);
                    if (validTravDOB === false) {
                      console.log("traveller 6 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav6DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav6DOB';
                    } else {
                      $("#errordivfortrav6DOB").css('display', 'none');
                    }
                  }
                  var t7, f7, s7, d7, m7, y7;
                  t7, f7, s7, d7, m7, y7 = '';
                  if (numberOfTravellers > 6) {
                    var title07 = "";
                    if (document.querySelector("#titleMr7").classList.contains("active") === true) {
                      title07 = "Mr";
                    }
                    if (document.querySelector("#titleMrs7").classList.contains("active") === true) {
                      title07 = "Mrs";
                    }
                    if (document.querySelector("#titleMs7").classList.contains("active") === true) {
                      title07 = "Ms";
                    }
                    if (document.querySelector("#titleMiss7").classList.contains("active") === true) {
                      title07 = "Miss";
                    }
                    if (document.querySelector("#titleMx7").classList.contains("active") === true) {
                      title07 = "Mx";
                    }
                    if (document.querySelector("#titleDr7").classList.contains("active") === true) {
                      title07 = "Dr";
                    }
                    if (document.querySelector("#titleMast7").classList.contains("active") === true) {
                      title07 = "Master";
                    }
                    t7 = 't7=' + title07 + '&';
                    f7 = 'f7=' + document.getElementById('fname7').value + '&';
                    s7 = 's7=' + document.getElementById('sname7').value + '&';
                    var dobd7 = document.getElementById("dobd7").value;
                    d7 = 'd7=' + dobd7 + '&';
                    var dobm7 = document.getElementById("dobm7").value;
                    m7 = 'm7=' + dobm7 + '&';
                    var doby7 = document.getElementById("doby7").value;
                    y7 = 'y7=' + doby7 + '&';
                    console.log("title07 = " + title07);
                    console.log("Name trav7 = " + t7 + " " + f7 + " " + s7);
                    var validTravTitle = isTravellerTitle(title07);
                    if (validTravTitle === false) {
                      console.log("traveller 7 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav7Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav7Title';
                    } else {
                      $("#errordivfortrav7Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname7').value);
                    if (validTravFname === false) {
                      console.log("traveller 7 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav7Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav7Fname';
                    } else {
                      $("#errordivfortrav7Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname7').value);
                    if (validTravSname === false) {
                      console.log("traveller 7 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav7Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav7Sname';
                    } else {
                      $("#errordivfortrav7Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd7 + '/' + dobm7 + '/' + doby7);
                    if (validTravDOB === false) {
                      console.log("traveller 7 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav7DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav7DOB';
                    } else {
                      $("#errordivfortrav7DOB").css('display', 'none');
                    }
                  }
                  var t8, f8, s8, d8, m8, y8;
                  t8, f8, s8, d8, m8, y8 = '';
                  if (numberOfTravellers > 7) {
                    var title08 = "";
                    if (document.querySelector("#titleMr8").classList.contains("active") === true) {
                      title08 = "Mr";
                    }
                    if (document.querySelector("#titleMrs8").classList.contains("active") === true) {
                      title08 = "Mrs";
                    }
                    if (document.querySelector("#titleMs8").classList.contains("active") === true) {
                      title08 = "Ms";
                    }
                    if (document.querySelector("#titleMiss8").classList.contains("active") === true) {
                      title08 = "Miss";
                    }
                    if (document.querySelector("#titleMx8").classList.contains("active") === true) {
                      title08 = "Mx";
                    }
                    if (document.querySelector("#titleDr8").classList.contains("active") === true) {
                      title08 = "Dr";
                    }
                    if (document.querySelector("#titleMast8").classList.contains("active") === true) {
                      title08 = "Master";
                    }
                    t8 = 't8=' + title08 + '&';
                    f8 = 'f8=' + document.getElementById('fname8').value + '&';
                    s8 = 's8=' + document.getElementById('sname8').value + '&';
                    var dobd8 = document.getElementById("dobd8").value;
                    d8 = 'd8=' + dobd8 + '&';
                    var dobm8 = document.getElementById("dobm8").value;
                    m8 = 'm8=' + dobm8 + '&';
                    var doby8 = document.getElementById("doby8").value;
                    y8 = 'y8=' + doby8 + '&';
                    console.log("title08 = " + title08);
                    console.log("Name trav8 = " + t8 + " " + f8 + " " + s8);
                    var validTravTitle = isTravellerTitle(title08);
                    if (validTravTitle === false) {
                      console.log("traveller 8 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav8Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav8Title';
                    } else {
                      $("#errordivfortrav8Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname8').value);
                    if (validTravFname === false) {
                      console.log("traveller 8 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav8Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav8Fname';
                    } else {
                      $("#errordivfortrav8Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname8').value);
                    if (validTravSname === false) {
                      console.log("traveller 8 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav8Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav8Sname';
                    } else {
                      $("#errordivfortrav8Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd8 + '/' + dobm8 + '/' + doby8);
                    if (validTravDOB === false) {
                      console.log("traveller 8 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav8DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav8DOB';
                    } else {
                      $("#errordivfortrav8DOB").css('display', 'none');
                    }
                  }
                  var t9, f9, s9, d9, m9, y9;
                  t9, f9, s9, d9, m9, y9 = '';
                  if (numberOfTravellers > 8) {
                    var title09 = "";
                    if (document.querySelector("#titleMr9").classList.contains("active") === true) {
                      title09 = "Mr";
                    }
                    if (document.querySelector("#titleMrs9").classList.contains("active") === true) {
                      title09 = "Mrs";
                    }
                    if (document.querySelector("#titleMs9").classList.contains("active") === true) {
                      title09 = "Ms";
                    }
                    if (document.querySelector("#titleMiss9").classList.contains("active") === true) {
                      title09 = "Miss";
                    }
                    if (document.querySelector("#titleMx9").classList.contains("active") === true) {
                      title09 = "Mx";
                    }
                    if (document.querySelector("#titleDr9").classList.contains("active") === true) {
                      title09 = "Dr";
                    }
                    if (document.querySelector("#titleMast9").classList.contains("active") === true) {
                      title09 = "Master";
                    }
                    t9 = 't9=' + title09 + '&';
                    f9 = 'f9=' + document.getElementById('fname9').value + '&';
                    s9 = 's9=' + document.getElementById('sname9').value + '&';
                    var dobd9 = document.getElementById("dobd9").value;
                    d9 = 'd9=' + dobd9 + '&';
                    var dobm9 = document.getElementById("dobm9").value;
                    m9 = 'm9=' + dobm9 + '&';
                    var doby9 = document.getElementById("doby9").value;
                    y9 = 'y9=' + doby9 + '&';
                    console.log("title09 = " + title09);
                    console.log("Name trav9 = " + t9 + " " + f9 + " " + s9);
                    var validTravTitle = isTravellerTitle(title09);
                    if (validTravTitle === false) {
                      console.log("traveller 9 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav9Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav9Title';
                    } else {
                      $("#errordivfortrav9Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname9').value);
                    if (validTravFname === false) {
                      console.log("traveller 9 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav9Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav9Fname';
                    } else {
                      $("#errordivfortrav9Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname9').value);
                    if (validTravSname === false) {
                      console.log("traveller 9 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav9Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav9Sname';
                    } else {
                      $("#errordivfortrav9Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd9 + '/' + dobm9 + '/' + doby9);
                    if (validTravDOB === false) {
                      console.log("traveller 9 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav9DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav9DOB';
                    } else {
                      $("#errordivfortrav9DOB").css('display', 'none');
                    }
                  }
                  var t10, f10, s10, d10, m10, y10;
                  t10, f10, s10, d10, m10, y10 = '';
                  if (numberOfTravellers > 9) {
                    var title10 = "";
                    if (document.querySelector("#titleMr10").classList.contains("active") === true) {
                      title10 = "Mr";
                    }
                    if (document.querySelector("#titleMrs10").classList.contains("active") === true) {
                      title10 = "Mrs";
                    }
                    if (document.querySelector("#titleMs10").classList.contains("active") === true) {
                      title10 = "Ms";
                    }
                    if (document.querySelector("#titleMiss10").classList.contains("active") === true) {
                      title10 = "Miss";
                    }
                    if (document.querySelector("#titleMx10").classList.contains("active") === true) {
                      title10 = "Mx";
                    }
                    if (document.querySelector("#titleDr10").classList.contains("active") === true) {
                      title10 = "Dr";
                    }
                    if (document.querySelector("#titleMast10").classList.contains("active") === true) {
                      title10 = "Master";
                    }
                    t10 = 't10=' + title10 + '&';
                    f10 = 'f10=' + document.getElementById('fname10').value + '&';
                    s10 = 's10=' + document.getElementById('sname10').value + '&';
                    var dobd10 = document.getElementById("dobd10").value;
                    d10 = 'd10=' + dobd10 + '&';
                    var dobm10 = document.getElementById("dobm10").value;
                    m10 = 'm10=' + dobm10 + '&';
                    var doby10 = document.getElementById("doby10").value;
                    y10 = 'y10=' + doby10 + '&';
                    console.log("title10 = " + title10);
                    console.log("Name trav10 = " + t10 + " " + f10 + " " + s10);
                    var validTravTitle = isTravellerTitle(title10);
                    if (validTravTitle === false) {
                      console.log("traveller 10 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav10Title").css('display', 'inline');
                      window.location.hash = '#errordivfortrav10Title';
                    } else {
                      $("#errordivfortrav10Title").css('display', 'none');
                    }
                    var validTravFname = isTravellerFname(document.getElementById('fname10').value);
                    if (validTravFname === false) {
                      console.log("traveller 10 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav10Fname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav10Fname';
                    } else {
                      $("#errordivfortrav10Fname").css('display', 'none');
                    }
                    var validTravSname = isTravellerSname(document.getElementById('sname10').value);
                    if (validTravSname === false) {
                      console.log("traveller 10 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav10Sname").css('display', 'inline');
                      window.location.hash = '#errordivfortrav10Sname';
                    } else {
                      $("#errordivfortrav10Sname").css('display', 'none');
                    }
                    var validTravDOB = isTravellerDOB(dobd10 + '/' + dobm10 + '/' + doby10);
                    if (validTravDOB === false) {
                      console.log("traveller 10 details blank ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivfortrav10DOB").css('display', 'inline');
                      window.location.hash = '#errordivfortrav10DOB';
                    } else {
                      $("#errordivfortrav10DOB").css('display', 'none');
                    }
                  }
                  var getEmail = document.getElementById('email').value;
                  var getEmail = getEmail.toLowerCase();
                  if (getEmail === '') {
                    console.log("Email not entered 1");
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivEmail").focus().css('display', 'inline');
                    window.location.hash = '#errordivEmail';
                    console.log("*****errordivEmail*****");
                  } else {
                    if (checkEmail(getEmail) === false) // see checkEmail func below
                    {
                      console.log("Email not entered 2");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivEmail").focus().css('display', 'inline');
                      window.location.hash = '#errordivEmail';
                      console.log("*****errordivEmail*****");
                    } else {
                      setEmail(getEmail);
                      $("#errordivEmail").css('display', 'none');
                    }
                  }
                  var PCode1 = document.getElementById('pcode1').value;
                  var pcode1 = PCode1.toUpperCase();
                  //var PCode2 = document.getElementById('pcode2').value;
                  //var pcode2 = PCode2.toUpperCase();
                  pcode1 = pcode1.replace(/\s/g, '');
                  var Pcodetr = pcode1;
                  var PcodeLength = Pcodetr.length;
                  //var Validpost = /^[a-zA-Z0-9]+$/;
                  var Validpost = /^(?!GX)[A-Z]{1,2}\d[A-Z\d]? ?\d[A-Z]{2}$/;
                  var postcont = Validpost.test(Pcodetr);
                  var phoneno = document.getElementById('phoneno').value;
                  //var mobileno = document.getElementById('mobileno').value;
                  var mobileno = ' ';
                  if (mobileno === '') {
                    var mobileno = '0';
                  }
                  var houseno = document.getElementById('houseno').value;
                  var adline2 = document.getElementById('streetwalker').value;
                  var add1 = houseno + ' ' + adline2;
                  var town = document.getElementById('townwalker').value;
                  const fetchDrp = document.getElementById('crafty_postcode_lookup_result_option1');
                  if (fetchDrp === null) {
                    var dropdwn = null;
                  } else {
                    var dropdwn = document.getElementById('crafty_postcode_lookup_result_option1').value;
                  }
                  //var county = document.getElementById('county').value;
                  var county = "";
                  if ((county === '') || (county === 'No State')) {
                    var county = ' ';
                  }
                  $("#errordivphone").css('display', 'none');
                  $("#errordivaddress").css('display', 'none');
                  if ((PCode1 === '') || (phoneno === '') || (phoneno.length < 10) || (houseno === '') || (adline2 === '') || (town === '') || (PcodeLength < 5) || (postcont == false)) {
                    if ((phoneno === '') || (phoneno.length < 10)) {
                      canpostpage = false;
                      $("#errordivphone").focus().css('display', 'inline');
                      window.location.hash = '#errordivphone';
                      console.log("*****errordivphone*****");
                    } else {
                      $("#errordivphone").css('display', 'none');
                    }
                    if ((PCode1 === '') || (houseno === '') || (adline2 === '') || (town === '') || (PcodeLength < 5) || (postcont == false)) {
                      console.log("customer address not entered");
                      canpostpage = false;
                      $("#errordivaddress").focus().css('display', 'inline');
                      window.location.hash = '#errordivaddress';
                      console.log("*****errordivaddress*****");
                    }
                  } else {
                    fn1 = document.getElementById('fname1').value;
                    sn1 = document.getElementById('sname1').value;
                    var fn1 = $.trim(fn1);
                    var sn1 = $.trim(sn1);
                    //setPostCode(pcode1,phoneno,mobileno,add1,town,county);
                    setPostCode(pcode1, phoneno, mobileno, houseno, adline2, town, county, t1, fn1, sn1, getEmail);
                  }
                  //setPostCode(pcode1,pcode2,phoneno,mobileno,houseno,adline2,town,county);
                  var ex = "250";
                  //setExcess(ex);
                  var today2 = new Date();
                  var todaydd = today2.getDate();
                  var todaymm = today2.getMonth() + 1; //January is 0!
                  var todayyyy = today2.getFullYear();
                  var todayy = todayyyy.toString();
                  var todayy = (todayy.substring(2));
                  var todayTimeh = today2.getHours();
                  var todayTimem = today2.getMinutes();
                  console.log("today = " + today2);
                  console.log("todaymm = " + todaymm);
                  console.log("todaydd = " + todaydd);
                  console.log("todayyyy = " + todayyyy);
                  console.log("todayy = " + todayy);
                  console.log("todayTimeh = " + todayTimeh);
                  console.log("todayTimem = " + todayTimem);
                  dt = 'dt=' + todaydd + '&';
                  mt = 'mt=' + todaymm + '&';
                  yt = 'yt=' + todayy + '&';
                  ht = 'ht=' + todayTimeh + '&';
                  nt = 'nt=' + todayTimem + '&';
                  senddata = wsid + scheme + dt + mt + yt + ht + nt + t1 + f1 + s1 + d1 + m1 + y1 + t2 + f2 + s2 + d2 + m2 + y2 + t3 + f3 + s3 + d3 + m3 + y3 + t4 + f4 + s4 + d4 + m4 + y4 + /////// saved to here
                    t5 + f5 + s5 + d5 + m5 + y5 + t6 + f6 + s6 + d6 + m6 + y6 + t7 + f7 + s7 + d7 + m7 + y7 + t8 + f8 + s8 + d8 + m8 + y8 + t9 + f9 + s9 + d9 + m9 + y9 + t10 + f10 + s10 + d10 + m10 + y10;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/traveller-details.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    console.log("EYYYYYYYY");
                    canpost = canpost + parseInt(obj.code);
                    console.log("Still going");
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    // Do not allow to move as failed
                    //event.preventDefault();
                    canpostpage = false;
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ////////////// End Start traveller validation inc email and post code
                function checkEmail(email) {
                  var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
                  return regex.test(email);
                }

                function calculateAge(birthday) { // birthday is a date
                  var ageDifMs = Date.now() - birthday.getTime();
                  console.log(Date.now() + " - " + birthday.getTime());
                  console.log("ageDifMs = " + ageDifMs);
                  var ageDate = new Date(ageDifMs); // miliseconds from epoch
                  console.log("ageDate = " + ageDate);
                  console.log("ab date = " + Math.abs(ageDate.getUTCFullYear() - 1970));
                  return Math.abs(ageDate.getUTCFullYear() - 1970);
                }

                function getAge(dateString) {
                  var today = new Date();
                  console.log("todays date = " + today);
                  var birthDate = new Date(dateString);
                  var birthMonth = (birthDate.getMonth() - 1);
                  console.log("birthDate = " + birthDate);
                  var age = today.getFullYear() - birthDate.getFullYear();
                  console.log("age = " + age);
                  var m = today.getMonth() - birthMonth;
                  console.log("month = " + m);
                  if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
                    age--;
                  }
                  console.log("finalage = " + age);
                  return age;
                }
                ///////  Start travellers fields collect and submit
                $(document).ready(function() {
                  travellerType = 'I';
                  $("#travellersBox").html(trav1collect + eandp);
                  document.getElementById('travNumberHidden').value = '1';
                  $('#reschk').hide();
                  $("div.showResid").hide();
                  $("div.css-radio-001-show-1trav").show();
                  $("#showTravsContBtn").show();
                  $("div.css-radio-001-show-numTravSelect2to7").hide("slow");
                  $("div.css-radio-001-show-numTravSelect2to10").hide("slow");
                  $("#showTravType").html(" an Individual traveller");
                  $("#showNoTravs").hide();
                  setTravellerType('I');
                });
                $(".css-radio-001-indiv").click(function() {
                  travellerType = 'I';
                  $("#travellersBox").html(trav1collect + eandp);
                  document.getElementById('travNumberHidden').value = '1';
                  $("div.css-radio-001-show-1trav").show();
                  $("#showTravsContBtn").show();
                  $("div.css-radio-001-show-numTravSelect2to7").hide("slow");
                  $("div.css-radio-001-show-numTravSelect2to10").hide("slow");
                  $("#showTravType").html(" an Individual traveller");
                  $("#showNoTravs").hide();
                  setTravellerType('I');
                });
                $(".css-radio-001-couple").click(function() {
                  travellerType = 'C';
                  $("#travellersBox").html(trav1collect + trav2collect + eandp);
                  document.getElementById('travNumberHidden').value = '2';
                  $("div.css-radio-001-show-1trav").show();
                  $("div.css-radio-001-show-2trav").show();
                  $("#showTravsContBtn").show();
                  $("div.css-radio-001-show-numTravSelect2to7").hide("slow");
                  $("div.css-radio-001-show-numTravSelect2to10").hide("slow");
                  $("#showTravType").html("a Couple");
                  $("#showNoTravs").hide();
                  setTravellerType('C');
                });
                $(".css-radio-001-family").click(function() {
                  travellerType = 'F';
                  $("#travellersBox").html(trav1collect + trav2collect + eandp);
                  document.getElementById('travNumberHidden').value = '2';
                  $("div.css-radio-001-show-numTravSelect2to7").show("slow");
                  $("div.css-radio-001-show-numTravSelect2to10").hide("slow");
                  $("#showTravType").html("a Family with");
                  $("#showNoTravs").hide();
                  setTravellerType('F');
                });
                $(".css-radio-001-group").click(function() {
                  travellerType = 'G';
                  $("#travellersBox").html(trav1collect + trav2collect + eandp);
                  document.getElementById('travNumberHidden').value = '2';
                  $("div.css-radio-001-show-numTravSelect2to10").show("slow");
                  $("div.css-radio-001-show-numTravSelect2to7").hide("slow");
                  $("#showTravType").html("a Group with");
                  $("#showNoTravs").hide();
                  setTravellerType('G');
                });
                $('.numberofTravsFamily').change(function() {
                  if ($('.numberofTravsFamily option:selected').val() == 2) {
                    $("#travellersBox").html(trav1collect + trav2collect + eandp);
                    document.getElementById('travNumberHidden').value = '2';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 3) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + eandp);
                    document.getElementById('travNumberHidden').value = '3';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 4) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + eandp);
                    document.getElementById('travNumberHidden').value = '4';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 5) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + eandp);
                    document.getElementById('travNumberHidden').value = '5';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 6) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + eandp);
                    document.getElementById('travNumberHidden').value = '6';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 7) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + eandp);
                    document.getElementById('travNumberHidden').value = '7';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 8) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + trav8collect + eandp);
                    document.getElementById('travNumberHidden').value = '8';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                    $("div.css-radio-001-show-8trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 9) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + trav8collect + trav9collect + eandp);
                    document.getElementById('travNumberHidden').value = '9';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                    $("div.css-radio-001-show-8trav").show();
                    $("div.css-radio-001-show-9trav").show();
                  }
                  if ($('.numberofTravsFamily option:selected').val() == 10) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + trav8collect + trav9collect + trav10collect + eandp);
                    document.getElementById('travNumberHidden').value = '10';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                    $("div.css-radio-001-show-8trav").show();
                    $("div.css-radio-001-show-9trav").show();
                    $("div.css-radio-001-show-10trav").show();
                  } else {
                    // add if needed
                  }
                });
                $('.numberofTravsGroup').change(function() {
                  if ($('.numberofTravsGroup option:selected').val() == 2) {
                    $("#travellersBox").html(trav1collect + trav2collect + eandp);
                    document.getElementById('travNumberHidden').value = '2';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 3) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + eandp);
                    document.getElementById('travNumberHidden').value = '3';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 4) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + eandp);
                    document.getElementById('travNumberHidden').value = '4';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 5) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + eandp);
                    document.getElementById('travNumberHidden').value = '5';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 6) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + eandp);
                    document.getElementById('travNumberHidden').value = '6';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 7) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + eandp);
                    document.getElementById('travNumberHidden').value = '7';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 8) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + trav8collect + eandp);
                    document.getElementById('travNumberHidden').value = '8';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                    $("div.css-radio-001-show-8trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 9) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + trav8collect + trav9collect + eandp);
                    document.getElementById('travNumberHidden').value = '9';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                    $("div.css-radio-001-show-8trav").show();
                    $("div.css-radio-001-show-9trav").show();
                  }
                  if ($('.numberofTravsGroup option:selected').val() == 10) {
                    $("#travellersBox").html(trav1collect + trav2collect + trav3collect + trav4collect + trav5collect + trav6collect + trav7collect + trav8collect + trav9collect + trav10collect + eandp);
                    document.getElementById('travNumberHidden').value = '10';
                    $("div.css-radio-001-show-1trav").show();
                    $("div.css-radio-001-show-2trav").show();
                    $("div.css-radio-001-show-3trav").show();
                    $("div.css-radio-001-show-4trav").show();
                    $("div.css-radio-001-show-5trav").show();
                    $("div.css-radio-001-show-6trav").show();
                    $("div.css-radio-001-show-7trav").show();
                    $("div.css-radio-001-show-8trav").show();
                    $("div.css-radio-001-show-9trav").show();
                    $("div.css-radio-001-show-10trav").show();
                  } else {
                    // add if needed
                  }
                });
                /////// Start travellers fields collect and submit
                ///////// Set Email
                function setEmail(emailType) {
                  wsid = 'wsid=' + WSID1 + '&';
                  et = 'et=' + emailType;
                  senddata = wsid + et;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/email-address.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + parseInt(obj.code);
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ///////// End Set Email
                ///////// Start Set Excess
                function setExcess(ex) {
                  wsid = 'wsid=' + WSID1 + '&';
                  ex = 'ex=' + ex + '&';
                  senddata = wsid + ex;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/slider.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                  }).fail(function(jqxhr, textStatus, errorThrown) {}).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ///////// End Set Excess
                ///////// Set post code - no longer used so have moved the button contols to setEmail func
                function setPostCode(p1, pno, mno, hno, add1, tn, cty, t1, f1, s1, email) {
                  wsid = 'wsid=' + WSID1 + '&';
                  var scheme = 'scheme=' + 'IGC' + '&';
                  p1 = 'p1=' + p1 + '&';
                  //p2 = 'p2=' + p2  + '&';
                  pno = 'pno=' + pno + '&';
                  mno = 'mno=' + mno + '&';
                  hno = 'hno=' + hno + '&';
                  add1 = 'add1=' + add1 + '&';
                  tn = 'tn=' + tn + '&';
                  cty = 'cty=' + cty + '&';
                  t1 = t1 + '&';
                  f1 = 'f1=' + f1 + '&';
                  s1 = 's1=' + s1 + '&';
                  em = 'em=' + email + '&';
                  senddata = wsid + scheme + p1 + pno + mno + hno + add1 + tn + cty + t1 + f1 + s1 + em;
                  console.log("#####scheme = " + scheme);
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/postcode.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    // const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + 1;
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                    //console.log(wsid + '|' + p1 + '|' + p2 + '|' + pno + '|' + mno + '|' + add1 + '|' + tn + '|' + cty);
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ///////// End Set post code
                ///////// Set single country
                function setSingleCountry(countryType) {
                  wsid = 'wsid=' + WSID1 + '&';
                  ct = 'ct=' + countryType;
                  senddata = wsid + ct;
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/country-type.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + parseInt(obj.code);
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                //  }); /// close doc ready
                ///////// Set single country
                ///////// Marketing email post permissions
                function setMarketingPerms(noMarket, noEmail, noPost, NoText) {
                  var title01 = "";
                  if (document.querySelector("#titleMr1").classList.contains("active") === true) {
                    title01 = "Mr";
                  }
                  if (document.querySelector("#titleMrs1").classList.contains("active") === true) {
                    title01 = "Mrs";
                  }
                  if (document.querySelector("#titleMiss1").classList.contains("active") === true) {
                    title01 = "Miss";
                  }
                  if (document.querySelector("#titleDr1").classList.contains("active") === true) {
                    title01 = "Dr";
                  }
                  if (document.querySelector("#titleMast1").classList.contains("active") === true) {
                    title01 = "Master";
                  }
                  wsid = 'wsid=' + WSID1 + '&';
                  var nomark1 = 'N';
                  var nomark2 = 'N';
                  var nomark3 = 'N ';
                  var nomark4 = 'N';
                  var nomark5 = 'N';
                  if (document.getElementById('noemailCheck').checked === true) {
                    nomark1 = 'Y';
                  }
                  if (document.getElementById('nopostCheck').checked === true) {
                    nomark2 = 'Y';
                  }
                  if (document.getElementById('notextCheck').checked === true) {
                    nomark3 = 'Y';
                  }
                  if (document.getElementById('nophoneCheck').checked === true) {
                    nomark4 = 'Y';
                  }
                  ne = 'ne=' + nomark1 + '&'; // this is how you declare the variables - ne or np etc can be anything
                  np = 'np=' + nomark2 + '&';
                  ns = 'ns=' + nomark3 + '&';
                  nt = 'nt=' + nomark4 + '&';
                  var scheme = 'scheme=' + 'IGC' + '&'; // need to add the var at the front if it is the first time being declared e.g. nomark1 is decalred above
                  t1 = 't1=' + title01 + '&';
                  f1 = 'f1=' + document.getElementById('fname1').value + '&';
                  s1 = 's1=' + document.getElementById('sname1').value + '&';
                  var dobd1 = document.getElementById("dobd1").value;
                  d1 = 'd1=' + dobd1 + '&';
                  var dobm1 = document.getElementById("dobm1").value;
                  m1 = 'm1=' + dobm1 + '&';
                  var doby1 = document.getElementById("doby1").value;
                  y1 = 'y1=' + doby1 + '&';
                  e1 = 'e1=' + document.getElementById('email').value; + '&';
                  senddata = wsid + ne + np + ns + nt + scheme + t1 + f1 + s1 + d1 + m1 + y1 + e1; // this is how you pass them
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/marketing-perms.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                    canpost = canpost + parseInt(obj.code);
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };

                function setMemberMarketingP(noMarket, noEmail, noPost, NoText) {
                  wsid = 'wsid=' + WSID1 + '&';
                  var noMememail = 'N';
                  if (document.getElementById('nomemberemailCheck').checked === true) {
                    noMememail = 'Y';
                  }
                  nme = 'nme=' + noMememail;
                  senddata = wsid + nme;
                  console.log("senddata memmark = " + senddata);
                  var jqxhr = $.ajax({
                    type: "post",
                    cache: false,
                    url: "../ajax/member-marketing-perms.php?i=" + WSID1,
                    data: senddata
                  }).done(function(msg) {
                    console.log("member marketing perms complete");
                    const obj = JSON.parse(msg);
                    var anyerror = "Error:";
                  }).fail(function(jqxhr, textStatus, errorThrown) {
                    // we did not get a good response so deal with it here
                    canpost = 999;
                  }).always(function() {
                    // do anything we would do come pass or fail
                  });
                };
                ///////// End Marketing email post permissions
                ///////// datepicker
                $(document).ready(function() {
                  $("#datefrom").datepicker({
                    numberOfMonths: 1,
                    dateFormat: 'dd/mm/yy',
                    minDate: 'today',
                    maxDate: '365',
                    onSelect: function(selected) {
                      $("#dateto").datepicker("option", "minDate", selected)
                    }
                  });
                  $("#dateto").datepicker({
                    numberOfMonths: 1,
                    dateFormat: 'dd/mm/yy',
                    minDate: 'today',
                    onSelect: function(selected) {
                      $("#datefrom").datepicker("option", selected)
                    }
                  });
                });
                $(function() {
                  $('input#dateannual').datepicker({
                    dateFormat: 'dd/mm/yy',
                    minDate: 'today',
                    maxDate: '60',
                    numberOfMonths: 1
                  });
                });
                $(".easyselect-box-item").click(function() {
                  document.getElementById("errordivCntryMax").style.display = "none";
                  console.log('easyselect-box-item clicked!!!');
                });
                $(".css-radio-001-other").click(function() {
                  //$("#dateto").datepicker("show");
                  $("#v7cntryFSU").hide();
                  $("#v7cntry").show("show");
                  $("#errordivCntry").css('display', 'none');
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                  } else {
                    document.getElementById("single-country-selector").style.display = "inline";
                    document.getElementById("searchTextW").style.display = "inline";
                    document.getElementById("errordivCntryMax").style.display = "none";
                  }
                });
                $(".css-radio-001-france").click(function() {
                  $("#errordivCntry").css('display', 'none');
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",82";
                    } else {
                      values = "82";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                $(".css-radio-001-spain").click(function() {
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  $("#errordivCntry").css('display', 'none');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    $("#v7cntry").show("show");
                    $("#searchTextW").css('display', 'none');
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",219";
                    } else {
                      values = "219";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                $(".css-radio-001-usa").click(function() {
                  document.getElementById("single-country-selector").style.display = "none";
                  $("#searchTextW").css('display', 'none');
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  $("#errordivCntry").css('display', 'none');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    $("#v7cntry").show("show");
                    $("#searchTextW").css('display', 'none');
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",253";
                    } else {
                      values = "253";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                $(".css-radio-001-uk").click(function() {
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  $("#errordivCntry").css('display', 'none');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    $("#v7cntry").show("show");
                    $("#searchTextW").css('display', 'none');
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",251";
                    } else {
                      values = "251";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                $(".css-radio-001-turkey").click(function() {
                  document.getElementById("single-country-selector").style.display = "none";
                  $("#searchTextW").css('display', 'none');
                  $("#errordivCntry").css('display', 'none');
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    $("#v7cntry").show("show");
                    $("#searchTextW").css('display', 'none');
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",244";
                    } else {
                      values = "244";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                $(".css-radio-001-portugal").click(function() {
                  $("#errordivCntry").css('display', 'none');
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    $("#v7cntry").show("show");
                    $("#searchTextW").css('display', 'none');
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",192";
                    } else {
                      values = "192";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                $(".css-radio-001-greece").click(function() {
                  $("#errordivCntry").css('display', 'none');
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    $("#v7cntry").show("show");
                    $("#searchTextW").css('display', 'none');
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",92";
                    } else {
                      values = "92";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                $(".css-radio-001-italy").click(function() {
                  $("#errordivCntry").css('display', 'none');
                  var places = $('input[name=ACOUNTRYMC]').val().split(',');
                  console.log('places = ' + places);
                  if (places.length > 9) {
                    console.log('more than 9');
                    document.getElementById("single-country-selector").style.display = "none";
                    document.getElementById("errordivCntryMax").style.display = "inline";
                    // make read only
                    console.log('No more countries ');
                  } else {
                    console.log("We have selected " + $('#country').val());
                    var values = $('#country').val();
                    if (values) {
                      values = values + ",117";
                    } else {
                      values = "117";
                    }
                    console.log("bob = " + values);
                    $.each(values.split(","), function(i, e) {
                      $("#country option[value='" + e + "']").prop("selected", true);
                    });
                    $('#country').data('easySelect').refresh();
                  }
                });
                //////// datepicker end
                ///////// General button functions
                $(".css-radio-001-ire").click(function() {
                  window.location = 'https://www.allcleartravel.com';
                });
                $(".css-radio-001-channel").click(function() {
                  //window.location = '/CGI-BIN/LANSAWEB?PROCFUN+ALLTRAVEL+BGC6001+ALC+ENG';
                  $(".channelMsgBox").css('display', 'inline');
                });
                $(".css-radio-001-isleman").click(function() {
                  //window.location = '/CGI-BIN/LANSAWEB?PROCFUN+ALLTRAVEL+BGC6001+ALC+ENG';
                  $(".channelMsgBox").css('display', 'inline');
                });
                $(".countryFloat1").click(function() {
                  $("#cntryBox").css('display', 'none');
                });
                $(".single-001-button").click(function() {
                  $("#dateSec").show("slow");
                  $("div.showSingle").show("slow");
                  $("div.showSingleFAQ").show("slow");
                  $("div.showAnnual").hide("slow");
                  isannual = false;
                  console.log("isannual = " + isannual);
                });
                $(".switch-001").click(function() {
                  $(".switch-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switch2-001").click(function() {
                  $(".switch2-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switchres-001").click(function() {
                  $(".switchres-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".css-radio-001-resN").click(function() {
                  $("div.showResid").show("slow");
                  //ResBtn = false;
                  console.log("ResBtn = " + ResBtn);
                  $("#errordivResident1").hide();
                });
                $(".css-radio-001-resY").click(function() {
                  $("div.showResid").hide("slow");
                  ResBtn = true;
                  console.log("ResBtn = " + ResBtn);
                  $("#errordivResident1").hide();
                });
                $(".css-radio-001-cruN").click(function() {
                  CruBtn = false;
                  CruBtn2 = true;
                  $('.css-radio-001-cruN').addClass("active");
                  $('.css-radio-001-cruY').removeClass("active");
                  console.log("CruBtn = " + CruBtn);
                });
                $(".css-radio-001-cruY").click(function() {
                  CruBtn = true;
                  CruBtn2 = false;
                  $('.css-radio-001-cruY').addClass("active");
                  $('.css-radio-001-cruN').removeClass("active");
                  console.log("CruBtn = " + CruBtn);
                });
                $(".switchwar1-001").click(function() {
                  $(".switchwar1-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switchwar2-001").click(function() {
                  $(".switchwar2-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switchwar3-001").click(function() {
                  $(".switchwar3-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switchROI-001").click(function() {
                  $(".switchROI-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switchIOM-001").click(function() {
                  $(".switchIOM-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switchCHI-001").click(function() {
                  $(".switchCHI-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                });
                $(".switchUK-001").click(function() {
                  $(".switchEUR-001").removeClass("active");
                  $(".switchWWX-001").removeClass("active");
                  $(".switchWWI-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                  document.getElementById("annRegionCheckMark").style.display = "inline-block";
                });
                $(".switchEUR-001").click(function() {
                  //$(".switchEUR-001").removeClass("active");
                  $(".switchUK-001").removeClass("active");
                  $(".switchWWX-001").removeClass("active");
                  $(".switchWWI-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                  document.getElementById("annRegionCheckMark").style.display = "inline-block";
                });
                $(".switchWWX-001").click(function() {
                  $(".switchUK-001").removeClass("active");
                  $(".switchEUR-001").removeClass("active");
                  $(".switchWWI-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                  document.getElementById("annRegionCheckMark").style.display = "inline-block";
                });
                $(".switchWWI-001").click(function() {
                  $(".switchUK-001").removeClass("active");
                  $(".switchEUR-001").removeClass("active");
                  $(".switchWWX-001").removeClass("active");
                  //Add class
                  $(this).addClass("active");
                  document.getElementById("annRegionCheckMark").style.display = "inline-block";
                });
                $(".annual-001-button").click(function() {
                  $("div.showAnnual").show("slow");
                  $("div.showSingle").hide("slow");
                  $("div.showSingleFAQ").hide();
                  isannual = true;
                  console.log("isannual = " + isannual);
                  policyTypeSelected = 'A';
                });
                $("#uka").click(function() {
                  setAnnualRegion('1');
                  uk = document.getElementById('uka').checked = true;
                  euro = document.getElementById('euro').checked = false;
                  wwx = document.getElementById('wwx').checked = false;
                  wwi = document.getElementById('wwi').checked = false;
                  console.log(" annual UK uk = " + uk);
                });
                $("#euro").click(function() {
                  setAnnualRegion('2');
                  uk = document.getElementById('uka').checked = false;
                  euro = document.getElementById('euro').checked = true;
                  wwx = document.getElementById('wwx').checked = false;
                  wwi = document.getElementById('wwi').checked = false;
                  console.log(" annual EU euro = " + euro);
                });
                $("#wwx").click(function() {
                  setAnnualRegion('4');
                  uk = document.getElementById('uka').checked = false;
                  euro = document.getElementById('euro').checked = false;
                  wwx = document.getElementById('wwx').checked = true;
                  wwi = document.getElementById('wwi').checked = false;
                  console.log(" annual wwx ");
                  console.log(" annual wwx wwx = " + wwx);
                });
                $("#wwi").click(function() {
                  setAnnualRegion('5');
                  uk = document.getElementById('uka').checked = false;
                  euro = document.getElementById('euro').checked = false;
                  wwx = document.getElementById('wwx').checked = false;
                  wwi = document.getElementById('wwi').checked = true;
                  console.log(" annual wwi ");
                  console.log(" annual wwi wwi = " + wwi);
                });
                $("#submitCompletedPage").click(function(event) {
                  //check if annual or single
                  if (canpostpage === false) {
                    $(".loaderMsgBox").css('display', 'none');
                  } else {
                    $(".loaderMsgBox").css('display', 'inline');
                  }
                  canpost = 0;
                  canpostpage = true;
                  console.log("2 !!! canpostpage = " + canpostpage);
                  event.preventDefault();
                  $("#errordivResident1").hide();
                  $("#errordivResident2").hide();
                  if (ResBtn == false) {
                    //event.preventDefault();
                    $('html, body').animate({
                      scrollTop: $("#ResQ").offset().top
                    }, 1000);
                    $("#errordivResident1").show();
                    $("#errordivResident2").show();
                    canpostpage = false;
                  }
                  //scroll to top validation RA
                  if (medcheck == false) {
                    canpostpage = false;
                    $("#errordivMed").show();
                  } else {
                    $("#errordivMed").hide();
                  }
                  if (memcheck == false) {
                    canpostpage = false;
                  }
                  console.log("Start complete ");
                  console.log("isannual = " + isannual);
                  if (isannual == true) {
                    console.log("Annual");
                    setAnnualStart();
                  } else {
                    console.log("Single");
                    setSingleStart();
                  }
                  var bob = document.getElementById('travNumberHidden').value;
                  console.log("here 2");
                  CheckUnder18();
                  setTravellerDetails(bob);
                  setCruise(CruBtn);
                  if (medcheck === false) {
                    canpostpage = false;
                  } else {
                    if (medVal === true) {
                      var medCh = 'Y';
                    } else {
                      var medCh = 'N';
                    }
                    setmed(medCh);
                  }
                  setMarketingPerms();
                  setMemberMarketingP();
                  if (memVal === true) {
                    checkPromoCode();
                  }
                  if (newmemVal === true) {
                    newMember();
                  }
                  console.log("memVal = " + memVal);
                  console.log("newmemVal = " + newmemVal);
                  if ((memVal === false) && (newmemVal === false)) {
                    notMember();
                  }
                  console.log("canpost = " + canpost);
                  checkforwsid(WSID1);
                  if (canpostpage === false) {
                    //errors dont move
                    console.log("STAHP!!!! canpostpage = " + canpostpage);
                    $(".loaderMsgBox").css('display', 'none');
                  } else {
                    canwepost();
                  }
                });
                //
                function checkforwsid(pagewsid) {
                  var validWSID = parseInt(pagewsid);
                  if (!Number.isInteger(validWSID)) {
                    // we don't have a valid wsid
                    alert("Sorry the page did not load correctly");
                    location.href = 'https://www.allcleartravel.co.uk/?e=nowsid';
                  } else {
                    console.log("WSID seems good = |" + validWSID + "|");
                  }
                }

                function canwepost() {
                  console.log("canpost is set at = " + canpost);
                  if (canpost === 8) {
                    CallNext('Z', 'INSUREGO', 'IAC7001', '38705335', '');
                    console.log("ARE WE HERE");
                  } else if (canpost > 500) {
                    //abort abort error error
                    console.log("ERROR = " + canpost);
                    $(".loaderMsgBox").css('display', 'none');
                  } else {
                    console.log("Set time out ");
                    setTimeout(function() {
                      canwepost();
                    }, 1000);
                    //$(".loaderMsgBox").css('display', 'none');
                  }
                }

                function CheckUnder18(event) {
                  console.log("Check under 18 section");
                  if (document.getElementById('C').checked) {
                    travellerType = 'C';
                  }
                  if (document.getElementById('F').checked) {
                    travellerType = 'F';
                  }
                  if (document.getElementById('G').checked) {
                    travellerType = 'G';
                  }
                  if (document.getElementById('I').checked) {
                    travellerType = 'I';
                  }
                  console.log("travellerType = " + travellerType);
                  var couple18first = getAge(new Date(document.getElementById('doby1').value, document.getElementById('dobm1').value, document.getElementById('dobd1').value));
                  var couple18firstS = couple18first.toString();
                  if (couple18firstS == "-1") {
                    canpostpage = false;
                    $("#errordivforNotBorn1").css('display', 'inline');
                    $("#trav1div").focus();
                    window.location.hash = '#trav1div';
                  } else {
                    $("#errordivforNotBorn1").css('display', 'none');
                  }
                  if (couple18first < 18) {
                    //showAlert('AllClearTravel', 'Traveller must be over 18 years old');
                    //return;
                    console.log("Traveller must be over 18 years old ");
                    canpostpage = false;
                    //event.preventDefault();
                    $("#errordivforCoupleUnder18c").css('display', 'inline');
                    $("#trav1div").focus();
                    window.location.hash = '#trav1div';
                    console.log("*****errordivforCoupleUnder18c*****");
                  } else {
                    $("#errordivforCoupleUnder18c").css('display', 'none');
                  }
                  if (travellerType === 'C') {
                    var couple18second = getAge(new Date(document.getElementById('doby2').value, document.getElementById('dobm2').value, document.getElementById('dobd2').value));
                    if ((couple18first < 18) || (couple18second < 18)) {
                      //showAlert('AllClearTravel', 'Both travellers must be over 18 years old');
                      //return;
                      console.log("Both travellers must be over 18 years old ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivforCoupleUnder18a").css('display', 'inline');
                      $("#errordivforCoupleUnder18b").css('display', 'inline');
                      window.location.hash = '#errordivforCoupleUnder18a';
                    } else {
                      $("#errordivforCoupleUnder18a").css('display', 'none');
                      $("#errordivforCoupleUnder18b").css('display', 'none');
                    }
                  }
                  if (travellerType === 'F') {
                    var couple18second = getAge(new Date(document.getElementById('doby2').value, document.getElementById('dobm2').value, document.getElementById('dobd2').value));
                    var couple18secondS = couple18second.toString();
                    var couple18third = null;
                    var couple18thirdS = null;
                    if (document.getElementById('doby3') != null) {
                      couple18third = getAge(new Date(document.getElementById('doby3').value, document.getElementById('dobm3').value, document.getElementById('dobd3').value));
                      couple18thirdS = couple18third.toString();
                    }
                    var couple18fourth = null;
                    var couple18fourthS = null;
                    if (document.getElementById('doby4') != null) {
                      couple18fourth = getAge(new Date(document.getElementById('doby4').value, document.getElementById('dobm4').value, document.getElementById('dobd4').value));
                      couple18fourthS = couple18fourth.toString();
                    }
                    var couple18fifth = null;
                    var couple18fifthS = null;
                    if (document.getElementById('doby5') != null) {
                      couple18fifth = getAge(new Date(document.getElementById('doby5').value, document.getElementById('dobm5').value, document.getElementById('dobd5').value));
                      couple18fifthS = couple18fifth.toString();
                    }
                    var couple18sixth = null;
                    var couple18sixthS = null;
                    if (document.getElementById('doby6') != null) {
                      couple18sixth = getAge(new Date(document.getElementById('doby6').value, document.getElementById('dobm6').value, document.getElementById('dobd6').value));
                      couple18sixthS = couple18sixth.toString();
                    }
                    var couple18seventh = null;
                    var couple18seventhS = null;
                    if (document.getElementById('doby7') != null) {
                      couple18seventh = getAge(new Date(document.getElementById('doby7').value, document.getElementById('dobm7').value, document.getElementById('dobd7').value));
                      couple18seventhS = couple18seventh.toString();
                    }
                    if (couple18secondS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn2").css('display', 'inline');
                      $("#trav2div").focus();
                      window.location.hash = '#trav2div';
                    } else {
                      $("#errordivforNotBorn2").css('display', 'none');
                    }
                    if (couple18thirdS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn3").css('display', 'inline');
                      $("#trav3div").focus();
                      window.location.hash = '#trav3div';
                    } else {
                      $("#errordivforNotBorn3").css('display', 'none');
                    }
                    if (couple18fourthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn4").css('display', 'inline');
                      $("#trav4div").focus();
                      window.location.hash = '#trav4div';
                    } else {
                      $("#errordivforNotBorn4").css('display', 'none');
                    }
                    if (couple18fifthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn5").css('display', 'inline');
                      $("#trav5div").focus();
                      window.location.hash = '#trav5div';
                    } else {
                      $("#errordivforNotBorn5").css('display', 'none');
                    }
                    if (couple18sixthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn6").css('display', 'inline');
                      $("#trav6div").focus();
                      window.location.hash = '#trav6div';
                    } else {
                      $("#errordivforNotBorn6").css('display', 'none');
                    }
                    if (couple18seventhS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn7").css('display', 'inline');
                      $("#trav7div").focus();
                      window.location.hash = '#trav7div';
                    } else {
                      $("#errordivforNotBorn7").css('display', 'none');
                    }
                    var double18 = 0;
                    if (couple18first > 17) {
                      double18 += 1;
                    }
                    if (couple18second > 17) {
                      double18 += 1;
                    }
                    if (couple18third > 17) {
                      double18 += 1;
                    }
                    if (couple18fourth > 17) {
                      double18 += 1;
                    }
                    if (couple18fifth > 17) {
                      double18 += 1;
                    }
                    if (couple18sixth > 17) {
                      double18 += 1;
                    }
                    if (couple18seventh > 17) {
                      double18 += 1;
                    }
                    var Under18 = 0;
                    if (couple18first < 18) {
                      if (couple18first == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18second < 18) {
                      if (couple18second == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18third < 18) {
                      if (couple18third == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18fourth < 18) {
                      if (couple18fourth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18fifth < 18) {
                      if (couple18fifth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18sixth < 18) {
                      if (couple18sixth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18seventh < 18) {
                      if (couple18seventh == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    console.log('Under18 is = ' + Under18);
                    if (Under18 < 1) {
                      console.log("At least one traveller must be under 18 ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivforUnder18").css('display', 'inline');
                      $("#errordivforUnder18").focus();
                      window.location.hash = '#errordivforUnder18';
                      console.log("*****errordivforUnder18*****");
                    } else {
                      $("#errordivforUnder18").css('display', 'none');
                    }
                    if (double18 < 1) {
                      //showAlert('AllClearTravel', 'At least one traveller must be over 18 years old');
                      //return;
                      console.log("At least one traveller must be over 18 years old ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivforOneTravUnder18").css('display', 'inline');
                      $("#errordivforOneTravUnder18").focus();
                      window.location.hash = '#errordivforOneTravUnder18';
                      console.log("*****errordivforUnder18*****");
                    } else {
                      $("#errordivforOneTravUnder18").css('display', 'none');
                    }
                    if (double18 > 2) {
                      //showAlert('AllClearTravel', 'Only two travellers must be over 18 years old');
                      //return;
                      console.log("Only two travellers must be over 18 years old");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivforTwoTravUnder18").css('display', 'inline');
                      $("#errordivforUnder18").css('display', 'none');
                      $("#errordivforTwoTravUnder18").focus();
                      window.location.hash = '#errordivforOneTravUnder18';
                      console.log("*****errordivforOneTravUnder18*****");
                    } else {
                      $("#errordivforTwoTravUnder18").css('display', 'none');
                    }
                  }
                  if (travellerType === 'G') {
                    var couple18second = getAge(new Date(document.getElementById('doby2').value, document.getElementById('dobm2').value, document.getElementById('dobd2').value));
                    var couple18secondS = couple18second.toString();
                    var couple18third = null;
                    var couple18thirdS = null;
                    if (document.getElementById('doby3') != null) {
                      couple18third = getAge(new Date(document.getElementById('doby3').value, document.getElementById('dobm3').value, document.getElementById('dobd3').value));
                      couple18thirdS = couple18third.toString();
                    }
                    var couple18fourth = null;
                    var couple18fourthS = null;
                    if (document.getElementById('doby4') != null) {
                      couple18fourth = getAge(new Date(document.getElementById('doby4').value, document.getElementById('dobm4').value, document.getElementById('dobd4').value));
                      couple18fourthS = couple18fourth.toString();
                    }
                    var couple18fifth = null;
                    var couple18fifthS = null;
                    if (document.getElementById('doby5') != null) {
                      couple18fifth = getAge(new Date(document.getElementById('doby5').value, document.getElementById('dobm5').value, document.getElementById('dobd5').value));
                      couple18fifthS = couple18fifth.toString();
                    }
                    var couple18sixth = null;
                    var couple18sixthS = null;
                    if (document.getElementById('doby6') != null) {
                      couple18sixth = getAge(new Date(document.getElementById('doby6').value, document.getElementById('dobm6').value, document.getElementById('dobd6').value));
                      couple18sixthS = couple18sixth.toString();
                    }
                    var couple18seventh = null;
                    var couple18seventhS = null;
                    if (document.getElementById('doby7') != null) {
                      couple18seventh = getAge(new Date(document.getElementById('doby7').value, document.getElementById('dobm7').value, document.getElementById('dobd7').value));
                      couple18seventhS = couple18seventh.toString();
                    }
                    var couple18eighth = null;
                    var couple18eighthS = null;
                    if (document.getElementById('doby8') != null) {
                      couple18eighth = getAge(new Date(document.getElementById('doby8').value, document.getElementById('dobm8').value, document.getElementById('dobd8').value));
                      couple18eighthS = couple18eighth.toString();
                    }
                    var couple18ninth = null;
                    var couple18ninthS = null;
                    if (document.getElementById('doby9') != null) {
                      couple18ninth = getAge(new Date(document.getElementById('doby9').value, document.getElementById('dobm9').value, document.getElementById('dobd9').value));
                      couple18ninthS = couple18ninth.toString();
                    }
                    var couple18tenth = null;
                    var couple18tenthS = null;
                    if (document.getElementById('doby10') != null) {
                      couple18tenth = getAge(new Date(document.getElementById('doby10').value, document.getElementById('dobm10').value, document.getElementById('dobd10').value));
                      couple18tenthS = couple18tenth.toString();
                    }
                    if (couple18second == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn2").css('display', 'inline');
                      $("#trav2div").focus();
                      window.location.hash = '#trav2div';
                    } else {
                      $("#errordivforNotBorn2").css('display', 'none');
                    }
                    if (couple18thirdS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn3").css('display', 'inline');
                      $("#trav3div").focus();
                      window.location.hash = '#trav3div';
                    } else {
                      $("#errordivforNotBorn3").css('display', 'none');
                    }
                    if (couple18fourthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn4").css('display', 'inline');
                      $("#trav4div").focus();
                      window.location.hash = '#trav4div';
                    } else {
                      $("#errordivforNotBorn4").css('display', 'none');
                    }
                    if (couple18fifthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn5").css('display', 'inline');
                      $("#trav5div").focus();
                      window.location.hash = '#trav5div';
                    } else {
                      $("#errordivforNotBorn5").css('display', 'none');
                    }
                    if (couple18sixthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn6").css('display', 'inline');
                      $("#trav6div").focus();
                      window.location.hash = '#trav6div';
                    } else {
                      $("#errordivforNotBorn6").css('display', 'none');
                    }
                    if (couple18seventhS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn7").css('display', 'inline');
                      $("#trav7div").focus();
                      window.location.hash = '#trav7div';
                    } else {
                      $("#errordivforNotBorn7").css('display', 'none');
                    }
                    if (couple18eighthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn8").css('display', 'inline');
                      $("#trav8div").focus();
                      window.location.hash = '#trav8div';
                    } else {
                      $("#errordivforNotBorn8").css('display', 'none');
                    }
                    if (couple18ninthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn9").css('display', 'inline');
                      $("#trav9div").focus();
                      window.location.hash = '#trav9div';
                    } else {
                      $("#errordivforNotBorn9").css('display', 'none');
                    }
                    if (couple18tenthS == "-1") {
                      canpostpage = false;
                      $("#errordivforNotBorn10").css('display', 'inline');
                      $("#trav10div").focus();
                      window.location.hash = '#trav10div';
                    } else {
                      $("#errordivforNotBorn10").css('display', 'none');
                    }
                    var double18 = 0;
                    if (couple18first > 17) {
                      double18 += 1;
                    }
                    if (couple18second > 17) {
                      double18 += 1;
                    }
                    if (couple18third > 17) {
                      double18 += 1;
                    }
                    if (couple18fourth > 17) {
                      double18 += 1;
                    }
                    if (couple18fifth > 17) {
                      double18 += 1;
                    }
                    if (couple18sixth > 17) {
                      double18 += 1;
                    }
                    if (couple18seventh > 17) {
                      double18 += 1;
                    }
                    if (couple18eighth > 17) {
                      double18 += 1;
                    }
                    if (couple18ninth > 17) {
                      double18 += 1;
                    }
                    if (couple18tenth > 17) {
                      double18 += 1;
                    }
                    var Under18 = 0;
                    if (couple18first < 18) {
                      if (couple18first == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18second < 18) {
                      if (couple18second == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18third < 18) {
                      if (couple18third == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18fourth < 18) {
                      if (couple18fourth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18fifth < 18) {
                      if (couple18fifth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18sixth < 18) {
                      if (couple18sixth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18seventh < 18) {
                      if (couple18seventh == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18eighth < 18) {
                      if (couple18eighth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18ninth < 18) {
                      if (couple18ninth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    if (couple18tenth < 18) {
                      if (couple18tenth == null) {
                        //no output
                      } else {
                        Under18 += 1;
                      }
                    }
                    console.log('Under18 is = ' + Under18);
                    if (double18 < 1) {
                      //showAlert('AllClearTravel', 'At least one traveller must be over 18 years old');
                      //return;
                      console.log("At least one traveller must be over 18 years old ");
                      canpostpage = false;
                      //event.preventDefault();
                      $("#errordivforOneTravUnder18").css('display', 'inline');
                      $("#errordivforOneTravUnder18").focus();
                      window.location.hash = '#errordivforOneTravUnder18';
                    } else {
                      $("#errordivforOneTravUnder18").css('display', 'none');
                    }
                  }
                }

                function issingle() {
                  if (isannual === false) {
                    return true;
                  } else {
                    return false;
                  }
                }

                function fromdateAnnualisvalid() {
                  // use existing validation
                  //$('html, body').animate({ scrollTop: $("#dateannual").offset().top  }, 1000);
                  $("#errordivforAstartdatepast").css('display', 'none');
                  $("#errordivforreturndate31Annual").css('display', 'none');
                  validateTripTypeAnnual();
                  console.log("fromdateAnnualisvalid start");
                  var holidaydatefrom = $("#dateannual").val();
                  console.log("holidaydatefrom  = " + holidaydatefrom);
                  if (isDateValid(holidaydatefrom) === false) {
                    $("#errordivforstartdate").text = 'Please enter the travelling from date';
                    $("#errordivforstartdate").show().focus();
                    canpostpage = false;
                    return false;
                    canpostpage = false;
                    $("#errordivforstartdateAnnual").show().focus();
                    window.location.hash = '#errordivforstartdateAnnual';
                    event.preventDefault();
                    return false;
                  } else {
                    ////console
                    $("#errordivforstartdateAnnual").hide();
                    return true;
                  }
                }

                function fromdateisvalid() {
                  // use existing validation
                  console.log("fromdateisvalid start");
                  var holidaydatefrom = $("#datefrom").val();
                  console.log("holidaydatefrom  = " + holidaydatefrom);
                  var holidaydateto = $("#dateto").val();
                  if (isDateValid(holidaydatefrom) === false) {
                    $("#errordivforstartdate").text = 'Please enter the travelling from date';
                    $("#errordivforstartdate").show().focus();
                    window.location.hash = '#errordivforstartdate';
                    canpostpage = false;
                    return false;
                  } else {
                    ////console
                    $("#errordivforstartdate").hide();
                    return true;
                  }
                }

                function todateisvalid() {
                  // use existing validation
                  console.log("todateisvalid start");
                  var holidaydateto = $("#dateto").val();
                  console.log("holidaydateto  = " + holidaydateto);
                  var holidaydateto = $("#dateto").val();
                  if (isDateValid(holidaydateto) === false) {
                    $("#errordivforstartdate").text = 'Please enter the travelling to date';
                    $("#errordivforreturndate").show().focus();
                    window.location.hash = '#errordivforreturndate';
                    canpostpage = false;
                    return false;
                  } else {
                    ////console
                    $("#errordivforreturndate").hide();
                    return true;
                  }
                }
                $("div#whiteBoxTop-help-res").click(function() {
                  $("div#help-001-res-767").toggle("slow");
                });
                $("div#whiteBoxTop-help-trip").click(function() {
                  $("div#help-001-trip-767").toggle("slow");
                });
                $("div#whiteBoxTop-help-medical").click(function() {
                  $("div#help-001-medical-767").toggle("slow");
                });
                $("div#whiteBoxTop-help-travs").click(function() {
                  $("div#help-001-travs-767").toggle("slow");
                });
                $("div#whiteBoxTop-help-staying").click(function() {
                  $("div#help-001-staying-767").toggle("slow");
                });
                ///////// End General button functions
              }); /// close document.ready at very top
              function title1Mr() {
                document.getElementById("title1CheckMark").style.display = "inline-block";
                $('.titleSwitch1').removeClass("active");
                $('#titleMr1').addClass("active");
              }

              function title1Mrs() {
                document.getElementById("title1CheckMark").style.display = "inline-block";
                $('.titleSwitch1').removeClass("active");
                $('#titleMrs1').addClass("active");
              }

              function title1Ms() {
                document.getElementById("title1CheckMark").style.display = "inline-block";
                $('.titleSwitch1').removeClass("active");
                $('#titleMs1').addClass("active");
              }

              function title1Miss() {
                document.getElementById("title1CheckMark").style.display = "inline-block";
                $('.titleSwitch1').removeClass("active");
                $('#titleMiss1').addClass("active");
              }

              function title1Mx() {
                document.getElementById("title1CheckMark").style.display = "inline-block";
                $('.titleSwitch1').removeClass("active");
                $('#titleMx1').addClass("active");
              }

              function title1Dr() {
                document.getElementById("title1CheckMark").style.display = "inline-block";
                $('.titleSwitch1').removeClass("active");
                $('#titleDr1').addClass("active");
              }

              function title1Mast() {
                document.getElementById("title1CheckMark").style.display = "inline-block";
                $('.titleSwitch1').removeClass("active");
                $('#titleMast1').addClass("active");
              }

              function title2Mr() {
                document.getElementById("title2CheckMark").style.display = "inline-block";
                $('.titleSwitch2').removeClass("active");
                $('#titleMr2').addClass("active");
              }

              function title2Mrs() {
                document.getElementById("title2CheckMark").style.display = "inline-block";
                $('.titleSwitch2').removeClass("active");
                $('#titleMrs2').addClass("active");
              }

              function title2Ms() {
                document.getElementById("title2CheckMark").style.display = "inline-block";
                $('.titleSwitch2').removeClass("active");
                $('#titleMs2').addClass("active");
              }

              function title2Miss() {
                document.getElementById("title2CheckMark").style.display = "inline-block";
                $('.titleSwitch2').removeClass("active");
                $('#titleMiss2').addClass("active");
              }

              function title2Mx() {
                document.getElementById("title2CheckMark").style.display = "inline-block";
                $('.titleSwitch2').removeClass("active");
                $('#titleMx2').addClass("active");
              }

              function title2Dr() {
                document.getElementById("title2CheckMark").style.display = "inline-block";
                $('.titleSwitch2').removeClass("active");
                $('#titleDr2').addClass("active");
              }

              function title2Mast() {
                document.getElementById("title2CheckMark").style.display = "inline-block";
                $('.titleSwitch2').removeClass("active");
                $('#titleMast2').addClass("active");
              }

              function title3Mr() {
                document.getElementById("title3CheckMark").style.display = "inline-block";
                $('.titleSwitch3').removeClass("active");
                $('#titleMr3').addClass("active");
              }

              function title3Mrs() {
                document.getElementById("title3CheckMark").style.display = "inline-block";
                $('.titleSwitch3').removeClass("active");
                $('#titleMrs3').addClass("active");
              }

              function title3Ms() {
                document.getElementById("title3CheckMark").style.display = "inline-block";
                $('.titleSwitch3').removeClass("active");
                $('#titleMs3').addClass("active");
              }

              function title3Miss() {
                document.getElementById("title3CheckMark").style.display = "inline-block";
                $('.titleSwitch3').removeClass("active");
                $('#titleMiss3').addClass("active");
              }

              function title3Dr() {
                document.getElementById("title3CheckMark").style.display = "inline-block";
                $('.titleSwitch3').removeClass("active");
                $('#titleDr3').addClass("active");
              }

              function title3Mx() {
                document.getElementById("title3CheckMark").style.display = "inline-block";
                $('.titleSwitch3').removeClass("active");
                $('#titleMx3').addClass("active");
              }

              function title3Mast() {
                document.getElementById("title3CheckMark").style.display = "inline-block";
                $('.titleSwitch3').removeClass("active");
                $('#titleMast3').addClass("active");
              }

              function title4Mr() {
                document.getElementById("title4CheckMark").style.display = "inline-block";
                $('.titleSwitch4').removeClass("active");
                $('#titleMr4').addClass("active");
              }

              function title4Mrs() {
                document.getElementById("title4CheckMark").style.display = "inline-block";
                $('.titleSwitch4').removeClass("active");
                $('#titleMrs4').addClass("active");
              }

              function title4Ms() {
                document.getElementById("title4CheckMark").style.display = "inline-block";
                $('.titleSwitch4').removeClass("active");
                $('#titleMs4').addClass("active");
              }

              function title4Miss() {
                document.getElementById("title4CheckMark").style.display = "inline-block";
                $('.titleSwitch4').removeClass("active");
                $('#titleMiss4').addClass("active");
              }

              function title4Dr() {
                document.getElementById("title4CheckMark").style.display = "inline-block";
                $('.titleSwitch4').removeClass("active");
                $('#titleDr4').addClass("active");
              }

              function title4Mx() {
                document.getElementById("title4CheckMark").style.display = "inline-block";
                $('.titleSwitch4').removeClass("active");
                $('#titleMx4').addClass("active");
              }

              function title4Mast() {
                document.getElementById("title4CheckMark").style.display = "inline-block";
                $('.titleSwitch4').removeClass("active");
                $('#titleMast4').addClass("active");
              }

              function title5Mr() {
                document.getElementById("title5CheckMark").style.display = "inline-block";
                $('.titleSwitch5').removeClass("active");
                $('#titleMr5').addClass("active");
              }

              function title5Mrs() {
                document.getElementById("title5CheckMark").style.display = "inline-block";
                $('.titleSwitch5').removeClass("active");
                $('#titleMrs5').addClass("active");
              }

              function title5Ms() {
                document.getElementById("title5CheckMark").style.display = "inline-block";
                $('.titleSwitch5').removeClass("active");
                $('#titleMs5').addClass("active");
              }

              function title5Miss() {
                document.getElementById("title5CheckMark").style.display = "inline-block";
                $('.titleSwitch5').removeClass("active");
                $('#titleMiss5').addClass("active");
              }

              function title5Dr() {
                document.getElementById("title5CheckMark").style.display = "inline-block";
                $('.titleSwitch5').removeClass("active");
                $('#titleDr5').addClass("active");
              }

              function title5Mx() {
                document.getElementById("title5CheckMark").style.display = "inline-block";
                $('.titleSwitch5').removeClass("active");
                $('#titleMx5').addClass("active");
              }

              function title5Mast() {
                document.getElementById("title5CheckMark").style.display = "inline-block";
                $('.titleSwitch5').removeClass("active");
                $('#titleMast5').addClass("active");
              }

              function title6Mr() {
                document.getElementById("title6CheckMark").style.display = "inline-block";
                $('.titleSwitch6').removeClass("active");
                $('#titleMr6').addClass("active");
              }

              function title6Mrs() {
                document.getElementById("title6CheckMark").style.display = "inline-block";
                $('.titleSwitch6').removeClass("active");
                $('#titleMrs6').addClass("active");
              }

              function title6Ms() {
                document.getElementById("title6CheckMark").style.display = "inline-block";
                $('.titleSwitch6').removeClass("active");
                $('#titleMs6').addClass("active");
              }

              function title6Miss() {
                document.getElementById("title6CheckMark").style.display = "inline-block";
                $('.titleSwitch6').removeClass("active");
                $('#titleMiss6').addClass("active");
              }

              function title6Dr() {
                document.getElementById("title6CheckMark").style.display = "inline-block";
                $('.titleSwitch6').removeClass("active");
                $('#titleDr6').addClass("active");
              }

              function title6Mx() {
                document.getElementById("title6CheckMark").style.display = "inline-block";
                $('.titleSwitch6').removeClass("active");
                $('#titleMx6').addClass("active");
              }

              function title6Mast() {
                document.getElementById("title6CheckMark").style.display = "inline-block";
                $('.titleSwitch6').removeClass("active");
                $('#titleMast6').addClass("active");
              }

              function title7Mr() {
                document.getElementById("title7CheckMark").style.display = "inline-block";
                $('.titleSwitch7').removeClass("active");
                $('#titleMr7').addClass("active");
              }

              function title7Mrs() {
                document.getElementById("title7CheckMark").style.display = "inline-block";
                $('.titleSwitch7').removeClass("active");
                $('#titleMrs7').addClass("active");
              }

              function title7Ms() {
                document.getElementById("title7CheckMark").style.display = "inline-block";
                $('.titleSwitch7').removeClass("active");
                $('#titleMs7').addClass("active");
              }

              function title7Miss() {
                document.getElementById("title7CheckMark").style.display = "inline-block";
                $('.titleSwitch7').removeClass("active");
                $('#titleMiss7').addClass("active");
              }

              function title7Dr() {
                document.getElementById("title7CheckMark").style.display = "inline-block";
                $('.titleSwitch7').removeClass("active");
                $('#titleDr7').addClass("active");
              }

              function title7Mx() {
                document.getElementById("title7CheckMark").style.display = "inline-block";
                $('.titleSwitch7').removeClass("active");
                $('#titleMx7').addClass("active");
              }

              function title7Mast() {
                document.getElementById("title7CheckMark").style.display = "inline-block";
                $('.titleSwitch7').removeClass("active");
                $('#titleMast7').addClass("active");
              }

              function title8Mr() {
                document.getElementById("title8CheckMark").style.display = "inline-block";
                $('.titleSwitch8').removeClass("active");
                $('#titleMr8').addClass("active");
              }

              function title8Mrs() {
                document.getElementById("title8CheckMark").style.display = "inline-block";
                $('.titleSwitch8').removeClass("active");
                $('#titleMrs8').addClass("active");
              }

              function title8Ms() {
                document.getElementById("title8CheckMark").style.display = "inline-block";
                $('.titleSwitch8').removeClass("active");
                $('#titleMs8').addClass("active");
              }

              function title8Miss() {
                document.getElementById("title8CheckMark").style.display = "inline-block";
                $('.titleSwitch8').removeClass("active");
                $('#titleMiss8').addClass("active");
              }

              function title8Dr() {
                document.getElementById("title8CheckMark").style.display = "inline-block";
                $('.titleSwitch8').removeClass("active");
                $('#titleDr8').addClass("active");
              }

              function title8Mx() {
                document.getElementById("title8CheckMark").style.display = "inline-block";
                $('.titleSwitch8').removeClass("active");
                $('#titleMx8').addClass("active");
              }

              function title8Mast() {
                document.getElementById("title8CheckMark").style.display = "inline-block";
                $('.titleSwitch8').removeClass("active");
                $('#titleMast8').addClass("active");
              }

              function title9Mr() {
                document.getElementById("title9CheckMark").style.display = "inline-block";
                $('.titleSwitch9').removeClass("active");
                $('#titleMr9').addClass("active");
              }

              function title9Mrs() {
                document.getElementById("title9CheckMark").style.display = "inline-block";
                $('.titleSwitch9').removeClass("active");
                $('#titleMrs9').addClass("active");
              }

              function title9Ms() {
                document.getElementById("title9CheckMark").style.display = "inline-block";
                $('.titleSwitch9').removeClass("active");
                $('#titleMs9').addClass("active");
              }

              function title9Miss() {
                document.getElementById("title9CheckMark").style.display = "inline-block";
                $('.titleSwitch9').removeClass("active");
                $('#titleMiss9').addClass("active");
              }

              function title9Dr() {
                document.getElementById("title9CheckMark").style.display = "inline-block";
                $('.titleSwitch9').removeClass("active");
                $('#titleDr9').addClass("active");
              }

              function title9Mx() {
                document.getElementById("title9CheckMark").style.display = "inline-block";
                $('.titleSwitch9').removeClass("active");
                $('#titleMx9').addClass("active");
              }

              function title9Mast() {
                document.getElementById("title9CheckMark").style.display = "inline-block";
                $('.titleSwitch9').removeClass("active");
                $('#titleMast9').addClass("active");
              }

              function title10Mr() {
                document.getElementById("title10CheckMark").style.display = "inline-block";
                $('.titleSwitch10').removeClass("active");
                $('#titleMr10').addClass("active");
              }

              function title10Mrs() {
                document.getElementById("title10CheckMark").style.display = "inline-block";
                $('.titleSwitch10').removeClass("active");
                $('#titleMrs10').addClass("active");
              }

              function title10Ms() {
                document.getElementById("title10CheckMark").style.display = "inline-block";
                $('.titleSwitch10').removeClass("active");
                $('#titleMs10').addClass("active");
              }

              function title10Miss() {
                document.getElementById("title10CheckMark").style.display = "inline-block";
                $('.titleSwitch10').removeClass("active");
                $('#titleMiss10').addClass("active");
              }

              function title10Dr() {
                document.getElementById("title10CheckMark").style.display = "inline-block";
                $('.titleSwitch10').removeClass("active");
                $('#titleDr10').addClass("active");
              }

              function title10Mx() {
                document.getElementById("title10CheckMark").style.display = "inline-block";
                $('.titleSwitch10').removeClass("active");
                $('#titleMx10').addClass("active");
              }

              function title10Mast() {
                document.getElementById("title10CheckMark").style.display = "inline-block";
                $('.titleSwitch10').removeClass("active");
                $('#titleMast10').addClass("active");
              }

              function checkCode(canpostpage) {
                var membernumber = "633174" + document.getElementById('memberid').value.split(" ").join("");
                var first6 = membernumber.slice(0, 6);
                var mbrshipNo = membernumber.slice(6, 8);
                var eleventh = membernumber.slice(10, 11);
                console.log(membernumber);
                console.log(first6);
                console.log(mbrshipNo);
                console.log(eleventh);
                if ((first6 === "633174") && (mbrshipNo === "91")) {
                  console.log("First 8 Digits Valid");
                  document.getElementById('memberPop1').style.display = 'none';
                  document.getElementById('memberInput').style.borderColor = '#6e6e6e';
                } else {
                  console.log("First 8 Digits INValid");
                  document.getElementById('memberPop1').style.display = 'block';
                  document.getElementById('memberInput').style.borderColor = 'red';
                  canpostpage = false;
                }
                if (membernumber === null) {
                  document.getElementById('memberPop1').style.display = 'block';
                  document.getElementById('memberInput').style.borderColor = 'red';
                  console.log("Colleague Number Blank");
                  canpostpage = false;
                }
                if (membernumber.length < 18) {
                  console.log("Short Number");
                  canpostpage = false;
                  document.getElementById('memberPop1').style.display = 'block';
                  document.getElementById('memberInput').style.borderColor = 'red';
                }
                if (membernumber.length > 18) {
                  console.log("LongNumber");
                  document.getElementById('memberPop1').style.display = 'block';
                  document.getElementById('memberInput').style.borderColor = 'red';
                  canpostpage = false;
                }
                if ((eleventh === "1") || (eleventh === "7") || (eleventh === "8")) {} else {
                  console.log("Not a member or colleague");
                  document.getElementById('memberPop1').style.display = 'block';
                  document.getElementById('memberInput').style.borderColor = 'red';
                  canpostpage = false;
                }
                return canpostpage;
              }
              const membership = document.getElementById('memberid');
              membership.addEventListener('input', () => {
                removeNonDigits();
                formatMembershipNumber();
              });

              function removeNonDigits() {
                const valueBeforeCursor = membership.value.substring(0, membership.selectionStart);
                const newCursor = membership.selectionStart - countNonDigits(valueBeforeCursor);
                membership.value = membership.value.replace(/\D/g, '');
                membership.setSelectionRange(newCursor, newCursor);
              }

              function formatMembershipNumber() {
                const spacesToAddBeforeCursor = Math.trunc((membership.selectionStart - 1) / 4);
                const newCursor = membership.selectionStart + spacesToAddBeforeCursor;
                membership.value = membership.value.replace(/(\d{4})/, '$1 ').replace(/(\d{4}) (\d{4})/, '$1 $2 ');
                membership.setSelectionRange(newCursor, newCursor);
              }

              function countNonDigits(text) {
                return (text.match(/\D/g) || []).length;
              }
            </script><!-- end whole script -->
            <script>
              $(".css-radio-001-three").change(function() {
                alert('Selected value: ' + $(this).val());
              });
            </script>
            <!-- START 001 inline validation -->
            <style>
              .inline-val-error {
                border: 2px solid #ff0000 !important;
              }

              .inline-val-correct {
                border: 2px solid #68BD5B !important;
                background: #fff !important;
              }

              input:-webkit-autofill {
                transition: background-color 5000s ease-in-out 0s;
              }

              .easyselect-box-item-bob {
                border: 2px solid #68BD5B !important;
                background: #fff !important;
              }

              .easyselect-box-item-bob:after {
                color: #68BD5B !important;
              }
            </style>
            <script>
              function inlineValEmail(nameField) {
                var reg = /^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
                if (reg.test(nameField.value) == false) {
                  document.getElementById('email').style.cssText = 'border:2px solid #ff0000 !important;';
                  return false;
                }
                document.getElementById('email').style.cssText = 'border:2px solid #68BD5B!important;';
                return true;
              }
            </script>
            <script>
              $(function() {
                $('body').on('focusout', '#fname1, #fname2, #fname3, #fname4, #fname5, #fname6, #fname7, #fname8, #fname9, #fname10, #sname1, #sname2, #sname3, #sname4, #sname5, #sname6, #sname7, #sname8, #sname9, #sname10', function(e) {
                  if (!$(this).val()) {
                    $(this).addClass("inline-val-error");
                    $(this).removeClass("inline-val-correct");
                  } else {
                    $(this).removeClass("inline-val-error");
                    $(this).addClass("inline-val-correct");
                  }
                });
              })
              $(function() {
                $('body').on('focusout', '#dobd1, #dobm1, #doby1, #dobd2, #dobm2, #doby2, #dobd3, #dobm3, #doby3, #dobd4, #dobm4, #doby4, #dobd5, #dobm5, #doby5, #dobd6, #dobm6, #doby6, #dobd7, #dobm7, #doby7, #dobd8, #dobm8, #doby8,' +
                  '#dobd9, #dobm9, #doby9, #dobd10, #dobm10, #doby10',
                  function(e) {
                    if (!$(this).val()) {
                      $(this).addClass("inline-val-error");
                      $(this).removeClass("inline-val-correct");
                    } else {
                      $(this).removeClass("inline-val-error");
                      $(this).addClass("inline-val-correct");
                    }
                  });
              })
              /*
              $(function() {
                $('body').on('focusout', '#dateannual, #datefrom, #dateto', function(e) {
                      if(!$(this).val()){
                          $(this).addClass("inline-val-error");
              	$(this).removeClass("inline-val-correct");
                      } else {
              	$(this).removeClass("inline-val-error");
              	$(this).addClass("inline-val-correct");
                      }
                  });
              })
              */
              //name check start
              $(function() {
                $('body').on('focusout', '#fname1' && '#sname1', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav1CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav1CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname2' && '#sname2', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav2CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav2CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname3' && '#sname3', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav3CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav3CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname4' && '#sname4', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav4CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav4CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname5' && '#sname5', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav5CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav5CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname6' && '#sname6', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav6CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav6CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname7' && '#sname7', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav7CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav7CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname8' && '#sname8', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav8CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav8CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname9' && '#sname9', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav9CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav9CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#fname10' && '#sname10', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav10CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav10CheckMark").style.display = "inline-block";
                  }
                });
              })
              //name check end
              $(function() {
                $('body').on('focusout', 'select, #phoneno, #pcode1, #houseno, #townwalker, #streetwalker, #email', function(e) {
                  if (!$(this).val()) {
                    $(this).addClass("inline-val-error");
                    $(this).removeClass("inline-val-correct");
                  } else {
                    $(this).removeClass("inline-val-error");
                    $(this).addClass("inline-val-correct");
                  }
                });
              })
              $(function() {
                $('body').on('focusout', '#pcode1' && '#houseno', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("nametrav1CheckMark").style.display = "none";
                  } else {
                    document.getElementById("nametrav1CheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#phoneno', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("contactNoCheckMark").style.display = "none";
                  } else {
                    document.getElementById("contactNoCheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#email', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("emailCheckMark").style.display = "none";
                  } else {
                    document.getElementById("emailCheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#pcode1', function(e) {
                  if ((!$('#pcode1').val()) || (!$('#houseno').val()) || (!$('#streetwalker').val()) || (!$('#townwalker').val())) {
                    document.getElementById("townCheckMark").style.display = "none";
                  } else {
                    document.getElementById("townCheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#houseno', function(e) {
                  if ((!$('#pcode1').val()) || (!$('#houseno').val()) || (!$('#streetwalker').val()) || (!$('#townwalker').val())) {
                    document.getElementById("townCheckMark").style.display = "none";
                  } else {
                    document.getElementById("townCheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#streetwalker', function(e) {
                  if ((!$('#pcode1').val()) || (!$('#houseno').val()) || (!$('#streetwalker').val()) || (!$('#townwalker').val())) {
                    document.getElementById("townCheckMark").style.display = "none";
                  } else {
                    document.getElementById("townCheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#townwalker', function(e) {
                  if ((!$('#pcode1').val()) || (!$('#houseno').val()) || (!$('#streetwalker').val()) || (!$('#townwalker').val())) {
                    document.getElementById("townCheckMark").style.display = "none";
                  } else {
                    document.getElementById("townCheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#dateannual', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("annDateCheckMark").style.display = "none";
                  } else {
                    document.getElementById("annDateCheckMark").style.display = "inline-block";
                  }
                });
                $('body').on('focusout', '#datefrom' && '#dateto', function(e) {
                  if (!$(this).val()) {
                    document.getElementById("singDateCheckMark").style.display = "none";
                  } else {
                    document.getElementById("singDateCheckMark").style.display = "inline-block";
                  }
                });
              })
            </script>
            <!-- END 001 inline validation -->
            <script>
              $("#marketEmail").click(function() {
                var checkbox = $(this).find('input[type=checkbox]');
                if (checkbox.is(":checked")) {
                  document.getElementById("noemailCheck").checked = false;
                } else {
                  document.getElementById("noemailCheck").checked = true;
                }
              });
              $("#marketPost").click(function() {
                var checkbox = $(this).find('input[type=checkbox]');
                if (checkbox.is(":checked")) {
                  document.getElementById("nopostCheck").checked = false;
                } else {
                  document.getElementById("nopostCheck").checked = true;
                }
              });
              $("#marketSMS").click(function() {
                var checkbox = $(this).find('input[type=checkbox]');
                if (checkbox.is(":checked")) {
                  document.getElementById("notextCheck").checked = false;
                } else {
                  document.getElementById("notextCheck").checked = true;
                }
              });
              $("#marketPhone").click(function() {
                var checkbox = $(this).find('input[type=checkbox]');
                if (checkbox.is(":checked")) {
                  document.getElementById("nophoneCheck").checked = false;
                } else {
                  document.getElementById("nophoneCheck").checked = true;
                }
              });
            </script>
          </td>
        </tr>
      </tbody>
    </table>
    <!--    	 STDFOOTER		-->
  </div><!-- END container -->
  <div id="footerDIV"><!-- do not remove -->
    <!-- Affiliate Footers -->
    <!-- Options Footers -->
    <!-- AMII, BIBA & Retail Footers -->
    <!-- dont show for BIBA non quote pages -->
    <!-- ACE Footers -->
    <!-- Other Footers -->
    <!-- HL Branded Footers -->
    <!-- Unique Footers -->
    <!-- Key Connect Footers -->
    <!-- UIA Footers -->
    <!-- keep these UIA scheme's as these are scheme driven websites for UIA old styles -->
  </div><!-- END footerDIV -->
  <!-- MSDWEB_STDFOOTER	-->
</form>

Text Content

This site used cookies. By continuing to browse the site, you are agreeing to
our cookie policy. Close
0330 400 1675
View opening hours
Telephone Hours

Opening Hours

 * Mon-Fri: 8:30am - 8:00pm
 * Sat: 9:00am - 5:30pm
 * Sun: 10:00am - 5:00pm

Co-op
0330 400 1675
 1. Your details
 2. 
 3. Your Quotes
 4. Confirmation

 * Your details
 * Your Quotes
 * Confirmation





TELL US ABOUT YOUR TRIP




ARE YOU A RESIDENT OF THE UK?

Are you a resident of the UK?
You must have lived in the UK for at least 6 of the last 12 months. You must
have a permanent UK address and be registered with a medical practitioner in the
UK.


This policy is only available to UK residents who are in the UK at the time of
the purchase (includes England, Scotland, Wales, Northern Ireland, the Scilly
Isles, the Isle of Man and Channel Islands).



Just a moment please



WHAT TYPE OF TRAVEL INSURANCE DO YOU NEED?
SINGLE OR ANNUAL MULTI-TRIP?


SINGLE TRIP: COVER FOR A SINGLE TRIP, FOR THE EXACT NUMBER OF DAYS YOU NEED.

ANNUAL MULTI-TRIP: COVER FOR AN UNLIMITED NUMBER OF TRIPS WITHIN 365 DAYS. YOU
CAN PURCHASE YOUR ANNUAL MULTI-TRIP POLICY UP TO 60 DAYS IN ADVANCE OF YOUR
POLICY START DATE. THERE WILL BE NO COVER FOR ANY CLAIMS UNTIL THE START DATE OF
YOUR POLICY. THE MAXIMUM NUMBER OF DAYS YOU CAN TRAVEL ON ANY ONE TRIP CAN BE UP
TO 31, 45 OR 55 DAYS DEPENDING ON THE LEVEL OF COVER YOU CHOOSE ON THE "YOUR
QUOTES" STEP.

SINGLE OR ANNUAL MULTI-TRIP?


SINGLE TRIP: COVER FOR A SINGLE TRIP, FOR THE EXACT NUMBER OF DAYS YOU NEED.

ANNUAL MULTI-TRIP: COVER FOR AN UNLIMITED NUMBER OF TRIPS WITHIN 365 DAYS. YOU
CAN PURCHASE YOUR ANNUAL MULTI-TRIP POLICY UP TO 60 DAYS IN ADVANCE OF YOUR
POLICY START DATE. THERE WILL BE NO COVER FOR ANY CLAIMS UNTIL THE START DATE OF
YOUR POLICY. THE MAXIMUM NUMBER OF DAYS YOU CAN TRAVEL ON ANY ONE TRIP CAN BE UP
TO 31, 45 OR 55 DAYS DEPENDING ON THE LEVEL OF COVER YOU CHOOSE ON THE "YOUR
QUOTES" STEP.


Please select Single or Annual
Annual multi-trip
Cover for an unlimited number of trips
within 365 days
Single trip
Cover for one trip
over specific dates




WHEN ARE YOU TRAVELLING?

Single trip
A single trip policy could work out cheaper if you're only travelling once
within the year and cover can be arranged for the exact number of days you
require.

Please note the minimum trip length is 2 days.



START DATE





RETURN DATE





Please enter a valid start date
We cannot cover you for more than 31 days
We cannot cover you for more than 365 days.
Travel dates cannot be before todays date
Your return date cannot be before the departure date
Your trip cannot start more than 365 days in advance
The return date cannot be less than 2 nights from the start of the trip
Please enter a valid return date
Your return date cannot be before the departure date



WHERE ARE YOU TRAVELLING TO?
WHERE ARE YOU TRAVELLING TO?
MAKE SURE YOU ADD EVERY COUNTRY YOU'RE VISITING WITHIN YOUR TRIP. IF YOU CANNOT
FIND YOUR COUNTRY, THEN CHECK THE SPELLING OR TRY TYPING THE FIRST FEW LETTERS.
YOU CAN ONLY ADD UP TO 9 COUNTRIES.


Spain
Spain
France
France
USA
Italy
Greece
Greece

Please search and add each country you are travelling to individually.

Maximum number of destinations reached

Select another country


Country list Abu Dhabi Alaska Albania Algeria America Andorra Angola Anguilla
Antarctic Antigua Argentina Armenia Aruba Ascension Island Australia Austria
Azerbaijan Azores Bahamas Bahrain Balearics Bali Bangladesh Barbados Belgium
Belize Bermuda Bhutan Bolivia Bonaire (Antilles) Bosnia And Herzegovina Botswana
Brazil British Virgin Isles Brunei Darussalam Bulgaria Burma Cambodia Cameroon
Canada Canary Islands Cape Verde Cayman Islands Channel Islands Chile China
Colombia Comoros Islands Congo Cook Islands Corfu Corsica Costa Rica Cote
D'ivoire Crete Croatia Cuba Curaçao Cyprus Czech Republic Denmark Djibouti
Dominica Dominican Republic Ecuador Egypt Eire El Salvador England Equatorial
Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Fiji Finland
France French Guiana French Polynesia Gabon Galapagos Islands Gambia Georgia
Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala
Guernsey Guinea-bissau Guyana Hawaii Holland Honduras Hong Kong Hungary Ibiza
Iceland India Indonesia Ireland Isle Of Man Italy Ivory Coast Jamaica Japan
Jersey Jordan Kazakhstan Kenya Kiribati South Korea Kos (Greek Island) Kuwait
Kyrgyzstan Laos Latvia Leeward Islands Lesotho Liberia Liechtenstein Lithuania
Luxembourg Macau North Macedonia Madagascar Madeira Majorca Malawi Malaysia
Maldives Malta Marshall Islands Martinique Mauritius Mayotte Mexico Micronesia
Midway Island Minorca Moldova Monaco Mongolia Montenegro Montserrat Morocco
Mozambique Namibia Nauru Nepal Netherlands Netherlands Antilles Nevis Island New
Caledonia New Zealand Nicaragua Nigeria Niue Norfolk Island Northern Ireland
Northern Marianas Norway Oman Pakistan Palau Panama Papua New Guinea Paraguay
Peru Philippines Pitcairn Islands Poland Portugal Puerto Rico Qatar Reunion
Rhodes Rodriguez Island Romania Rwanda Saipan Samoa (Western) San Marino Sao
Tome and Principe Sarawak Sardinia Saudi Arabia Scotland Senegal Serbia
Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands South Africa
South Georgia & The South Sandwich Islands Spain Sri Lanka St Helena St Kitts &
Nevis St Lucia St Martin St Pierre & Miquelon St Vincent & the Grenadines
Suriname Eswatini (Swaziland) Sweden Switzerland Taiwan Tajikistan Tanzania
Tenerife Thailand Togo Tonga Trinidad And Tobago Tristan Da Cunha Tunisia Turkey
Turkmenistan Turks And Caicos Islands Tuvalu UAE Uganda United Arab Emirates
United Kingdom United States of America Uruguay USA Uzbekistan Vanuatu Vatican
City Vietnam Virgin Islands (UK) Virgin Islands (US) Wake Island Wales Wallis
And Futuna Zaire Zambia Zanzibar Zimbabwe
 * Abu Dhabi
 * Alaska
 * Albania
 * Algeria
 * America
 * Andorra
 * Angola
 * Anguilla
 * Antarctic
 * Antigua
 * Argentina
 * Armenia
 * Aruba
 * Ascension Island
 * Australia
 * Austria
 * Azerbaijan
 * Azores
 * Bahamas
 * Bahrain
 * Balearics
 * Bali
 * Bangladesh
 * Barbados
 * Belgium
 * Belize
 * Bermuda
 * Bhutan
 * Bolivia
 * Bonaire (Antilles)
 * Bosnia And Herzegovina
 * Botswana
 * Brazil
 * British Virgin Isles
 * Brunei Darussalam
 * Bulgaria
 * Burma
 * Cambodia
 * Cameroon
 * Canada
 * Canary Islands
 * Cape Verde
 * Cayman Islands
 * Channel Islands
 * Chile
 * China
 * Colombia
 * Comoros Islands
 * Congo
 * Cook Islands
 * Corfu
 * Corsica
 * Costa Rica
 * Cote D'ivoire
 * Crete
 * Croatia
 * Cuba
 * Curaçao
 * Cyprus
 * Czech Republic
 * Denmark
 * Djibouti
 * Dominica
 * Dominican Republic
 * Ecuador
 * Egypt
 * Eire
 * El Salvador
 * England
 * Equatorial Guinea
 * Eritrea
 * Estonia
 * Ethiopia
 * Falkland Islands
 * Faroe Islands
 * Fiji
 * Finland
 * France
 * French Guiana
 * French Polynesia
 * Gabon
 * Galapagos Islands
 * Gambia
 * Georgia
 * Germany
 * Ghana
 * Gibraltar
 * Greece
 * Greenland
 * Grenada
 * Guadeloupe
 * Guam
 * Guatemala
 * Guernsey
 * Guinea-bissau
 * Guyana
 * Hawaii
 * Holland
 * Honduras
 * Hong Kong
 * Hungary
 * Ibiza
 * Iceland
 * India
 * Indonesia
 * Ireland
 * Isle Of Man
 * Italy
 * Ivory Coast
 * Jamaica
 * Japan
 * Jersey
 * Jordan
 * Kazakhstan
 * Kenya
 * Kiribati
 * South Korea
 * Kos (Greek Island)
 * Kuwait
 * Kyrgyzstan
 * Laos
 * Latvia
 * Leeward Islands
 * Lesotho
 * Liberia
 * Liechtenstein
 * Lithuania
 * Luxembourg
 * Macau
 * North Macedonia
 * Madagascar
 * Madeira
 * Majorca
 * Malawi
 * Malaysia
 * Maldives
 * Malta
 * Marshall Islands
 * Martinique
 * Mauritius
 * Mayotte
 * Mexico
 * Micronesia
 * Midway Island
 * Minorca
 * Moldova
 * Monaco
 * Mongolia
 * Montenegro
 * Montserrat
 * Morocco
 * Mozambique
 * Namibia
 * Nauru
 * Nepal
 * Netherlands
 * Netherlands Antilles
 * Nevis Island
 * New Caledonia
 * New Zealand
 * Nicaragua
 * Nigeria
 * Niue
 * Norfolk Island
 * Northern Ireland
 * Northern Marianas
 * Norway
 * Oman
 * Pakistan
 * Palau
 * Panama
 * Papua New Guinea
 * Paraguay
 * Peru
 * Philippines
 * Pitcairn Islands
 * Poland
 * Portugal
 * Puerto Rico
 * Qatar
 * Reunion
 * Rhodes
 * Rodriguez Island
 * Romania
 * Rwanda
 * Saipan
 * Samoa (Western)
 * San Marino
 * Sao Tome and Principe
 * Sarawak
 * Sardinia
 * Saudi Arabia
 * Scotland
 * Senegal
 * Serbia
 * Seychelles
 * Sierra Leone
 * Singapore
 * Slovakia
 * Slovenia
 * Solomon Islands
 * South Africa
 * South Georgia & The South Sandwich Islands
 * Spain
 * Sri Lanka
 * St Helena
 * St Kitts & Nevis
 * St Lucia
 * St Martin
 * St Pierre & Miquelon
 * St Vincent & the Grenadines
 * Suriname
 * Eswatini (Swaziland)
 * Sweden
 * Switzerland
 * Taiwan
 * Tajikistan
 * Tanzania
 * Tenerife
 * Thailand
 * Togo
 * Tonga
 * Trinidad And Tobago
 * Tristan Da Cunha
 * Tunisia
 * Turkey
 * Turkmenistan
 * Turks And Caicos Islands
 * Tuvalu
 * UAE
 * Uganda
 * United Arab Emirates
 * United Kingdom
 * United States of America
 * Uruguay
 * USA
 * Uzbekistan
 * Vanuatu
 * Vatican City
 * Vietnam
 * Virgin Islands (UK)
 * Virgin Islands (US)
 * Wake Island
 * Wales
 * Wallis And Futuna
 * Zaire
 * Zambia
 * Zanzibar
 * Zimbabwe


Country list Abu Dhabi Alaska Albania Algeria Andorra Angola Anguilla Antarctic
Antigua Argentina Armenia Aruba Ascension Island Australia Austria Azerbaijan
Azores Bahamas Bahrain Balearics Bali Bangladesh Barbados Belarus Belgium Belize
Benin Bermuda Bhutan Bolivia Bonaire (Antilles) Bosnia And Herzegovina Botswana
Brazil British Virgin Isles Brunei Darussalam Bulgaria Burkina Faso Burma
Cambodia Cameroon Canada Canary Islands Cape Verde Cayman Islands Chile China
Colombia Comoros Islands Cook Islands Corfu Corsica Costa Rica Côte D'ivoire
Crete Croatia Cuba Curaçao Cyprus Czech Republic Denmark Djibouti Dominica
Dominican Republic Ecuador Egypt Eire El Salvador Equatorial Guinea Eritrea
Estonia Ethiopia Falkland Islands Faroe Islands Fiji Finland France French
Guiana French Polynesia Gabon Galapagos Islands Gambia Georgia Germany Ghana
Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey
Guinea-bissau Guyana Haiti Hawaii Holland Honduras Hong Kong Hungary Ibiza
Iceland India Indonesia Iran Ireland Isle Of Man Italy Ivory Coast Jamaica Japan
Jersey Jordan Kazakhstan Kenya Kiribati Korea Kos (Greek Island) Kuwait
Kyrgyzstan Laos Latvia Leeward Islands Lesotho Liberia Liechtenstein Lithuania
Luxembourg Macau Macedonia Madagascar Madeira Majorca Malawi Malaysia Maldives
Malta Marshall Islands Martinique Mauritius Mayotte Mexico Micronesia Midway
Island Minorca Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique
Myanmar Namibia Nauru Nepal Netherlands Netherlands Antilles Nevis Island New
Caledonia New Zealand Nigeria Niue Norfolk Island Northern Ireland Northern
Marianas Norway Oman Pakistan Palau Panama Papua New Guinea Paraguay Peru
Philippines Pitcairn Islands Poland Portugal Puerto Rico Qatar Réunion Rhodes
Rodriguez Island Romania Russia Rwanda Saipan Samoa (Western) San Marino Sao
Tome and Principe Sarawak Sardinia Saudi Arabia Senegal Serbia Seychelles
Singapore Slovakia Slovenia Solomon Islands South Africa South Georgia & The
South Sandwich Islands Spain Sri Lanka St Helena St Kitts & Nevis St Lucia St
Martin St Pierre & Miquelon St Vincent & the Grenadines Suriname Swaziland
Sweden Switzerland Taiwan Tajikistan Tanzania Tenerife Thailand Togo Tonga
Trinidad And Tobago Tristan Da Cunha Turkey Turkmenistan Turks And Caicos
Islands Tuvalu UAE Uganda Ukraine United Kingdom Uruguay USA Uzbekistan Vanuatu
Vatican City Vietnam Virgin Islands (UK) Virgin Islands, (US) Wake Island Wallis
And Futuna Zaire Zambia Zanzibar Zimbabwe

Please select all countries that you will be visiting on your trip.



WHEN WOULD YOU LIKE YOUR COVER TO START?
ANNUAL MULTI-TRIP
ANNUAL MULTI TRIP POLICIES COVER YOU FOR 365 DAYS FROM YOUR SELECTED START DATE
- TRIP LENGTH IS OFTEN LIMITED TO AROUND 31, 45 OR 55 DAYS, BUT THIS IS
DEPENDENT ON YOUR CHOSEN PRODUCT. ANNUAL MULTI-TRIP POLICIES CAN BE PURCHASED UP
TO 60 DAYS IN ADVANCE OF YOUR POLICY START DATE. YOU WILL NOT BE ELIGIBLE FOR
CANCELLATION COVER UNTIL THE POLICY STARTS. IF YOU WANT THIS COVER, YOU SHOULD
CONSIDER STARTING THE POLICY STRAIGHT AWAY.


START DATE




Please enter a valid start date

Travel dates cannot be before todays date

Your trip cannot start more than 60 days in advance
Your policy cannot start more than 365 days in advance



WHERE ARE YOU TRAVELLING TO?


Please select a region of travel.

United Kingdom Europe
Worldwide
excluding USA, Mexico, Canada and Caribbean
Worldwide





WHO WOULD YOU LIKE THE INSURANCE TO COVER?
WHO WOULD YOU LIKE THE INSURANCE TO COVER?
THIS QUESTION IS BASED ON THE PEOPLE YOU WANT INSURED UNDER THIS POLICY.
COUPLE: 2 PEOPLE LIVING AT THE SAME ADDRESS
FAMILY: UP TO 2 ADULTS WITH AT LEAST ONE CHILD (UNDER THE AGE OF 18)
GROUP: UP TO TEN TRAVELLERS AND NOT NECESSARILY RELATED (EXTENDED FAMILY AND
FRIENDS ETC). AT LEAST ONE TRAVELLER SHOULD BE AN ADULT

Individual
Couple
Family
Group






SELECT THE NUMBER OF TRAVELLERS

Please select 2 3 4 5 6 7


SELECT THE NUMBER OF TRAVELLERS

Please select 2 3 4 5 6 7 8 9 10

At least one traveller must be under 18

At least one traveller must be over 18 years old

Only two travellers can be over 18



MAIN TRAVELLER




WHAT IS YOUR TITLE?


Mr
Mrs
Miss
Ms
Mx
Dr
Master





WHAT IS YOUR FULL NAME?




FIRST NAME




LAST NAME




Please complete the traveller's title

Please complete the traveller's first name

Please complete the traveller's surname





WHAT IS YOUR DATE OF BIRTH?


Date of birth
If you were born before 1923 please call our contact centre on 0330 400 1675 to
obtain a quote.


Your date of birth will help us to calculate your quote


Please call 0330 400 1675 to complete your quote

We need to confirm some extra details as you are over 100 years old.


Date of birth
If you were born before 1923 please call our contact centre on 0330 400 1675 to
obtain a quote.

Day
Month
Year

Both travellers must be over 18 years old

Main traveller must be over 18 years old

Please enter a valid date of birth

Please complete the traveller's date of birth

Unfortunately we cannot offer cover to travellers over 65




WHAT ARE YOUR CONTACT DETAILS?




YOUR PHONE NUMBER



Please enter a valid contact number



EMAIL ADDRESS



Please enter a valid email address



POSTCODE


Find Address

Please select find address or enter your address manually

Please select your address from the dropdown to confirm your address or manually
enter your address below







HOUSE NUMBER/NAME


ADDRESS LINE ONE




TOWN*










ARE YOU A CO-OP GROUP MEMBER?

Co-op Members get an exclusive discount

Yes
No


CO-OP MEMBERSHIP NUMBER

You can find your 18 digit number on the back of your membership card or in the
app.

Enter a valid Co-op Group Membership Number


633174


DO YOU WANT TO BECOME A CO‑OP MEMBER FOR £1?

You'll get a discount on this purchase and:

 * access to our Member Prices
 * exclusive offers, discounts and events from Co-op
 * you can choose a local cause to support
 * you can have a say in how our Co‑op is run

£1 of your first insurance payment will pay for your membership.

Read our membership terms and conditions.

Yes, I want to be a Co‑op Member


HOW WOULD YOU LIKE US TO CONTACT YOU?

We'd like to keep you up to date about products, services and benefits from
Co‑op and our family of businesses, such as Insurance, Food and Life Services.

I'd like the Insurance team to contact me by:

marketing perferences
phone
email
text
post

I'd like the Membership team to contact me by:

email





PRE-EXISTING MEDICAL CONDITIONS



DO ANY OF THE TRAVELLERS HAVE PRE-EXISTING MEDICAL CONDITIONS?


If you are unsure you should answer yes to this question. You must declare ALL
existing medical conditions for all travellers to be insured under this policy.
What does medical condition mean and when must I answer "Yes"?


Please select whether you have pre-existing medical conditions.

Yes No


You must answer Yes to this question if anyone to be insured under this policy
has: Any disease, illness or injury for which you or anyone else insured on this
policy has:
 * Taken any prescribed medication or required medical treatment within the last
   two years;
 * Consulted a medical practitioner and/or been registered as an in or out
   patient at a hospital, clinic or GP surgery in the last two years.

You will then be asked some more specific questions that will help identify
whether you need to be medically screened. Being medically screened does not
necessarily mean that you will pay any more premium, but will help ensure that
we can provide the cover that you need.

We will provide cover for claims associated with those pre-existing medical
conditions or disabilities that you have disclosed to us, we have accepted in
writing and for which you have paid any additional premium due. We cannot
provide cover for conditions that you choose not to tell us about or where your
(or their) state of health is worse than you have told us.

Continue





Get your quotes










Co-op Travel Insurance is arranged by IES Limited, which is registered in
Gibraltar company number 117274. Registered Office: 1st Floor, Portland House,
Glacis Road, Gibraltar, GX11 1AA. IES Limited is licensed and regulated by the
Gibraltar Financial Services Commission number FSC25393 and trades into the UK
on a freedom of services basis, FCA FRN 824283. We are remunerated by commission
for the arrangement, service and renewal of your insurance policy. We may
receive a profit share payment from some of our insurers if they achieve
performance targets across their product portfolio. Travel insurance is
administered by Insure & Go Insurance Services Limited. Insure & Go Insurance
Services Limited is authorised and regulated by the Financial Conduct Authority,
firm reference number 309572.

^Call charges may apply. Calls may be monitored or recorded for security and
training purposes.


Privacy policy

© 2023 Insure & Go Insurance Services Limited. All rights reserved.