
<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>
		Passport Information for All the Group Members
	</title>
	<meta content="width=device-width,minimum-scale=1,initial-scale=1" name="viewport">
  <link href="https://data.chinahighlights.com/css/min.php?f=/css/customer_center_data/bootstrap.min.css&v=202405161016" rel="stylesheet">
	<style>
		body {
			margin: 0;
			font-family: Calibri;
		}

		.headerbar {
			height: 64px;
		}

		.topnavigation {
			width: 880px;
			margin: 0 auto;
		}


		#inquiryBox {
			display: block;
			background-color: #FFF;
			padding: 50px;
			border-radius: 4px;
			width: 800px;
			margin: 50px auto 35px auto;
		}


		.wholeWrap2 {
			background: #000;
			width: 100%;
			display: inline-block;
			margin-bottom: -4px;
			padding-top: 40px;
			padding-bottom: 100px;
		}

		h2 {
			font-size: 28px;
			font-weight: 600;
			margin: 10px 0 25px 0;
			line-height: 30px;
		}

		#inquiryBox h1 {
			font-size: 33px;
			margin: 0 0 15px;
            line-height: 33px;
		}

		textarea {
			font-size: 19px;
			line-height: 22px;
			padding: 15px;
			border: 1px solid #d1d1d1;
			background: #fff;
			width: 100%;
			height: 120px;
			border-radius: 6px;
			margin-top: 10px;
			font-family: Calibri;
			margin-bottom: 30px;
		}

		#name_error_msg,
		#passport_error_msg,
		#birth_error_msg,
		#expiration_error_msg {
			color: #ad1818;
			font-size: 16px;
			border-bottom: 1px dashed;
			margin: 10px 0;
			width: 100%;
			padding-bottom: 5px;
			font-style: italic;
		}

		.inputTerm label {
			display: block;
			width: 100%;
			font-size: 20px;
			position: absolute;
			left: 20px;
			top: calc(50% - 13px);
			transition: all ease-in-out .5s;
			pointer-events: none;
			height: 26px;
			color: #999;
            font-weight:400;
		}

		.inputTerm {
			display: block;
			width: 100%;
			margin: 15px auto 0 auto;
			position: relative
		}

		.inputTerm input:focus~label,
		.inputTerm input:valid~label {
			top: 5px;
			font-size: 15px;
			color: #999;
			transition: 0.3s;
		}

		.inputTerm input {
			width: 100%;
			margin: 0;
			font-size: 20px;
			border: 1px solid #d1d1d1;
			height: 60px;
			padding: 15px 15px 0 20px;
			border-radius: 4px;
			color: #000
		}
		.inputTerm input.number {    width: 51%; height: 57px;}
		button#tmsubmit {
			background: #ad1818;
			text-align: center;
			display: table;
			border-radius: 25px;
			min-width: 30%;
			margin: 50px auto;
			padding: 10px 30px;
			color: #FFF;
			font-size: 27px;
			border: none;
			cursor: pointer;
		}

		button.add_traveler_button {
			font-size: 20px;
    color: #ad1818;
    padding: 5px 30px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    margin-top: 30px;
    margin-right: 10px;
		}

		#Date_Start {
			width: 310px;
			font-size: 19px;
			border-radius: 4px;
			padding: 8px 15px 8px 60px;
			color: #000;
			border: 1px solid #d1d1d1;
			height: 35px;
			margin-bottom: 10px;
			background: url(https://data.chinahighlights.com/pic/top10/tour-calendar.png) no-repeat 15px;
		}
input.arrivalDate {height: 50px; width: 347px; font-size: 19px; padding: 5px 15px;}

		.selectionBlock {
			display: inline-block;
    width: 348px;
    margin-top: 15px;
		}

		.selectionBlock p {
			margin-bottom: 10px;
		}

		h3 {
			font-size: 27px;
			margin-top: 30px;
			width: 100%;
			display: inline-block;
			font-weight: 400;
			margin-bottom: 10px;
		}


		.datepicker.dropdown-menu {
			font-size: 17px;
		}

		p {
			font-size: 19px;
			line-height: 25px;
		}

		em {
			color: #ad1818;
		}



		.datepicker table tr td.disabled,
		.datepicker table tr td.disabled:hover {
			background: none;
			color: #999;
			cursor: default;
		}

		.datepicker table tr td.old,
		.datepicker table tr td.new {
			color: #000;
		}

		.datepicker table tr td.day:hover,
		.datepicker table tr td.focused {
			background: #ad1818;
			cursor: pointer;
			color: #fff;
			font-weight: 600;
		}

		select.country_code {
			font-size: 18px;
			color: #000;
			height: 57px;
			padding-left: 10px;
			background: #fff;
			border-radius: 4px;
			border: 1px solid #d1d1d1;
			width: 100%;
			margin-top: 15px;
		}
		select.code {
			font-size: 18px;
			color: #000;
			height: 57px;
			padding-left: 10px;
			background: #fff;
			border-radius: 4px;
			border: 1px solid #d1d1d1;
			width: auto;
			position: relative;
    top: -8px;
		}
		p.top_info {
			width: 860px;
			margin: 0 auto;
			color: #fff;
			font-style: italic;
			margin-bottom: 20px;
			font-size: 21px;
			line-height: 27px;
			font-weight: 300;
		}

		.traveler_info {
			border-bottom: 3px dashed #d1d1d1;
			padding-bottom: 50px;
			margin-bottom: 50px;
		}

		.emergency_title {
			font-size: 24px;
			margin-top: -15px;
			font-weight: 600;
			line-height: 27px;
		}

		.hidden {
			display: none;
		}

		.img-responsive {
			overflow-x: auto;
			max-width: 100%;
		}
        .modal-title {
    margin: 0;
    line-height: 1.42857143;
    font-size: 25px;
    text-align: center;
    color: #000;
}
.btn { font-size: 18px;}
.btn-primary {
    color: #fff;
    background-color: #ad1818;
    border-color: #ad1818;
}
		@media (max-width: 750px) {
			img.asiahighlightslogo {
				width: 210px;
			}

			.topnavigation,
			#inquiryBox,
			p.top_info {
				width: auto;
			}

			p.top_info,
			img.asiahighlightslogo {
				padding: 0 15px;
			}

			p.top_info {
				font-size: 19px;
				line-height: 23px;
			}

			#inquiryBox {
				padding: 30px 20px;
				margin: 0 10px 40px 10px;
			}

			.headerbar {
				height: 53px;
			}

			select.country_code,
			.selectionBlock, input.arrivalDate, .inputTerm input.number, select.code {
				width: 100%;
			}

			#Date_Start {
				width: 78%;
			}
            .inputTerm label { font-size: 18px;}
		}
    select.ui-timepicker-select.ui-state-default.ui-corner-all {
    font-size: 17px;
    width: 100%;
    height: 30px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #d1d1d1;
    margin-bottom: 10px;
}
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: Calibri;
    font-size: 17px;
    width: 100%;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #d1d1d1;
}
dd.ui_tpicker_time {
    margin-bottom: 15px;
}
.ui-timepicker-div .ui_tpicker_unit_hide{ display: none; }
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide,
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide:before{ display: none; }

label.gender {
    font-size: 19px;
    font-weight: 400;
    text-align: center;
    margin-right: 10px;
    float: left;
    border: 1px solid #d1d1d1;
    padding: 10px;
    border-radius: 4px;
}
label.gender:hover {
    cursor: pointer;
    color: #fff;
    background: #ad1818;
}
.tmpick:checked+label {
    background: #ad1818;
    color: #fff;
}
select.gender_pick {border: 1px solid #d1d1d1;
    border-radius: 4px;
    height: 50px;
    font-size: 19px;
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 10%);
	padding: 0 15px;
    width: auto;}
	</style>
</head>

<body>
	<header class="headerbar" id="header">
		<div class="topnavigation">
			<a href="/" class="p_toplogo" style="display: inline-block;"> <img
					src="https://data.chinahighlights.com/image/aboutus/gh2.png" alt="Globalhighlights logo"
					class="asiahighlightslogo img-responsive"></a>

		</div>
	</header>


	<div class="wholeWrap2">

		<p class="top_info">Dear <?php echo $username; ?>,</p>

		<p class="top_info"> Thanks for booking with us. China Highlights, Asia Highlights, and Global Highlights are
			working together to provide you an exclusive, exciting, and worry-free tour experience in different
			destinations. </p>

		<p class="top_info"> Please complete and submit the information below.</p>

		<div class="tm_form_content">

			<form action="https://www.chinahighlights.com/secureinfoconfirm/confirm/save_confirm_info" id="form-confirm-info" method="POST">
				<div id="inquiryBox">

					<h1>
						Passport Information for All the Group Members
					</h1>
					<p>Please ensure the details you provide are correct, as stated in your passport. We use this
						information to book all your hotels, transportation, and activities. If the information you
						provide is incorrect, you would not be able to board your flight or trains, and therefore
						reissuing of tickets would be at your expense!</p>

					<div class="traveler_info">
						<h3 data-header>Primary contact</h3>
						<div class="selectionBlock">

						<select name="gender[]" class="gender_pick">
                            <option value="100001">Mr.</option>
                            <option value="100003">Ms.</option>
                        </select>
							<div class="inputTerm">
								<input type="text" name="sur_name[]" required="">
								<label>
									Sur name
								</label>
							</div>
						</div>
						<div class="selectionBlock">

							<div class="inputTerm">
								<input type="text" name="given_name[]" required="">
								<label>
									Given name
								</label>
							</div>
						</div>
						<div id="name_error_msg" class="hidden">Please enter your name.</div>

						<div class="inputTerm">
							<input type="text" name="passport[]" required="" class="number" style="width:100%;">
							<label>
								Passport No.
							</label>
						</div>
						<div id="passport_error_msg" class="hidden">Please enter your passport number.</div>

						<select class="country_code" name="nationality[]">
							<option value="" disabled="" selected="">Select your nationality</option>
							<option value="18">Australia</option>
                                                <option value="5">Canada</option>
                                                <option value="1">China</option>
                                                <option value="8">France</option>
                                                <option value="6">Germany</option>
                                                <option value="9">Italy</option>
                                                <option value="19">Malaysia</option>
                                                <option value="27">Singapore</option>
                                                <option value="7">United Kingdom</option>
                                                <option value="3" >United States</option>
                                                <option value="458">Afghanistan</option>
                                                <option value="459">Albania</option>
                                                <option value="460">Algeria</option>
                                                <option value="461">American Samoa</option>
                                                <option value="462">Andorra</option>
                                                <option value="463">Angola</option>
                                                <option value="464">Anguilla</option>
                                                <option value="465">Antarctica</option>
                                                <option value="466">Antigua And Barbuda</option>
                                                <option value="467">Argentina</option>
                                                <option value="468">Armenia</option>
                                                <option value="469">Aruba</option>
                                                <option value="470">Austria</option>
                                                <option value="471">Azerbaijan</option>
                                                <option value="472">Bahamas</option>
                                                <option value="473">Bahrain</option>
                                                <option value="474">Bangladesh</option>
                                                <option value="671">Barbadian</option>
                                                <option value="475">Barbados</option>
                                                <option value="476">Belarus</option>
                                                <option value="477">Belgium</option>
                                                <option value="478">Belize</option>
                                                <option value="479">Benin</option>
                                                <option value="480">Bermuda</option>
                                                <option value="481">Bhutan</option>
                                                <option value="482">Bolivia</option>
                                                <option value="483">Botswana</option>
                                                <option value="484">Bouvet Island</option>
                                                <option value="38">Brazil</option>
                                                <option value="485">British Indian Ocean Territory</option>
                                                <option value="486">Brunei Darussalam</option>
                                                <option value="487">Bulgaria</option>
                                                <option value="488">Burkina Faso</option>
                                                <option value="489">Burundi</option>
                                                <option value="490">Cambodia</option>
                                                <option value="491">Cameroon</option>
                                                <option value="493">Cape Verde</option>
                                                <option value="494">Cayman Islands</option>
                                                <option value="495">Central African Republic</option>
                                                <option value="496">Chad</option>
                                                <option value="497">Chile</option>
                                                <option value="10">China HK</option>
                                                <option value="499">Christmas Island</option>
                                                <option value="500">Colombia</option>
                                                <option value="501">Comoros</option>
                                                <option value="502">Congo</option>
                                                <option value="504">Cook Islands</option>
                                                <option value="505">Costa Rica</option>
                                                <option value="506">Croatia</option>
                                                <option value="507">Cuba</option>
                                                <option value="508">Cyprus</option>
                                                <option value="509">Czech Republic</option>
                                                <option value="510">Czechoslovakia</option>
                                                <option value="511">Denmark</option>
                                                <option value="512">Djibouti</option>
                                                <option value="513">Dominica</option>
                                                <option value="514">Dominican Republic</option>
                                                <option value="515">East Timor</option>
                                                <option value="516">Ecuador</option>
                                                <option value="517">Egypt</option>
                                                <option value="518">El Salvador</option>
                                                <option value="520">Equatorial Guinea</option>
                                                <option value="521">Eritrea</option>
                                                <option value="522">Estonia</option>
                                                <option value="523">Ethiopia</option>
                                                <option value="524">Falkland Islands</option>
                                                <option value="525">Faroe Islands</option>
                                                <option value="526">Fiji</option>
                                                <option value="527">Finland</option>
                                                <option value="528">French Guiana</option>
                                                <option value="529">French Polynesia</option>
                                                <option value="530">Gabon</option>
                                                <option value="531">Gambia</option>
                                                <option value="532">Georgia</option>
                                                <option value="533">Ghana</option>
                                                <option value="534">Gibraltar</option>
                                                <option value="536">Greece</option>
                                                <option value="537">Greenland</option>
                                                <option value="538">Grenada</option>
                                                <option value="539">Guadeloupe</option>
                                                <option value="540">Guam</option>
                                                <option value="670">Guatemala</option>
                                                <option value="541">Guernsey</option>
                                                <option value="542">Guinea</option>
                                                <option value="543">Guinea-Bissau</option>
                                                <option value="544">Guyana</option>
                                                <option value="545">Haiti</option>
                                                <option value="546">Honduras</option>
                                                <option value="547">Hong Kong</option>
                                                <option value="548">Hungary</option>
                                                <option value="36">Iceland</option>
                                                <option value="22">India</option>
                                                <option value="549">Indonesia</option>
                                                <option value="550">Iran</option>
                                                <option value="551">Iraq</option>
                                                <option value="552">Ireland</option>
                                                <option value="553">Isle Of Man</option>
                                                <option value="21">Israel</option>
                                                <option value="554">Jamaica</option>
                                                <option value="2">Japan</option>
                                                <option value="556">Jersey</option>
                                                <option value="557">Jordan</option>
                                                <option value="558">Kazakhstan</option>
                                                <option value="668">Kazakhstan2</option>
                                                <option value="559">Kenya</option>
                                                <option value="560">Kiribati</option>
                                                <option value="562">Korea</option>
                                                <option value="563">Kuwait</option>
                                                <option value="564">Kyrgyzstan</option>
                                                <option value="35">Laos</option>
                                                <option value="565">Latvia</option>
                                                <option value="566">Lebanon</option>
                                                <option value="567">Lesotho</option>
                                                <option value="568">Liberia</option>
                                                <option value="569">Libyan Arab Jamahiriya</option>
                                                <option value="570">Liechtenstein</option>
                                                <option value="571">Lithuania</option>
                                                <option value="572">Luxembourg</option>
                                                <option value="573">Macau</option>
                                                <option value="574">Macedonia</option>
                                                <option value="575">Madagascar</option>
                                                <option value="576">Malawi</option>
                                                <option value="577">Maldives</option>
                                                <option value="578">Mali</option>
                                                <option value="579">Malta</option>
                                                <option value="580">Marshall Islands</option>
                                                <option value="581">Martinique</option>
                                                <option value="582">Mauritania</option>
                                                <option value="583">Mauritius</option>
                                                <option value="584">Mayotte</option>
                                                <option value="32">Mexican</option>
                                                <option value="585">Micronesia</option>
                                                <option value="586">Moldova</option>
                                                <option value="587">Monaco</option>
                                                <option value="29">Mongolia</option>
                                                <option value="588">Montserrat</option>
                                                <option value="589">Morocco</option>
                                                <option value="590">Mozambique</option>
                                                <option value="591">Myanmar</option>
                                                <option value="592">Namibia</option>
                                                <option value="593">Nauru</option>
                                                <option value="31">Nepal</option>
                                                <option value="39">Netherlands</option>
                                                <option value="594">Netherlands Antilles</option>
                                                <option value="595">Neutral Zone</option>
                                                <option value="596">New Caledonia</option>
                                                <option value="20">New Zealand</option>
                                                <option value="597">Nicaragua</option>
                                                <option value="598">Niger</option>
                                                <option value="599">Nigeria</option>
                                                <option value="600">Niue</option>
                                                <option value="601">Norfolk Island</option>
                                                <option value="33">North Korea</option>
                                                <option value="602">Northern Mariana Islands</option>
                                                <option value="37">Norway</option>
                                                <option value="603">Oman</option>
                                                <option value="604">Pakistan</option>
                                                <option value="605">Palau</option>
                                                <option value="606">Panama</option>
                                                <option value="607">Papua New Guinea</option>
                                                <option value="608">Paraguay</option>
                                                <option value="609">Peru</option>
                                                <option value="23">Philippines</option>
                                                <option value="610">Pitcairn</option>
                                                <option value="611">Poland</option>
                                                <option value="612">Portugal</option>
                                                <option value="613">Puerto Rico</option>
                                                <option value="614">Qatar</option>
                                                <option value="615">Reunion</option>
                                                <option value="616">Romania</option>
                                                <option value="24">Russian Federation</option>
                                                <option value="617">Rwanda</option>
                                                <option value="618">Saint Helena</option>
                                                <option value="619">Samoa</option>
                                                <option value="620">San Marino</option>
                                                <option value="621">Sao Tome and Principe</option>
                                                <option value="622">Saudi Arabia</option>
                                                <option value="674">Scotland</option>
                                                <option value="623">Senegal</option>
                                                <option value="624">Seychelles</option>
                                                <option value="625">Sierra Leone</option>
                                                <option value="626">Slovakia</option>
                                                <option value="627">Slovenia</option>
                                                <option value="628">Solomon Islands</option>
                                                <option value="629">Somalia</option>
                                                <option value="630">South Africa</option>
                                                <option value="631">South Georgia and The Sandwich</option>
                                                <option value="26">Spain</option>
                                                <option value="632">Sri Lanka</option>
                                                <option value="633">Sudan</option>
                                                <option value="634">Suriname</option>
                                                <option value="635">Swaziland</option>
                                                <option value="636">Sweden</option>
                                                <option value="25">Switzerland</option>
                                                <option value="637">Syrian Arab Republic</option>
                                                <option value="638">Taiwan</option>
                                                <option value="639">Tanzania</option>
                                                <option value="28">Thailand</option>
                                                <option value="676">The Republic of Cote d'ivoire</option>
                                                <option value="640">Togo</option>
                                                <option value="641">Tokelau</option>
                                                <option value="642">Tonga</option>
                                                <option value="643">Trinidad and Tobago</option>
                                                <option value="644">Tunisia</option>
                                                <option value="645">Turkey</option>
                                                <option value="646">Turkmenistan</option>
                                                <option value="647">Turks and Caicos Islands</option>
                                                <option value="648">Tuvalu</option>
                                                <option value="649">Uganda</option>
                                                <option value="650">Ukraine</option>
                                                <option value="651">United Arab Emirates</option>
                                                <option value="667">unknown</option>
                                                <option value="652">Uruguay</option>
                                                <option value="653">USSR</option>
                                                <option value="654">Uzbekistan</option>
                                                <option value="655">Vanuatu</option>
                                                <option value="656">Vatican City State</option>
                                                <option value="657">Venezuela</option>
                                                <option value="30">Vietnam</option>
                                                <option value="659">Virgin Islands (British)</option>
                                                <option value="660">Virgin Islands (U.S.)</option>
                                                <option value="661">Western Sahara</option>
                                                <option value="662">Yemen</option>
                                                <option value="663">Yugoslavia</option>
                                                <option value="664">Zaire</option>
                                                <option value="665">Zambia</option>
                                                <option value="666">Zimbabwe</option>
                                                <option value="678">Serbia</option>
                                            </select>
											<div class="inputTerm" id='phoneNumberDiv'>
											<select class="code" name="country_code" id="country_code">
<option value="" disabled selected>Please select your country code</option>
                <option style="font-weight: 600;" value="United States +1">United States&nbsp; &nbsp;+1</option>
                <option style="font-weight: 600;" value="United Kingdom +44">United Kingdom&nbsp; &nbsp;+44</option>
                <option style="font-weight: 600;" value="Australia +61">Australia&nbsp; &nbsp;+61</option>
                <option style="font-weight: 600;" value="Canada +1">Canada&nbsp; &nbsp;+1</option>
                <option style="font-weight: 600;" value="France +33">France&nbsp; &nbsp;+33</option>
                <option style="font-weight: 600;" value="Germany +49">Germany&nbsp; &nbsp;+49</option>
                <option style="font-weight: 600; " value="Italy +39">Italy&nbsp; &nbsp;+39</option>
                <option style="font-weight: 600; " value="Mexico +52">Mexico&nbsp; &nbsp;+52</option>
                <option style="font-weight: 600; " value="Netherlands +31">Netherlands&nbsp; &nbsp;+31</option>
                <option style="font-weight: 600; " value="Singapore +65">Singapore&nbsp; &nbsp;+65</option>
                <option value="Afghanistan +93">Afghanistan &nbsp; &nbsp;+93</option>
                <option value="Albania +355">Albania &nbsp; &nbsp;+355</option>
                <option value="Algeria +213">Algeria&nbsp; &nbsp;+213</option>
                <option value="American Samoa +1">American Samoa&nbsp; &nbsp;+1684</option>
                <option value="Andorra +376">Andorra&nbsp; &nbsp;+376</option>
                <option value="Angola +244">Angola&nbsp; &nbsp;+244</option>
                <option value="Anguilla +1">Anguilla&nbsp; &nbsp;+1264</option>
                <option value="Australia +61">Australia&nbsp; &nbsp;+61</option>
                <option value="Antigua and Barbuda +1">Antigua and Barbuda&nbsp; &nbsp;+1268</option>
                <option value="Argentina +54">Argentina&nbsp; &nbsp;+54</option>
                <option value="Armenia +374">Armenia &nbsp; &nbsp;+374</option>
                <option value="Aruba +297">Aruba&nbsp; &nbsp;+297</option>
                <option value="Ascension Island +247">Ascension Island&nbsp; &nbsp;+247</option>
                <option value="Austria +43">Austria&nbsp; &nbsp;+43</option>
                <option value="Azerbaijan +994">Azerbaijan&nbsp; &nbsp;+994</option>
                <option value="Bahamas +1">Bahamas&nbsp; &nbsp;+1242</option>
                <option value="Bahrain +973">Bahrain&nbsp; &nbsp;+973</option>
                <option value="Bangladesh +880">Bangladesh&nbsp; &nbsp;+880</option>
                <option value="Barbados +1">Barbados&nbsp; &nbsp;+1246</option>
                <option value="Belarus +375">Belarus&nbsp; &nbsp;+375</option>
                <option value="Belgium +32">Belgium&nbsp; &nbsp;+32</option>
                <option value="Belize +501">Belize&nbsp; &nbsp;+501</option>
                <option value="Benin +229">Benin&nbsp; &nbsp;+229</option>
                <option value="Bermuda +1">Bermuda&nbsp; &nbsp;+1441</option>
                <option value="Bhutan +975">Bhutan&nbsp; &nbsp;+975</option>
                <option value="Bolivia +591">Bolivia&nbsp; &nbsp;+591</option>
                <option value="Bosnia and Herzegovina +387">Bosnia and Herzegovina&nbsp; &nbsp;+387</option>
                <option value="Botswana +267">Botswana&nbsp; &nbsp;+267</option>
                <option value="Brazil +55">Brazil&nbsp; &nbsp;+55</option>
                <option value="British Indian Ocean Territory +246">British Indian Ocean Territory&nbsp; &nbsp;+246
                </option>
                <option value="British Virgin Islands +1">British Virgin Islands&nbsp; &nbsp;+1284</option>
                <option value="Brunei +673">Brunei&nbsp; &nbsp;+673</option>
                <option value="Bulgaria +359">Bulgaria &nbsp; &nbsp;+359</option>
                <option value="Burkina Faso +226">Burkina Faso&nbsp; &nbsp;+226</option>
                <option value="Burundi +257">Burundi&nbsp; &nbsp;+257</option>
                <option value="Cambodia +855">Cambodia&nbsp; &nbsp;+855</option>
                <option value="Cameroon +237">Cameroon&nbsp; &nbsp;+237</option>
                <option value="Canada +1">Canada&nbsp; &nbsp;+1</option>
                <option value="Cape Verde +238">Cape Verde&nbsp; &nbsp;+238</option>
                <option value="Caribbean Netherlands +599">Caribbean Netherlands&nbsp; &nbsp;+599</option>
                <option value="Cayman Islands +1">Cayman Islands&nbsp; &nbsp;+1345</option>
                <option value="Central African Republic +236">Central African Republic&nbsp; &nbsp;+236</option>
                <option value="Chad +235">Chad&nbsp; &nbsp;+235</option>
                <option value="Chile +56">Chile&nbsp; &nbsp;+56</option>
                <option value="China +86">China&nbsp; &nbsp;+86</option>
                <option value="Christmas Island +61">Christmas Island&nbsp; &nbsp;+6189164</option>
                <option value="Cocos Islands +61">Cocos Islands&nbsp; &nbsp;+6189162</option>
                <option value="Colombia +57">Colombia&nbsp; &nbsp;+57</option>
                <option value="Comoros +269">Comoros&nbsp; &nbsp;+269</option>
                <option value="Congo +243">Congo (DRC)&nbsp; &nbsp;+243</option>
                <option value="Congo +242">Congo (Republic)&nbsp; &nbsp;+242</option>
                <option value="Cook Islands +682">Cook Islands&nbsp; &nbsp;+682</option>
                <option value="Costa Rica +506">Costa Rica&nbsp; &nbsp;+506</option>
                <option value="Côte d'Ivoire +225">Côte d'Ivoire&nbsp; &nbsp;+225</option>
                <option value="Croatia +385">Croatia&nbsp; &nbsp;+385</option>
                <option value="Cuba +53">Cuba&nbsp; &nbsp;+53</option>
                <option value="Curaçao +599">Curaçao&nbsp; &nbsp;+599</option>
                <option value="Cyprus +357">Cyprus&nbsp; &nbsp;+357</option>
                <option value="Czech Republic +420">Czech Republic&nbsp; &nbsp;+420</option>
                <option value="Denmark +45">Denmark&nbsp; &nbsp;+45</option>
                <option value="Djibouti +253">Djibouti&nbsp; &nbsp;+253</option>
                <option value="Dominica +1">Dominica&nbsp; &nbsp;+1767</option>
                <option value="Dominican Republic +1">Dominican Republic&nbsp; &nbsp;+1809</option>
                <option value="Ecuador +593">Ecuador&nbsp; &nbsp;+593</option>
                <option value="Egypt +20">Egypt&nbsp; &nbsp;+20</option>
                <option value="El Salvador +503">El Salvador&nbsp; &nbsp;+503</option>
                <option value="Equatorial Guinea +240">Equatorial Guinea&nbsp; &nbsp;+240</option>
                <option value="Eritrea +291">Eritrea&nbsp; &nbsp;+291</option>
                <option value="Estonia +372">Estonia&nbsp; &nbsp;+372</option>
                <option value="Eswatini +268">Eswatini&nbsp; &nbsp;+268</option>
                <option value="Ethiopia +251">Ethiopia&nbsp; &nbsp;+251</option>
                <option value="Falkland Islands +500">Falkland Islands&nbsp; &nbsp;+500</option>
                <option value="Faroe Islands +298">Faroe Islands&nbsp; &nbsp;+298</option>
                <option value="Fiji +679">Fiji&nbsp; &nbsp;+679</option>
                <option value="Finland +358">Finland&nbsp; &nbsp;+358</option>
                <option value="France +33">France&nbsp; &nbsp;+33</option>
                <option value="French Guiana +594">French Guiana&nbsp; &nbsp;+594</option>
                <option value="French Polynesia +689">French Polynesia&nbsp; &nbsp;+689</option>
                <option value="Gabon +241">Gabon&nbsp; &nbsp;+241</option>
                <option value="Gambia +220">Gambia&nbsp; &nbsp;+220</option>
                <option value="Georgia +995">Georgia&nbsp; &nbsp;+995</option>
                <option value="Germany +49">Germany&nbsp; &nbsp;+49</option>
                <option value="Ghana +233">Ghana&nbsp; &nbsp;+233</option>
                <option value="Gibraltar +350">Gibraltar&nbsp; &nbsp;+350</option>
                <option value="Greece +30">Greece&nbsp; &nbsp;+30</option>
                <option value="Greenland +299">Greenland&nbsp; &nbsp;+299</option>
                <option value="Grenada +1">Grenada&nbsp; &nbsp;+1473</option>
                <option value="Guadeloupe +590">Guadeloupe&nbsp; &nbsp;+590</option>
                <option value="Guam +1">Guam&nbsp; &nbsp;+1671</option>
                <option value="Guatemala +502">Guatemala&nbsp; &nbsp;+502</option>
                <option value="Guernsey +44">Guernsey&nbsp; &nbsp;+441481</option>
                <option value="Guinea +224">Guinea&nbsp; &nbsp;+224</option>
                <option value="Guinea-Bissau +245">Guinea-Bissau&nbsp; &nbsp;+245</option>
                <option value="Guyana +592">Guyana&nbsp; &nbsp;+592</option>
                <option value="Haiti +509">Haiti&nbsp; &nbsp;+509</option>
                <option value="Honduras +504">Honduras&nbsp; &nbsp;+504</option>
                <option value="Hong Kong +852">Hong Kong&nbsp; &nbsp;+852</option>
                <option value="Hungary +36">Hungary&nbsp; &nbsp;+36</option>
                <option value="Iceland +354">Iceland&nbsp; &nbsp;+354</option>
                <option value="India +91">India&nbsp; &nbsp;+91</option>
                <option value="Indonesia +62">Indonesia&nbsp; &nbsp;+62</option>
                <option value="Iran +98">Iran&nbsp; &nbsp;+98</option>
                <option value="Iraq +964">Iraq&nbsp; &nbsp;+964</option>
                <option value="Ireland +353">Ireland&nbsp; &nbsp;+353</option>
                <option value="Isle of Man +44">Isle of Man&nbsp; &nbsp;+44</option>
                <option value="Israel +972">Israel&nbsp; &nbsp;+972</option>
                <option value="Italy +39">Italy&nbsp; &nbsp;+39</option>
                <option value="Jamaica +1">Jamaica&nbsp; &nbsp;+1876</option>
                <option value="Japan +81">Japan&nbsp; &nbsp;+81</option>
                <option value="Jersey +44">Jersey&nbsp; &nbsp;+44</option>
                <option value="Jordan +962">Jordan&nbsp; &nbsp;+962</option>
                <option value="Kazakhstan +7">Kazakhstan &nbsp; &nbsp;+7</option>
                <option value="Kenya +254">Kenya&nbsp; &nbsp;+254</option>
                <option value="Kiribati +686">Kiribati&nbsp; &nbsp;+686</option>
                <option value="Kosovo +383">Kosovo&nbsp; &nbsp;+383</option>
                <option value="Kuwait +965">Kuwait&nbsp; &nbsp;+965</option>
                <option value="Kyrgyzstan +996">Kyrgyzstan &nbsp; &nbsp;+996</option>
                <option value="Laos +856">Laos&nbsp; &nbsp;+856</option>
                <option value="Latvia +371">Latvia &nbsp; &nbsp;+371</option>
                <option value="Lebanon +961">Lebanon&nbsp; &nbsp;+961</option>
                <option value="Lesotho +266">Lesotho&nbsp; &nbsp;+266</option>
                <option value="Liberia +231">Liberia&nbsp; &nbsp;+231</option>
                <option value="Libya +218">Libya&nbsp; &nbsp;+218</option>
                <option value="Liechtenstein +423">Liechtenstein&nbsp; &nbsp;+423</option>
                <option value="Lithuania +370">Lithuania&nbsp; &nbsp;+370</option>
                <option value="Luxembourg +352">Luxembourg&nbsp; &nbsp;+352</option>
                <option value="Macau +853">Macau&nbsp; &nbsp;+853</option>
                <option value="Macedonia +389">Macedonia&nbsp; &nbsp;+389</option>
                <option value="Madagascar +261">Madagascar&nbsp; &nbsp;+261</option>
                <option value="Malawi +265">Malawi&nbsp; &nbsp;+265</option>
                <option value="Malaysia +60">Malaysia&nbsp; &nbsp;+60</option>
                <option value="Maldives +960">Maldives&nbsp; &nbsp;+960</option>
                <option value="Mali +223">Mali&nbsp; &nbsp;+223</option>
                <option value="Malta +356">Malta&nbsp; &nbsp;+356</option>
                <option value="Marshall +692">Marshall Islands&nbsp; &nbsp;+692</option>
                <option value="Martinique +596">Martinique&nbsp; &nbsp;+596</option>
                <option value="Mauritania +222">Mauritania&nbsp; &nbsp;+222</option>
                <option value="Mauritius +230">Mauritius&nbsp; &nbsp;+230</option>
                <option value="Mayotte +262">Mayotte&nbsp; &nbsp;+262</option>
                <option value="Micronesia +691">Micronesia&nbsp; &nbsp;+691</option>
                <option value="Moldova +373">Moldova&nbsp; &nbsp;+373</option>
                <option value="Monaco +377">Monaco&nbsp; &nbsp;+377</option>
                <option value="Mongolia +976">Mongolia&nbsp; &nbsp;+976</option>
                <option value="Montenegro +382">Montenegro&nbsp; &nbsp;+382</option>
                <option value="Montserrat +1">Montserrat&nbsp; &nbsp;+1664</option>
                <option value="Morocco +212">Morocco&nbsp; &nbsp;+212</option>
                <option value="Mozambique +258">Mozambique&nbsp; &nbsp;+258</option>
                <option value="Myanmar +95">Myanmar &nbsp; &nbsp;+95</option>
                <option value="Namibia +264">Namibia&nbsp; &nbsp;+264</option>
                <option value="Nauru +674">Nauru&nbsp; &nbsp;+674</option>
                <option value="Nepal +977">Nepal&nbsp; &nbsp;+977</option>
                <option value="New Caledonia +687">New Caledonia&nbsp; &nbsp;+687</option>
                <option value="New Zealand +64">New Zealand&nbsp; &nbsp;+64</option>
                <option value="Nicaragua +505">Nicaragua&nbsp; &nbsp;+505</option>
                <option value="Niger +227">Niger&nbsp; &nbsp;+227</option>
                <option value="Nigeria +234">Nigeria&nbsp; &nbsp;+234</option>
                <option value="Niue +683">Niue&nbsp; &nbsp;+683</option>
                <option value="Norfolk Island +672">Norfolk Island&nbsp; &nbsp;+6723</option>
                <option value="North Korea +850">North Korea&nbsp; &nbsp;+850</option>
                <option value="Northern Mariana Islands +1">Northern Mariana Islands&nbsp; &nbsp;+1670</option>
                <option value="Norway +47">Norway&nbsp; &nbsp;+47</option>
                <option value="Oman +968">Oman&nbsp; &nbsp;+968</option>
                <option value="Pakistan +92">Pakistan&nbsp; &nbsp;+92</option>
                <option value="Palau +680">Palau&nbsp; &nbsp;+680</option>
                <option value="Palestine +970">Palestine &nbsp; &nbsp;+970</option>
                <option value="Panama +507">Panama &nbsp; &nbsp;+507</option>
                <option value="Papua New Guinea 675">Papua New Guinea&nbsp; &nbsp;+675</option>
                <option value="Paraguay +595">Paraguay&nbsp; &nbsp;+595</option>
                <option value="Peru +51">Peru &nbsp; &nbsp;+51</option>
                <option value="Philippines +63">Philippines&nbsp; &nbsp;+63</option>
                <option value="Poland +48">Poland&nbsp; &nbsp;+48</option>
                <option value="Portugal +351">Portugal&nbsp; &nbsp;+351</option>
                <option value="Puerto Rico +1">Puerto Rico&nbsp; &nbsp;+1787</option>
                <option value="Qatar +974">Qatar&nbsp; &nbsp;+974</option>
                <option value="Réunion +262">Réunion&nbsp; &nbsp;+262</option>
                <option value="Romania +40">Romania&nbsp; &nbsp;+40</option>
                <option value="Russia +7">Russia&nbsp; &nbsp;+7</option>
                <option value="Rwanda +250">Rwanda&nbsp; &nbsp;+250</option>
                <option value="Saint Barthélemy +590">Saint Barthélemy&nbsp; &nbsp;+590</option>
                <option value="Saint Helena +290">Saint Helena&nbsp; &nbsp;+290</option>
                <option value="Saint Kitts and Nevis +1">Saint Kitts and Nevis&nbsp; &nbsp;+1869</option>
                <option value="Saint Lucia +1">Saint Lucia&nbsp; &nbsp;+1758</option>
                <option value="Saint Martin +590">Saint Martin&nbsp; &nbsp;+590</option>
                <option value="Saint Pierre and Miquelon +508">Saint Pierre and Miquelon&nbsp; &nbsp;+508</option>
                <option value="Saint Vincent and the Grenadines +1">Saint Vincent and the Grenadines&nbsp; &nbsp;+1784
                </option>
                <option value="Samoa +685">Samoa&nbsp; &nbsp;+685</option>
                <option value="San Marino +378">San Marino&nbsp; &nbsp;+378</option>
                <option value="São Tomé and Príncipe +239">São Tomé and Príncipe&nbsp; &nbsp;+239</option>
                <option value="Saudi Arabia +966">Saudi Arabia &nbsp; &nbsp;+966</option>
                <option value="Senegal +221">Senegal &nbsp; &nbsp;+221</option>
                <option value="Serbia +381">Serbia&nbsp; &nbsp;+381</option>
                <option value="Seychelles +248">Seychelles&nbsp; &nbsp;+248</option>
                <option value="Sierra Leone +232">Sierra Leone&nbsp; &nbsp;+232</option>
                <option value="Sint Maarten +1">Sint Maarten&nbsp; &nbsp;+1721</option>
                <option value="Slovakia +421">Slovakia&nbsp; &nbsp;+421</option>
                <option value="Slovenia +386">Slovenia&nbsp; &nbsp;+386</option>
                <option value="Solomon Islands +677">Solomon Islands&nbsp; &nbsp;+677</option>
                <option value="Somalia +252">Somalia&nbsp; &nbsp;+252</option>
                <option value="South Africa +27">South Africa&nbsp; &nbsp;+27</option>
                <option value="South Korea +82">South Korea&nbsp; &nbsp;+82</option>
                <option value="South Sudan +211">South Sudan&nbsp; &nbsp;+211</option>
                <option value="Spain +34">Spain&nbsp; &nbsp;+34</option>
                <option value="Sri Lanka +94">Sri Lanka &nbsp; &nbsp;+94</option>
                <option value="Sudan +249">Sudan&nbsp; &nbsp;+249</option>
                <option value="Suriname">Suriname&nbsp; &nbsp;+597</option>
                <option value="Svalbard and Jan Mayen +47">Svalbard and Jan Mayen&nbsp; &nbsp;+47</option>
                <option value="Sweden +46">Sweden&nbsp; &nbsp;+46</option>
                <option value="Switzerland +41">Switzerland&nbsp; &nbsp;+41</option>
                <option value="Syria +963">Syria &nbsp; &nbsp;+963</option>
                <option value="Taiwan +886">Taiwan&nbsp; &nbsp;+886</option>
                <option value="Tajikistan +992">Tajikistan&nbsp; &nbsp;+992</option>
                <option value="Tanzania +255">Tanzania&nbsp; &nbsp;+255</option>
                <option value="Thailand +66">Thailand&nbsp; &nbsp;+66</option>
                <option value="Timor-Leste +670">Timor-Leste&nbsp; &nbsp;+670</option>
                <option value="Togo +228">Togo&nbsp; &nbsp;+228</option>
                <option value="Tokelau +690">Tokelau&nbsp; &nbsp;+690</option>
                <option value="Tonga +676">Tonga&nbsp; &nbsp;+676</option>
                <option value="Trinidad and Tobago +1">Trinidad and Tobago&nbsp; &nbsp;+1868</option>
                <option value="Tunisia +216">Tunisia&nbsp; &nbsp;+216</option>
                <option value="Turkey +90">Turkey&nbsp; &nbsp;+90</option>
                <option value="Turkmenistan +993">Turkmenistan&nbsp; &nbsp;+993</option>
                <option value="Turks and Caicos Islands +1">Turks and Caicos Islands&nbsp; &nbsp;+1649</option>
                <option value="Tuvalu +688">Tuvalu&nbsp; &nbsp;+688</option>
                <option value="U.S. Virgin Islands +1">U.S. Virgin Islands&nbsp; &nbsp;+1340</option>
                <option value="Uganda +256">Uganda&nbsp; &nbsp;+256</option>
                <option value="Ukraine +380">Ukraine&nbsp; &nbsp;+380</option>
                <option value="United Arab Emirates +971">United Arab Emirates &nbsp; &nbsp;+971</option>
                <option value="United Kingdom +44">United Kingdom&nbsp; &nbsp;+44</option>
                <option value="United States +1">United States&nbsp; &nbsp;+1</option>
                <option value="Uruguay +598">Uruguay&nbsp; &nbsp;+598</option>
                <option value="Uzbekistan +998">Uzbekistan&nbsp; &nbsp;+998</option>
                <option value="Vanuatu +678">Vanuatu&nbsp; &nbsp;+678</option>
                <option value="Vatican City +39">Vatican City&nbsp; &nbsp;+379</option>
                <option value="Venezuela +58">Venezuela&nbsp; &nbsp;+58</option>
                <option value="Vietnam +84">Vietnam&nbsp; &nbsp;+84</option>
                <option value="Wallis and Futuna +681">Wallis and Futuna&nbsp; &nbsp;+681</option>
                <option value="Western Sahara +212">Western Sahara &nbsp; &nbsp;+21228</option>
                <option value="Yemen +967">Yemen&nbsp; &nbsp;+967</option>
                <option value="Zambia +260">Zambia&nbsp; &nbsp;+260</option>
                <option value="Zimbabwe +263">Zimbabwe&nbsp; &nbsp;+263</option>
                <option value="Åland Islands +385">Åland Islands&nbsp; &nbsp;+35818</option>
            </select>
												<input type="text" name="mobile" required="" class="number" placeholder="Phone number">
											</div>
						<div class="selectionBlock">
							<p> Date of birth</p>

							<input type="date" class="arrivalDate datepicker"
								name="birthday[]" value="" placeholder="mm/dd/yyyy" autocomplete="off" min="1753-01-01" max="9999-12-31">

						</div>
						<div class="selectionBlock">
							<p> Date of expiration </p>

							<input type="date" class="arrivalDate datepicker"
								name="passport_expiration_date[]" value="" placeholder="mm/dd/yyyy" autocomplete="off" min="1753-01-01" max="9999-12-31">

						</div>
						<div id="birth_error_msg" class="hidden">Please select your date of birth.</div>
						<div id="expiration_error_msg" class="hidden">Please select your date of passport expiration.</div>

						<select class="country_code" name="occupation[]">
							<option>Occupation (optional)</option>
							<option value="Professional">Professional</option>
							<option value="Professor or similar">Professor or similar</option>
							<option value="Retired person">Retired person</option>
							<option value="Business owner">Business owner</option>
							<option value="Government official">Government official</option>
							<option value="Housewife">Housewife</option>
							<option value="Self-emloyed person">Self-emloyed person</option>
							<option value="Others">Others</option>
						</select>
					<button class="add_traveler_button" id="add_traveler_button" type="button">+ Add a traveler</button>
					</div>
				</div>


				<div id="inquiryBox">
					<h2>Your Flight Information</h2>
					<p>Your flight information will be forwarded to your guide/driver for airport pick up and drop off.
						Please ensure the details you provide are correct. You can skip this if your don't need airport
						transfer service.</p>
					<p>If you are not yet purchase your airline and insurance, please fill in the TBC in the link and provide those information to your consultant or keep update after you confirm them.</p>

					<div class="selectionBlock">

						<div class="inputTerm">
							<input type="text" name="MEI_ArrivalFlightNo">
							<label>
								Arrival flight No.
							</label>
						</div>
					</div>
					<div class="selectionBlock">
						<div class="inputTerm">
							<input type="datetime-local" name="MEI_ArrivalTime" min="1753-01-01T00:00" max="9999-12-31T00:00">
							<label>
								Arrival time
							</label>
						</div>
					</div>
					<div class="selectionBlock">
						<div class="inputTerm">
							<input type="text" name="MEI_DepartureFlightNo">
							<label>
								Departure Flight No.
							</label>
						</div>
					</div>
					<div class="selectionBlock">
						<div class="inputTerm">
							<input type="datetime-local" name="MEI_DepartureTime" min="1753-01-01T00:00" max="9999-12-31T00:00">
							<label>
								Departure time
							</label>
						</div>
					</div>
				</div>



				<div id="inquiryBox">
					<h2>Emergency Contact Information</h2>
					<div class="emergency_title">(in case an unlikely event happens when you are travelling)</div>
					<div class="selectionBlock">
						<div class="inputTerm">
							<input type="text" name="emergency_person_name" required="">
							<label>
								Contact person's name
							</label>
						</div>
					</div>
					<div class="selectionBlock">
						<div class="inputTerm">
							<input type="text" name="emergency_email" required="">
							<label>
								Email address
							</label>
						</div>
					</div>
					<div class="selectionBlock">
						<p>Relationship with him/her</p>
						<div class="inputTerm">
							<input type="text" name="emergency_relationship" required="">
							<label>
								eg: He's Sue's father.
							</label>
						</div>
					</div>
					<div class="selectionBlock">
						<p>Telephone No.</p>
						<div class="inputTerm">
							<input type="text" name="emergency_telephone" required="">
							<label>
								including country code and area code
							</label>
						</div>
					</div>
				</div>
				<div id="inquiryBox">
					<h2>Your Insurance Information and Special Request (optional)</h2>

					<textarea id="special_request" name="special_request" style="resize:none;"></textarea>
				</div>

				<div class="inquiryBtn">
          <input type="hidden" name="toname" value="<?php echo $userinfo[0]->OPI_FirstName; ?>">
          <input type="hidden" name="tomail" value="<?php echo $userinfo[0]->OPI_Email; ?>">
          <input type="hidden" name="customer_username" value="<?php echo $username; ?>">
          <input type="hidden" name="customer_usermail" value="<?php echo $usermail; ?>">
          <input type="hidden" name="COLI_ID" value="<?php echo $userinfo[0]->COLI_ID; ?>">
          <input type="hidden" name="COLI_SN" value="<?php echo $userinfo[0]->COLI_SN; ?>">
          <input type="hidden" name="visitor_link" value="<?php echo $visitor_link; ?>">
					<button id="tmsubmit" type="button" onclick="show_review_modal();">Check & Submit</button>
					<input id="passport_info" name="passport_info" type="hidden" value="" />
					<input type="hidden" name="url" value="" />
				</div>
			</form>
		</div>
	</div>
  <!-- reviewModal -->
  <div class="modal fade" id="reviewModal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title text-danger">Please double check your information</h4>
        </div>
        <div class="modal-body" id="reviewModal_body">
          <p>...</p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Return & Change</button>
          <button type="button" class="btn btn-primary" id="btn-add-userinfo" onclick="submit_info_form();">Confirm & Submit</button>
        </div>
      </div>
    </div>
  </div>
  <!-- reviewModal end-->
  <script src="https://data.chinahighlights.com/js/min.php?f=/js/customer_center_data/jquery.min.js,/js/customer_center_data/bootstrap.min.js,/js/customer_center_data/jquery-ui.min.js&v=202405161016"></script>
	<script>
  function submit_info_form () {
    var $btn = $("#btn-add-userinfo").button('loading');
    var data = $("#form-confirm-info").serialize();
    var url = $("#form-confirm-info").attr('action');

    $.ajax({
      type: "post",
      url: url,
      dataType: "json",
      data: data,
      success: function(json_data) {
        if (json_data.status == 'ok') {
          location.href = 'https://www.chinahighlights.com/secureinfoconfirm/confirm/index';
        } else {
          $('#myModal').modal('show');
          $btn.button('reset');
        }
      },
      error: function(XMLHttpRequest, textStatus, errorThrown) {
        alert(errorThrown);
        $btn.button('reset');
      }
    });
  };

  function validateForm() {
    let result = true;
    const requiredFields = document.querySelectorAll(":required");
    for (let index = 0; index < requiredFields.length; index++) {
      const element = requiredFields[index];
      const validityState = element.validity;
      if (validityState.valueMissing) {
        result = false;
        element.setCustomValidity('Please fill out this field.');
        element.reportValidity();
        break;
      }
    }
    return result;
  }

  function show_review_modal() {
    if (!validateForm()) {
      return false;
    }

    $('#reviewModal_body').html('loading....');
    $.ajax({
      type: "post",
      dataType: "json",
      data: $("#form-confirm-info").serialize(),
      url: 'https://www.chinahighlights.com/secureinfoconfirm/confirm/review',
      success: function(data, textStatus) {
          $('#reviewModal_body').html(data);
          $('#reviewModal').modal('show');
      },
      error: function(msg) {
        alert('\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfbYCC...');
      }
    });
  }

  $(function() {
    var $travelerTemplate = $(".traveler_info:first").clone();
    //添加客户
    $("#add_traveler_button").click(function () {addTraveler()});

    function addTraveler() {
      var travelerCount = $(".traveler_info").length + 1;
      var travelerId = 'traveler' + travelerCount;
      var $addTraveler = $travelerTemplate.clone();
      $addTraveler.attr('id', travelerId);
      $addTraveler.find('#phoneNumberDiv').remove();
      $addTraveler.find('[data-header]').text('Traveler ' + travelerCount);

      $addTravelerButton = $addTraveler.find('#add_traveler_button');
      $addTravelerButton.attr('id', 'add_traveler_button' + travelerCount);
      $addTravelerButton.click(function(){addTraveler()});

      $deleteTravelerButton = $('<button class="add_traveler_button" type="button">- Delete Traveler ' + travelerCount + '</button>');
      $deleteTravelerButton.click(function(){$('#'+travelerId).remove();});
      $addTraveler.append($deleteTravelerButton);
      $(".traveler_info:last").after($addTraveler);
    }
  });
	</script>
</body>

