<?php

/*

Template Name: Ride Summary Page

*/

get_header();

require("customfunction.php");  

require("islogin.php");

$guid=$_REQUEST["guid"];

$guidfleets=$_REQUEST["guidfleets"];

$ratetype=$_REQUEST["ratetype"];

$apiUrl=$apiBaseUrl."/api/search/viewridesummary.php?apikey=".$apiKey."&time=".$time;

$postdata=$postdata.'&guid='.$guid.'';

$postdata=$postdata.'&guidfleets='.$guidfleets.'';

$postdata=$postdata.'&ratetype='.$ratetype.'';

$resp=GetApiData($apiUrl,$postdata);

//print_r($resp);	

$responseAPI=json_decode($resp);

//print_r($responseAPI);

$reservation_id=$responseAPI->reservation_id;

if($reservation_id!=''){

	$rowSR=$responseAPI;							

	//print_r($rowSR);

	$fleets_imageDB=$rowSR->fleets_img;

	$reservation_id=$rowSR->reservationid;

	$sessionid=$rowSR->sessionid;

	$highdemand=$rowSR->highdemand;

	$isAirPort=$rowSR->isAirPort;	

	$fleets_id=$rowSR->fleetsid;		

	$cst_fleets_catid=$rowSR->fleets_category_id;

	$nondiscountedrate=$rowSR->nondiscountedrate;	

	$final_total=$rowSR->totalrate;

	$perSave=$rowSR->perSave;

	$final_total=$rowSR->final_total;

	$no_of_hrs=$rowSR->no_of_hrs;

	$search_result_id=$rowSR->search_result_id;

	$no_of_hrs=$rowSR->TotalHr;

			

	$rowView=$rowSR->rowView;

	$reservation_id=$rowView->reservation_id;

	$resvfrom=$rowView->resvfrom;

	$customers_passenger_id=$rowView->customers_passenger_id;

	

	$x_first_name=$rowSR->x_first_name;

	$x_last_name=$rowSR->x_last_name;

	$cust_p_email=$rowView->cust_p_email;

	$phone_number=$rowSR->phone_number;

	$CC_Type=$rowView->CC_Type;

	$pa_location=$rowView->pa_location;

	$pa_address=$rowView->pa_address;

	$pa_city=$rowView->pa_city;

	$pa_state=$rowView->pa_state;

	$pa_zip=$rowView->pa_zip;

	$da_location=$rowView->da_location;

	$da_address=$rowView->da_address;

	$updatepaaddress=$rowView->updatepaaddress;

	$updatedaaddress=$rowView->updatedaaddress;

	$da_city=$rowView->da_city;

	$da_state=$rowView->da_state;

	$da_zip=$rowView->da_zip;

	$Billing_State=$rowView->Billing_State;

	$pickup_dateCheck=date('Y-m-d', strtotime($rowView->pickup_date));

	$no_of_hrs=$rowView->no_of_hrs;

	$services_id=$rowView->services_id;

	if($services_id==1001){

		$readOnlyCtrl='readonly="true"';

		$fullAddressPA=$pa_location;

		$fullAddressPAT=$pa_location;

	}else{

		$fullAddressPA=$pa_address.' '.$pa_city.', '.$pa_state.' '.$pa_zip.'';

		if($pa_address!=''){

			$fullAddressPAT=$pa_address.' <br>'.$pa_city.', '.$pa_state.', '.$pa_zip.'';

		}else{

			$fullAddressPAT=$pa_city.', '.$pa_state.', '.$pa_zip.'';

		}

		$readOnlyCtrl='';

	}

	$card_number=$rowView->card_number;

	$expiration_date_month=$rowView->expiration_date_month;

	$expiration_date_year=$rowView->expiration_date_year;

	$Name_On_Card=$rowView->Name_On_Card;

	$Billing_Address=$rowView->Billing_Address;

	$postal_code=$rowView->postal_code;

	$Payment_Method=$rowView->Payment_Method;

	$pickup_time=$rowView->pickup_time;

	$dropoff_time=$rowView->dropoff_time;

	if($Payment_Method==""){

		$Payment_Method="VI";	

	}

	$CC_Type=$rowView->CC_Type;

	if($CC_Type==""){

		$CC_Type="Personal";	

	}

	$Billing_City=$rowView->Billing_City;

	$Billing_Phone=$rowView->Billing_Phone;

	$x_card_code=$rowView->security_code;

	

	$rate_fleets_id=$rowSR->rate_fleets_id;	

	$responseJO=$rowSR->responseJO;					

	$ratetype=$rowSR->selectrate;

	$fleets_title=$rowSR->fleets_title;								

	$fleets_categery_id=0;

	$fleets_img1=$rowSR->fleets_img1;

	$fleets_color=$rowSR->fleets_color;

	$number_of_pasengers=$rowSR->number_of_pasengers;

	$luggage=$rowSR->luggage;

	$description=stripcslashes(nl2br($rowSR->description));

	$oursimilar=stripcslashes(nl2br($rowSR->oursimilar));

	$fleets_desc=$rowSR->fleets_desc;

	$sub_category_id=$rowSR->sub_category_id;

	$highdemand=$rowSR->highdemand;

	$fleets_title2=$rowSR->fleets_title2;			

	$fleetsfeatures=$rowSR->fleetsfeatures;	

}

$ismanual=$rowSR->ismanual;

$tiprate=$rowSR->tiprate;

if($ismanual==1){

	$tipAmount=$tiprate;

	$addPerDiscount=0;

}else{

	$addPerDiscount=$rowSR->phrpercentage;

}

$tipPerDefault=16.7;

//$addPerDiscount=0;

//$addAmount=(($final_total*$addPerDiscount)/100);

//$final_total=($final_total+$addAmount);

$tipAmount=(($final_total*$tipPerDefault)/100);

$final_totalAD=($final_total-$tipAmount);

$nondiscountedrateAD=($nondiscountedrate-$final_totalAD);

$perOff=round((($nondiscountedrateAD*100)/$nondiscountedrate),0);

$perSave=$perOff;

$wppageid=get_the_ID();

 

if($x_first_name=='NA'){

	$x_first_name='';

	$x_last_name='';

	$cust_p_email='';

}

if($updatepaaddress==''){

	$updatepaaddress=$fullAddressPAT;

}

if($updatedaaddress==''){

	$updatedaaddress=$da_location;

}

?>

 <header id="header">

  <div class="container">

    <div class="logo"><a href="#"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/logo.png" width="262" height="57" alt="Limo Service Sacramento" title="Limo Service Sacramento"></a></div>

    <? if($CustomerId!=''){	?>

		<div class="userDetails dropdown dropdownMenubs" style="white-space:nowrap;"> <a href="/my-account/" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="userInfo"><span class="userPhoto"><img src="<?=$profileimageURL_UL?>" width="30" height="30" alt=""></span><span class="userDetail">Hello, <?=$customers_name_UL?></span> </a>

	       <ul class="dropdown-menu DropdownSubMenu">

                  <li><a href="/my-account/">My Account</a></li>

                  <li><a href="#">Booking Tips</a></li>

				  <li><a href="/proccessform.php?actions=logoutcustomer">Logout</a></li>

	       </ul>

         </div>

	<? }else{?>

		<? if($wppageid==1998){}else{?>

		<div class="userDetails dropdown dropdownMenubs"> <a href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="userInfo"><span class="userDetail">Sign in</span> </a>

        <ul class="dropdown-menu DropdownSubMenu">

                  <li><a href="/login/">My Account</a></li>

                  <li><a href="#">Booking Tips</a></li>

                  </ul>

         </div>

		<? }?>

	<? }?>

 

 <div class="topNavigationPage dSizeHide cf">

      <ul class="pageNav">

        <li class="pageNav edit">

          <h3>1. Ride Details</h3>

          <a href="/" class="editLink">Edit</a></li>

        <li class="pageNav edit">

          <h3>2. Vehicle Selection</h3>

          <a href="/vehicle-selection/?guid=<?=$guid?>" class="editLink">Edit</a>

        </li>

        <li class="pageNav nextPage active">

          <h3>3. Confirm & Book</h3>

        </li>

      </ul>

    </div>

    

  </div>

</header>

<div class="divCovButtonTRow divCovButtonTopPos dSizeHide">

<a href="#covidPoupup" data-toggle="modal" class="CommanBtnwr covidBtn"> <i class="fa fa-exclamation-triangle"></i> Covid-19 Update</a>

<a href="#reviewsModal" data-toggle="modal" class="CommanBtnwr ourReviewsBtn"> <i class="fa fa-star" aria-hidden="true"></i>

 Our Reviews</a>

	

</div>

<div class="topNavigationPage mSizeHide cf">

      <ul class="pageNav">

        <li class="pageNav edit">

          <h3>1. Ride Details</h3>

          <a href="/" class="editLink">Edit</a></li>

        <li class="pageNav edit">

          <h3>2. Vehicle Selection</h3>

          <a href="/vehicle-selection/?guid=<?=$guid?>" class="editLink">Edit</a>

        </li>

        <li class="pageNav nextPage active">

          <h3>3. Confirm & Book</h3>

        </li>

      </ul>

    </div>

	<form name="frm_Reg" id="frm_Reg" method="post" action="/proccessform.php?actions=converttoreservation" onsubmit="return checkformR();"  class="bookingForm">

				<input type="hidden" name="guid" id="guid" value="<?=$guidfleets?>" />

				<input type="hidden" name="rate_fleets_id" id="rate_fleets_id" value="<?=$rate_fleets_id?>" />

				<input type="hidden" name="CustomerId" id="CustomerId" value="<?=$CustomerId?>" />

				<input type="hidden" name="reservation_id" id="reservation_id" value="<?=$reservation_id?>" />

				<input type="hidden" name="x_amount" id="x_amount" value="<?=$final_total?>" />

				<input type="hidden" name="customers_passenger_id" id="customers_passenger_id" value="<?=$customers_passenger_id?>" />

				<input type="hidden" name="Payment_Status" id="Payment_Status" value="UNPAID" />

				<input type="hidden" name="resvfrom" id="resvfrom" value="<?=$resvfrom?>" />

				<input name="Billing_Phone" id="Billing_Phone" value="<?=$Billing_Phone?>" type="hidden" onkeypress="return isNumberKey(event)"/>	

				<select name="CC_Type" id="CC_Type" size="1" style="display:none;" class="text3"  >

					<option value="Personal" selected="selected">Personal</option>

					<option value="Business"  <? if($CC_Type=="Business"){?> selected="selected"<? }?>>Business</option>

					<option value="Other"  <? if($CC_Type=="Other"){?> selected="selected"<? }?>>Other</option>

				</select>

				

				<input id="pa_location" name="pa_location" type="hidden" value="<?=str_replace('<br>','',$updatepaaddress)?>"/>

				<input id="da_location" name="da_location" type="hidden" value="<?=$updatedaaddress?>"/>

				<input id="pa_address" name="pa_address" type="hidden" value="<?=$pa_address?>"/>

				<input id="pa_city" name="pa_city" type="hidden" value="<?=$pa_city?>"/>

				<input id="pa_state" name="pa_state" type="hidden" value="<?=$pa_state?>"/>

				<input id="pa_zip" name="pa_zip" type="hidden" value="<?=$pa_zip?>"/>

				<input id="autocomplete_DA" name="autocomplete_DA" type="hidden" value="<?=$updatedaaddress?>"/>

				<input id="locality_DA" name="locality_DA" type="hidden" value="<?=$da_city?>"/>

				<input id="administrative_area_level_1_DA" name="administrative_area_level_1_DA" type="hidden" value="<?=$da_state?>"/>

				<input id="postal_code_DA" name="postal_code_DA" type="hidden" value="<?=$da_zip?>"/>

				<input id="country_DA" name="country_DA" type="hidden" value="<?=$country_DA?>"/>

				<input id="da_address" name="da_address" type="hidden" value="<?=$da_address?>"/>

					

    

    <div class="divDealOfTheDayTRow dSizeHide">

<div class="container">

<div class="row gutter6">

 <div class="col-sm-3 col-xs-12">

 <ul class="DealOfTheDayList DealOfTheDayListW cf">

	<li class="txtBookOnlineNowSave">  Book Online Now <? if($perSave > 0){?>&amp; <span class="clrGreen"><strong>Save <?=$perSave?>%</strong> </span><? }?></li>

 <li class="DivRentalInfo dSizeHide"><a href="#" class="infoIcondes "><span class="txtRentalInfo">Rental Info</span></a>

  

  <div class="infoSmallPopupWrap rentalinfopopup" style="display: none;"><a href="#" class="smallCloseBtn">X</a>

  <h3>Rental Summary</h3>

  

   <div class="rentalinfopopupWrap">

  

  <div class="rentalPickandDropAdd rentalPickup">

  <h4>Pick-Up</h4>

   <p><?=date('D, F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?><br><?=$updatepaaddress?></p>

  </div>

  

  

  <div class="rentalPickandDropAdd rentalPeriod">

<? if($isAirPort==0){?>

  <h4>Rental Period</h4>

  <p><?=date('h:i A',strtotime($pickup_time))?> -> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours) </p>

<? }?>

  <ul class="rentalListDetails">

  <li><span class="gearIcon iconsize"></span> <?=getServiceName($responseJO->services_id,$responseJO->services_id_B)?></li>

  <li><span class="premium-interior iconsize"></span> <?=$fleets_title2?></li>

  <li> <span class="pass iconsize"></span> <?=$number_of_pasengers?> Persons</li>

  <li> <span class="luggage iconsize"></span> <?=$luggage?> Suitcases</li>

  </ul>

 	</div>

  <div class="prices">

							<span>Price: </span><strike>$<?=number_format($nondiscountedrate)?></strike> <span class="actual-price"><strong>$<?=number_format($final_totalAD)?></strong><span class="txtincludedTip"> +tip</span></span>

				</div>

   </div>

  </div>

  

  

  </li>

 </ul>

 </div>

 <div class="col-sm-5 col-xs-12 mSizeHide">

 <ul class="DealOfTheDayList cf">		

 

    <li><span class="iconCalender"></span> Pickup <?=date(' F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?> -> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours)</li>

   

   </ul>

 <ul class="DealOfTheDayList listdetailscr cf">		

				 	<li> <span class="premium-interior"></span><?=$fleets_title2?></li>

      

      <li> <span class="pass"></span><?=$number_of_pasengers?> Adults</li>

      

      

      <li class="DivRentalInfo"><a href="#" class="infoIcondes "><span class="txtRentalInfo">Complete Rental Info</span></a>

  

  

  <div class="infoSmallPopupWrap rentalinfopopup" style="display: none;"><a href="#" class="smallCloseBtn">X</a>

  <h3>Rental Summary</h3>

  

   <div class="rentalinfopopupWrap">

  

  <div class="rentalPickandDropAdd rentalPickup">

  <h4>Pick-Up</h4>

   <p><?=date('D, F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?><br><?=$updatepaaddress?></p>

  </div>

  

  

  <div class="rentalPickandDropAdd rentalPeriod">

<? if($isAirPort==0){?>

  <h4>Rental Period</h4>

  <p><?=date('h:i A',strtotime($pickup_time))?> -> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours) </p>

<? }?>

  <ul class="rentalListDetails">

  <li><span class="gearIcon iconsize"></span> <?=getServiceName($responseJO->services_id,$responseJO->services_id_B)?></li>

  <li><span class="premium-interior iconsize"></span> <?=$fleets_title2?></li>

  <li> <span class="pass iconsize"></span> <?=$responseJO->no_of_passengers?> Persons</li>

  <li> <span class="luggage iconsize"></span> <?=$luggage?> Suitcases</li>

  </ul>

 	</div>

  

  

  <div class="prices">

							<span>Price: </span><strike>$<?=number_format($nondiscountedrate)?></strike> <span class="actual-price"><strong>$<?=number_format($final_totalAD)?></strong><span class="txtincludedTip"> +tip</span></span>

				</div>

   </div>

  </div>

  

  

  </li>

  </ul>

  </div>

 

 <div class="col-sm-4 col-xs-12">

  <ul class="DealOfTheDayList totalPriceBooknow  cf">

	<li class="totalAmountList"><span class="infopopupwrapbx "><span class="totalamountBx divmargbtm"> <span class="clrblack Valigntop"> <? if($nondiscountedrate > 0){?><s>$<?=number_format($nondiscountedrate,0)?></s><? }?></span> <div class="popupContWrap"><a href="#" class="infoIcondespop"><span class="clrLightBlue totalamount tipincludingtxt"> $<?=number_format($final_totalAD,0)?><span class="txtincludedTip"> + tip</span></span></a></div>

 

 <div class="infoSmallPopupWrap"><a href="#" class="smallCloseBtn">X</a>

 <span class="totalamountBx mrgB5"> <span class="clrblack"> <? if($nondiscountedrate > 0){?><s>$<?=number_format($nondiscountedrate,0)?></s><? }?></span> <span class="clrLightBlue totalamount"> $<?=number_format($final_totalAD,0)?></span><span class="txtincludedTip"><sub> + tip</sub></span></span>

   <br />

  <font size="2">customary to tip 20%, which goes to hard-working drivers & clean-up crew </font>

  </div>

 

 

 </span></span>

 <span class="Nopamentnd"><span class="infopopupwrapbx">

<span class="clrGreen">No Deposit needed</span>

 <div class="popupContWrap"><a href="#" class="infoIcondespop"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

<div class="infoSmallPopupWrap padding0"><a href="#" class="smallCloseBtn">X</a> 

<div class="modalheaderDiv">

<h4 class="modalheadtitle"><span class="clrGreen">$0 payment due now!</span></h4>

</div>

<div class="infoSmallPopupInnerWrap">	   		

<p class="txtSubTitlebs">	<span class="clrGreen"><strong>$0</strong></span> due now, a partial-deposit will be charged only when we'll call & confirm all details with you over the phone	</p>		

</div>

</div>

 </span></span> </li>

 

    <li class="dealdaybookNow"> <div class="bookNowbutton"><a href="#ContactInfoId"><input class="bookbutton bookbuttonscroll" type="submit" value="Book Now"></a></div>

				

				<div  class="commonBorderBox reserve dSizeHide">

<div class="bookbutton">

<span class="btncaption"><span class="btntxt"> <i class="fa fa-check"></i> Free Cancelation</span> 

</span>

</div>

</div>

				

				

				</li>	

				

					

  </ul> 

 </div>

 </div>

</div>

</div>

<section id="contentPart" class="contentPart">

  <div class="container">

    <div class="detailsPageWrap">

    <div class="row gutter6">

 <div class="col-sm-3">

	

	<div class="NeedhelpBooking text-center"><span class="infopopupwrapbx"><span class="helpPhoneNumber"><a href="tel:916-325-5555"><i class="fa fa-phone"></i> 916-325-5555</a></span> <div class="popupContWrap"><a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

  <div class="infoSmallPopupWrap padding0" style="display: none;">

		<a href="#" class="smallCloseBtn">X</a>

		<div class="modalheaderDiv">

        <h4 class="modalheadtitle">Should you call us to book or complete booking online now?</h4>

					

						</div>

						<div class="infoSmallPopupInnerWrap">

		To get the exclusive online-discount of <span class="clrGreen"><strong><?=$perSave?>% off</strong></span> book online now (no payment is charged on booking). After completing booking, you can even call us a 100 times &#128578; to make any changes to your reservations. But, if you still feel you need immediate help, you can call us at <a href="tel:916-325-5555">916-325-5555</a>.

		</div>

</div>

</span>

</div>

    	<div class="car-details">

			<div class="car-spec">

				<div class="carDetailWrap"><div class="car-photo">

					<img src="<?=$fleets_img1?>" style="width:270px; height:115px;"  alt="<?=$fleets_title?>" />					

				</div>

                <div class="car-spec-detail">

					<h3><?=$fleets_title2?></h3>										

					<ul>

						<li class="servicecartitle">or<a href="#" class="infoIcondes clrLightBlue">similar <?=strtolower($fleets_title)?></a>

      <div class="infoSmallPopupWrap"><a href="#" class="smallCloseBtn">X</a> 	   		

     <p class="txtSubTitlebs">	<?=$oursimilar?>	</p>		

      </div>

      </li>

						<li><span class="pass"></span> <?=$number_of_pasengers?> Adults <a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a>

						

						

						 &nbsp;&nbsp

						<img src="<?php echo get_template_directory_uri(); ?>/assets/images/luggage-img.png" alt=""> <?=$luggage?> Suitcases

						

						<div class="infoSmallPopupWrap padding0"><a href="#" class="smallCloseBtn">X</a> 

  <div class="modalheaderDiv">

<h4 class="modalheadtitle">Vehicle Capacity</h4>

</div>

<div class="infoSmallPopupInnerWrap">	   		

<p class="txtSubTitlebs">	This vehicle can accommodate up-to <?=$number_of_pasengers?> adults. Sometimes, more people may be accommodated based on the federal and state laws. After booking, you can consult with our agents to see if more people can be accommodated.	</p>		

</div>

</div>

						

						</li>						

					</ul>

					<!--<h3>Reference# <?=$reservation_id?></h3>-->

					</div></div>

					

					

						<ul class="recommendedlist">

					<li class="thumblike">8.7/10 recommend</li>

					

						<? if($highdemand==1){?>

						<li class="hot">High Demand</li>						

						<? }?>

      </ul>

					

				<div class="vehicle-features">

					<h3>Vehicle Features</h3>

					<ul>

					 <?		

					  $num_rows_FF = count($fleetsfeatures);	

					  if($num_rows_FF > 0)		

					  {					

						foreach ($fleetsfeatures as $rowFF)		

						{		

						?>		

							<li> <span class="<?=$rowFF->fleetsfeaturescss?>"></span><?=$rowFF->fleetsfeaturesname?></li>		

					  <? }		

					  }?>

					</ul>

				</div>

				<div class="vehi-mobi">

					<!--<h3>Vehicle Features</h3>	-->				

					<p>

					<?		

					  $num_rows_FF = count($fleetsfeatures);		

					  if($num_rows_FF > 0)		

					  {					

						foreach ($fleetsfeatures as $rowFF)		

						{		

						?>		

							<span class="<?=$rowFF->fleetsfeaturescss?>"></span><?=$rowFF->fleetsfeaturesname?> &nbsp;&nbsp;

					  <? }		

					  }?>

					 </p>

					</div>

     

     

   

     <div class="pickupAndDropoffTime mobileSzShow">

    <!-- <p><span class="iconCalender"></span>Pickup <?=date('m/d/Y',strtotime($pickup_dateCheck))?> @ <?=date('h:i A',strtotime($pickup_time))?> —> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours)</p>-->

     </div>

    </div>

			</div>

	</div>

    

     <div class="col-sm-9">

    <div class="ride-details">

			<div class="commonBorderBox Riderentalprice bgGray desktopShow">

            <div class="row">

				<div class="col-sm-4">

				<h3>Rental Price</h3>

					<ul class="checklist">

						<li>Taxes Included</li>

						<li>Water, ice &amp; cups included</li>

						<li class="rentalinfoIcon">Complete Rental Info <div class="popupContWrap"><a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

        

       <div class="infoSmallPopupWrap rentalinfopopup" style="display: none;"><a href="#" class="smallCloseBtn">X</a>

  <h3>Rental Summary</h3>

  <div class="rentalinfopopupWrap">

  <div class="rentalPickandDropAdd rentalPickup">

  <h4>Pick-Up</h4>

   <p><?=date('D, F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?><br><?=$updatepaaddress?></p>

  </div>

  

  

  <div class="rentalPickandDropAdd rentalPeriod">

<? if($isAirPort==0){?>

  <h4>Rental Period</h4>

  <p><?=date('h:i A',strtotime($pickup_time))?> —> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours) </p>

<? }?>

  <ul class="rentalListDetails">

  <li><span class="gearIcon iconsize"></span> <?=getServiceName($responseJO->services_id,$responseJO->services_id_B)?></li>

  <li><span class="premium-interior iconsize"></span> <?=$fleets_title2?></li>

  <li> <span class="pass iconsize"></span> <?=$number_of_pasengers?> Persons</li>

  <li> <span class="luggage iconsize"></span> <?=$luggage?> Suitcases</li>

  </ul>

 	</div>

  

  <!--<div class="rentalPickandDropAdd rentalDropoff">

  <h4>Drop-Off</h4>

  <p><?=$updatepaaddress?><br> <span class="rentalListDetails"><span class="premium-interior iconsize"></span> <?=$fleets_title2?> <span class="pass iconsize"></span> <?=$number_of_pasengers?> <span class="luggage iconsize"></span> </span> <?=$luggage?></p>

 	</div>-->

  <div class="prices">

							<span>Price: </span><s>$<?=number_format($nondiscountedrate)?></s> <span class="actual-price"><strong>$<?=number_format($final_totalAD)?></strong><span class="txtincludedTip"> +tip</span></span>

				</div>

   </div>

  </div>

  

  </li>

						

      </ul>

						

						

						

						

					</div>

      <div class="col-sm-4">

			        <ul class="demandlist">

					

						<? if($nondiscountedrate > 0){?>

						<li class="dollar">Book Now & Save <?=$perSave?>% <br><span class="smalltxtfont">(Prices may go up)</span></li>

						<? }?>

       <li class="carIcon">No payment charged <div class="popupContWrap"><a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

       <div class="infoSmallPopupWrap padding0"><a href="#" class="smallCloseBtn">X</a> 

							<div class="modalheaderDiv">

<h4 class="modalheadtitle"><span class="clrGreen">$0 payment due now!</span></h4>

</div>	   		

       <div class="infoSmallPopupInnerWrap">	   		

<p class="txtSubTitlebs">	<span class="clrGreen"><strong>$0</strong></span> due now, a partial-deposit will be charged only when we'll call & confirm all details with you over the phone	</p>		

</div>		

        </div>

        </li>

      

      

        

   </ul>

				</div>

     <div class="col-sm-4">

					<? if($nondiscountedrate > 0){?>

					<div class="offer">

						<span class="offervalue"><span class="mobishow">Reserve Now &amp; Save</span><?=$perSave?><span class="percent">%</span> off</span>

					</div>

					<? }?>

     

     <!-- <div class="prices">

						<? if($nondiscountedrate > 0){?>

							<span class="mobishow">(Prices may go up)</span><s>$85 </s>

						<? }?>	

						<span class="actual-price"><? if($isAirPort==0){?>

       <span class="mobishow">(all fees included for <?=$no_of_hrs?> hrs.)</span><? }?> $75</span> <span class="multiPerson"><span class="characterIcon">x</span> 30 <span class="pass"></span></span>     <br>

						<? if($isAirPort==0){?>

						<span class="mobihide">$ 2,250 <span class="characterIcon">+</span> tip</span>

						<? }?>

					</div>-->

     

     

					<ul class="prices divmargbtm">
					<li>
						<? if($nondiscountedrate > 0){?>
						<s><span class="mobishow">(Prices may go up)</span>$<?=number_format($nondiscountedrate)?></s> <a href="#" class="infoIcondes mrgL0"><span class="actual-price">$<?=number_format($final_totalAD)?><span class="txtincludedTip"> + tip</span></span></a>
						<? }?>	

						

						 <div class="infoSmallPopupWrap"><a href="#" class="smallCloseBtn">X</a>

 <span class="totalamountBx mrgB5"> <span class="clrblack"> <? if($nondiscountedrate > 0){?><s>$<?=number_format($nondiscountedrate,0)?></s><? }?></span> <span class="clrLightBlue hourPriceSize">$<?=number_format($final_totalAD,0)?></span><span class="txtincludedTip"><sub> + tip</sub></span></span>

   <br />

  <span class="smalltxtfont">customary to tip 20%, which goes to hard-working drivers & clean-up crew </span>

  </div>

						

						</li>

					<!--	<span class="actual-price"> <? if($isAirPort==0){?><span class="mobishow">(all fees included for <?=$no_of_hrs?> hrs.) </span><? }?><br>

						<? if($isAirPort==0){?>

						<span class="mobihide">(all fees included for <span class="offerhour"> <?=$no_of_hrs?></span> hours)</span>

						<? }?>-->

					</ul>

     

 <ul class="rentalpricebooknow">

<li class="rentalbookNow">

 <div class="bookNowbutton"><a href="#ContactInfoId"><input class="bookbutton bookbuttonscroll" type="submit" value="Book Now"></a></div>

	

	<li class="freecancelation text-center"><i class="fa fa-check"></i> Free Cancelation</li>

	

<!--<span class="Nopamentnd">

<span class="clrGreen">No Deposit needed</span>

<div class="popupContWrap"><a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

<div class="infoSmallPopupWrap popupupwards"><a href="#" class="smallCloseBtn">X</a>

<p class="txtSubTitlebs"> Payment charged only when we call &amp; confirm all details with you.	</p>

</div>

</span>-->

</li>

</ul>

</div>

     </div>

					

					

					

					<div class="divButtonMrow padL5 mSizeHide">

						<ul class="reviewscovidbs text-center">

					

<li><a href="#covidPoupup" data-toggle="modal" class="CommanBtnwr covidBtn"> <i class="fa fa-exclamation-triangle"></i> Covid-19 Update</a></li>

<li><a href="#reviewsModal" data-toggle="modal" class="CommanBtnwr ourReviewsBtn"> <i class="fa fa-star" aria-hidden="true"></i>

Our Reviews</a>

<!--<a href="#reviewsModal" data-toggle="modal" class="CommanBtnwr fivestarBuss"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/5-star-business.png" alt="5 Star Business" width="250" height="84">  </a>--></li>

</ul>

</div>

					

			</div>

			

		<div class="commonBorderBox  Riderentalprice AddressTimeSummary desktopShow">

					<h3>Address Info</h3>

				

					<? if($isAirPort==0){?>

	<a href="#" data-toggle="modal" data-target="#modalpopupAdd" class="txtedit">Edit</a>

<? }?>

<div class="row">

				<div class="col-sm-5">

				<div class="rentalinfopopupWrap">

   <div class="rentalPickandDropAdd rentalPickup">

  <h4>Pick-Up</h4> <a href="#" data-toggle="modal" data-target="#pickupaddmodal" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a>

<div class="addsummarytxt">

   <p><?=date('D, F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?><br /> <?=$updatepaaddress?><? if($isAirPort==0){?><? }?></p>

</div>

</div>

<? if($isAirPort==0){?>

  <div class="rentalPickandDropAdd rentalPeriod">

  <h4>Total Rental Period</h4>

		<div class="addsummarytxt">

<p><?=date('h:i A',strtotime($pickup_time))?> —> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours) </p>

<ul class="rentalListDetails">

  <li><span class="gearIcon iconsize"></span> <?=getServiceName($responseJO->services_id,$responseJO->services_id_B)?></li>

 </ul>

</div>

</div>

<? }?>

				</div>

					</div>	

						

					<div class="col-sm-7">	

		<div class="rentalinfopopupWrap">

	<div class="rentalPickandDropAdd rentalDropoff">

<? if($isAirPort==0){?>	

<h4>Drop-off</h4> 

	<? if($updatedaaddress!=''){?>

		<div class="addsummarytxt">

		 <p><?=$updatedaaddress?></p>

		</div>

	<? }else{?>

		<div class="check">

			<!--<input type="checkbox" id="isSamePA" name="isSamePA" onchange="sameAddressPA();" class="checkbox-in">--> 				<label class="labele">Same as Pickup</label>

			</div> <a href="#" data-toggle="modal" data-target="#pickupaddmodal" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a>

		<div class="addsummarytxt">

		 <p class="mrgbottom0"><?=$updatepaaddress?></p>

		</div>

	<? }?>	

	<? if($isAirPort==0){?>

	  <br>Drop-off at <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours)

	<? }?>

<? }else{?>

<div class="addsummarytxt">

 <p><?=$updatedaaddress?> Drop-off at <?=date('h:i A',strtotime($dropoff_time))?></p>

<!--<p><?=$updatedaaddress?> </p>-->

</div>

<? }?>

</div>

 </div>

	</div>

</div>

</div>

			

			

<div class="commonBorderBox Riderentalprice AddressTimeSummary mobileSzShow">

   <div class="row">

				<div class="col-sm-4">

					<h3>Address & Time Summary</h3>

					

					<div class="rentalinfopopupWrap">

   <div class="rentalPickandDropAdd rentalPickup">

  <h4>Pick-Up</h4> <a href="#" data-toggle="modal" data-target="#pickupaddmodal" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a>

<? if($isAirPort==0){?>

	<a href="#" data-toggle="modal" data-target="#modalpopupAdd" class="txtedit">Edit</a>

<? }?>

<div class="addsummarytxt">

   <p><?=date('D, F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?><br /> <?=$updatepaaddress?><? if($isAirPort==0){?><? }?></p>

</div>

</div>

						

		<div class="alldetailsinfoPopup" id="pickupdropofflocation">		

				<div class="alldetailsinfoPopupWr">

		<div class="modalheaderDiv">

    <h4 class="modalheadtitle">Pickup & Drop-off Locations</h4>

					</div>

	   <a href="javascript:void(0);" class="closeBtn">X</a>		

	   <div class="infoSmallPopupInnerWrap">

					<div class="PickupDrop-offForm">

					

					

      <div class="row">

        <div class="col-sm-12">

         <label>Pickup address</label>

									<input type="text"  class="form-control" placeholder="Pickup address" id="updatepaaddress1" name="updatepaaddress1" value="<?=str_replace('<br>','',$updatepaaddress)?>" />

          </div>

										</div>

        

						<div class="row">

       <div class="col-sm-12">

	       <label>Drop-off address</label>

				<input type="text"  class="form-control" placeholder="Drop-off address" id="updatedaaddress2" name="updatedaaddress2" value="<?=str_replace('<br>','',$updatedaaddress)?>" />

          </div>

            </div>

	        <div class="btnRow text-center"> 

				<input type="button" class="formBtn" value="Update" onclick="UpdatePDAddress12();"/> <span id="loadingUA1"></span>

			<p>If you're not sure of exact addresses now, you can also change them after booking (anytime) by calling at <a href="tel:916-325-5555">916-325-5555</a></p>

			</div>

         </div>

	  </div> 		

	</div>

</div>				

						

						

						

						

		

	<div class="rentalPickandDropAdd rentalDropoff">

<? if($isAirPort==0){?>	

<h4>Drop-off</h4> 

	<? if($updatedaaddress!=''){?>

		<div class="addsummarytxt">

		 <p><?=$updatedaaddress?></p>

		</div>

	<? }else{?>

		<div class="check">

		

		<!--<input type="checkbox" checked="checked" id="isSamePA" name="isSamePA" onchange="sameAddressPA();" class="checkbox-in">--> <label class="labele">Same as Pickup</label>

		

		</div> <a href="#" data-toggle="modal" data-target="#pickupaddmodal" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a>

		

		<div class="addsummarytxt">

		

		 <p><?=$updatepaaddress?></p>

		

		</div>

	<? }?>

<? }else{?>

<div class="addsummarytxt">

 <p><?=$updatedaaddress?> at <?=date('h:i A',strtotime($dropoff_time))?></p>

<!--<p><?=$updatedaaddress?> </p>-->

</div>

<? }?>

</div>

<? if($isAirPort==0){?>

  <div class="rentalPickandDropAdd rentalPeriod">

  <h4>Total Rental Period</h4>

		<div class="addsummarytxt">

<p><?=date('h:i A',strtotime($pickup_time))?> —> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours) </p>

<ul class="rentalListDetails">

  <li><span class="gearIcon iconsize"></span> <?=getServiceName($responseJO->services_id,$responseJO->services_id_B)?></li>

 </ul>

</div>

</div>

<? }?>

 </div>

	

	

	<div class="ItemsIncludedDiv bgGray">

	<div class="ItemsIncludedWrap">

	<img class="shieldIcon" src="<?php echo get_template_directory_uri(); ?>/assets/images/shield-green.png" alt="Shield">

	<h4>Items Included</h4>

	<ul class="checklist">

 <!--<li>Taxes Included</li>-->

 <li>Water, ice & cups included</li>

 <li>Free Cancelation</li>

	<!--<li>No Payment Charged <div class="popupContWrap"><a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

   <div class="infoSmallPopupWrap"><a href="#" class="smallCloseBtn">X</a> 	   		

   <p class="txtSubTitlebs">	Payment charged only when we call & confirm all details with you.	</p>		

   </div></li>-->

 

	</ul>

	</div>

	</div>

					

		</div>

		

		

		

      

     <div class="col-sm-4">

					<? if($nondiscountedrate > 0){?>

					<div class="offer">

						<span class="offervalue"><span class="reservesavenow mobishow">Reserve Now &amp; Save<span class="pricegoup">Prices may go up</span></span><?=$perSave?>% off</span>

					</div>

					<? }?>

     

     <!-- <div class="prices">

						<? if($nondiscountedrate > 0){?>

							<span class="mobishow">(Prices may go up)</span><s>$85 </s>

						<? }?>	

						<span class="actual-price"><? if($isAirPort==0){?>

      

      

      <span class="mobishow">(all fees included for <?=$no_of_hrs?> hrs.)</span><? }?> $75</span> <span class="multiPerson"><span class="characterIcon">x</span> 30 <span class="pass"></span></span>     <br>

						<? if($isAirPort==0){?>

						<span class="mobihide">$ 2,250 <span class="characterIcon">+</span> tip</span>

						<? }?>

					</div>-->

					

					

					<div class="PricesummaryDivTb">

	<h3>Price Summary</h3>

	<ul class="PricesummaryTb">

	<li class="PricerowTb"><div class="Priceitemtxt">Regular Price <? if($isAirPort==1){?>(<?=$no_of_hrs?> hour rental)<? }?></div>  <div class="itemPrice"><? if($nondiscountedrate > 0){?>$<?=number_format($nondiscountedrate,0)?><? }?> <span class="txtusd">USD</span></div>	</li>

	

	<li class="PricerowTb bgGray"><div class="Priceitemtxt">Discount (<?=$perSave?>% off)</div>  <div class="itemPrice">- $<?=number_format(($nondiscountedrate-$final_totalAD))?> <span class="txtusd">USD</span></div>	</li>

	

	<li class="PricerowTb"><div class="Priceitemtxt ">Taxes </div> <div class="itemPrice">Included</span> </div>	</li>

	<li class="PricerowTb bgGray pricerentaltotaldiscount"><div class="Priceitemtxt">Rental Total <span class="smallfont">(After discount)</span> </div>  <div class="itemPrice"><a href="#" class="infoIcondes mrgL0"><span class="clrLightBlue pricetoral">$<?=number_format($final_totalAD)?><span class="txtincludedTip"> + tip</span></span></a> <span class="txtusd">USD</span></div>

	

<div class="infoSmallPopupWrap"><a href="#" class="smallCloseBtn">X</a>

 <span class="totalamountBx mrgB5"> <span class="clrblack"> <? if($nondiscountedrate > 0){?><s>$<?=number_format($nondiscountedrate,0)?></s><? }?></span> <span class="hourPriceSize">$<?=number_format($final_totalAD,0)?></span><span class="txtincludedTip"><sub> + tip</sub></span></span>

   <br />

  <span class="smalltxtfont">customary to tip 20%, which goes to hard-working drivers & clean-up crew </span>

  </div>

</li>

	

		<li class="PricerowTb"><div class="Priceitemtxt">Amount due now <div class="popupContWrap"><a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div></div> <div class="itemPrice"><span class="clrGreen pricetoral">$0</span> <span class="txtusd">USD</span></div> 

		

		

	<div class="infoSmallPopupWrap padding0"><a href="#" class="smallCloseBtn">X</a> 	   		

<div class="modalheaderDiv">

<h4 class="modalheadtitle"><span class="clrGreen">$0 payment due now!</span></h4>

</div>

<div class="infoSmallPopupInnerWrap">

<p class="txtSubTitlebs">	<span class="clrGreen"><strong>$0</strong></span> due now, a partial-deposit will be charged only when we'll call & confirm all details with you over the phone	</p>	

</div>	

</div>	

		

	</li>

		

		</ul>

					</div>

					

					

     

     

					

				</div>

     </div>

			</div>

    

				<div id="ContactInfoId" class="commonBorderBox passenger-table">

					<h3>Contact Info</h3>

     

     <div class="formpassenger commonForms">

					<ul class="passengerform  feildRowWrap gutter5">

						<li class="feildCol"><input name="x_first_name" id="x_first_name" value="<?=$x_first_name?>" type="text" placeholder="First Name" class="form-input" onkeypress="checkGreenField('x_first_name',2);" onblur="checkGreenField('x_first_name',2);"/></li>

						<li class="feildCol"><input name="x_last_name" id="x_last_name" value="<?=$x_last_name?>" type="text" placeholder="Last Name" class="form-input"  onkeypress="checkGreenField('x_last_name',2);" onblur="checkGreenField('x_last_name',2);"/></li>

						

						

						

						

						

						

						

						<li class="feildCol emailfeildCol"><input placeholder="Email Address" name="cust_p_email" id="cust_p_email" type="text" value="<?=$cust_p_email?>"  <? //if($customers_id_UL==''){onblur="createAccount();" }?> class="form-input"  onkeypress="checkGreenField('cust_p_email',4);" onblur="checkGreenField('cust_p_email',4);"/><span id="creatingaccountloading"></span></li>

						

						<li class="feildCol phonefeildCol"><div class="twoColsFeild cf"><div class="phoneFieldWrap">

<select class="phoneselect select_box" onblur="if (!window.__cfRLUnblockHandlers) return false; checkGreenField('phonecode1ExitPopup',1);" id="phonecode1ExitPopup" name="phonecode1ExitPopup" data-cf-modified-ae83bf3678e1d85c3c21a994-="">

<option value="1">US +1</option>

<option value="2">IN +91</option>

<option value="3">CAN +1</option>

<option value="4">MEX +52</option>

<option value="5">UK +44</option>

<option value="6">AR +54</option>

<option value="7">AUS +61</option>

<option value="8">BH +973</option>

<option value="9">BRA +55</option>

<option value="10">CL +56</option>

<option value="11">CN +86</option>

<option value="12">CO +57</option>

<option value="13">CZ +420</option>

<option value="14">DK +45</option>

<option value="15">DO +1</option>

<option value="16">EC +593</option>

<option value="17">ETH +251</option>

<option value="18">FI +358</option>

<option value="19">FR +33</option>

<option value="20">GR +49</option>

<option value="21">GRE +30</option>

<option value="22">HK +852</option>

<option value="23">IE +353</option>

<option value="24">ISR +972</option>

<option value="25">ITA +39</option>

<option value="26">JP +81</option>

<option value="27">KE +254</option>

<option value="28">KW +971</option>

<option value="29">LB +961</option>

<option value="30">MAR +212</option>

<option value="31">NL +31</option>

<option value="32">NO +47</option>

<option value="33">PA +507</option>

<option value="34">PY +595</option>

<option value="35">PE +51</option>

<option value="36">PH +63</option>

<option value="37">PT +351</option>

<option value="38">QA +974</option>

<option value="39">RUS +7</option>

<option value="40">SG +64</option>

<option value="41">SZ +27</option>

<option value="42">SA +966</option>

<option value="43">NL +34</option>

<option value="44">TH +66</option>

<option value="45">VE +58</option>

<option value="46">SE +46</option>

<option value="47">CH +41</option>

<option value="48">KR +82</option>

<option value="49">TWN +886</option>

<option value="50">UAE +971</option>

<option value="51">UY +598</option>

</select>

								</div>

        	<div class="phoneNoInput"><input placeholder="Phone Number" name="phone_number" id="phone_number" maxlength="14" type="tel" value="<?=$phone_number?>"  onkeypress="return isNumberKey(event)" onblur="checkGreenField('phone_number',10);"/></div></div>

									<!--<div id="selectcont">

<span class="selectconttxt">Other country codes <a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></span>

<div class="infoSmallPopupWrap infoselectPopup padding0" style="display: none;">

<a href="#" class="smallCloseBtn">X</a>

<div class="infoSmallPopupInnerWrap">

 If your country's code is not given, select enter manually and enter your country's code in the phone number field.</div></div>

    </div>-->

									

									</li>

        

      	</ul>

				</div>	

    </div>

				

				<div id="billingpaymentdetails" class="commonBorderBox billing">

					<h3>Billing Details</h3>

     <div class="bilingform commonForms">

						<ul class="commonForms billerinfo feildRowWrap gutter5">

      <label>Name on card <span class="Vstar">*</span>

       <div class="check">

       <input type="checkbox" id="isSamePP" name="isSamePP" onchange="sameAddressPP();" class="checkbox-in"/> <label class="labele">Same as contact info</label>

       </div>

      

      </label>

	<li class="feildCol validationfield"><? 

				$cardfname='';

				$cardlname='';

				if($Name_On_Card!=''){ 

					$Name_On_CardA=explode(" ",$Name_On_Card,2);

					$cardfname=$Name_On_CardA[0];

					$cardlname=$Name_On_CardA[1];

				}

				?>

     

    

    <input name="Name_On_Card" id="Name_On_Card" value="<?=$cardfname?>" placeholder="First name" type="text" class="form-input" onkeypress="checkGreenField('Name_On_Card',2);" onblur="checkGreenField('Name_On_Card',2);"/>

				

				<!--	<input name="Name_On_Card" id="Name_On_Card" value="<?=$cardfname?>" placeholder="First name" type="text" class="form-input field-tick field-exclamation" onkeypress="checkGreenField('Name_On_Card',2);" onblur="checkGreenField('Name_On_Card',2);"/>

				

				<div class="divRequired">First name required</div>-->

				

				</li>

    

    

    <li class="feildCol">

    

    <input name="Last_Name_On_Card" id="Last_Name_On_Card" value="<?=$cardlname?>" placeholder="Last name" type="text" class="form-input" onkeypress="checkGreenField('Last_Name_On_Card',2);" onblur="checkGreenField('Last_Name_On_Card',2);"/></li>    

    <!--<li class="feildCol width18pt feildMsizehide"><select name="Payment_Method" id="Payment_Method" size="1" class="selectdd select_box">

		<option value="VI" <? if($CC_Type=="VI"){?> selected="selected"<? }?>>Card Type</option>

	  <option value="VI" <? if($CC_Type=="VI"){?> selected="selected"<? }?>>Visa</option>

	  <option value="MC" <? if($CC_Type=="MC"){?> selected="selected"<? }?>>Master Card</option>

	  <option value="AX" <? if($CC_Type=="AX"){?> selected="selected"<? }?>>American Express</option>

	  <option value="DS" <? if($CC_Type=="DS"){?> selected="selected"<? }?>>Discover Card</option>

	</select></li>-->

	<li class="feildCol width41pt positonReletionbx">

 

 <label>Debit/credit card number <span class="Vstar">*</span>   <a href="#" class="infoIcondes infoIconml"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a>

	

	<a href="#" class="securewebsitetx dSizeHide">Secure website</a>

	

	</label>

      

      <div class="infoSmallPopupWrap padding0" style="display: none;">

							<a href="#" class="smallCloseBtn">X</a>

						<div class="modalheaderDiv">

        <h4 class="modalheadtitle">We do not charge your card!</h4>

					

						</div>

						<div class="infoSmallPopupInnerWrap">

       Card number is only collected to reserve the vehicle & lock the rate. No payment/amount will be charged, your total amount due now is <span class="clrGreen"><strong>$0</strong></span>. We'll only charge your card once we call & confirm all details with you. And, you can cancel for free!</div></div>

							

							<div class="infoSmallPopupsw padding0" style="display: none;">

		<a href="#" class="smallCloseBtn">X</a>

		<div class="modalheaderDiv">

<h4 class="modalheadtitle">Secure website</h4>

</div>

<div class="infoSmallPopupInnerWrap">

  <span class="fontBigger">Secure transaction. SSL encrypted website.</span></div> </div>

							

 <input class="creditCard-format lock-icon" name="card_number" id="card_number" value="<?=$card_number?>" maxlength="19" type="tel" placeholder="Credit card number" onkeypress="return isNumberKey(event);"  onblur="checkGreenField('card_number',16);"/></li>

 

 <li class="feildCol  width18pt">

    <label>Exp. month <span class="Vstar">*</span></label>

    <select id="expiration_date_month" class="selectdd select_box" name="expiration_date_month" onchange="checkGreenField('expiration_date_month',1);">

  <option value="" <? if($expiration_date_month==""){?> selected="selected"<? }?>>Select</option>

  <option value="1" <? if($expiration_date_month=="1"){?> selected="selected"<? }?>>01-Jan</option>

  <option value="2" <? if($expiration_date_month=="2"){?> selected="selected"<? }?>>02-Feb</option>

  <option value="3" <? if($expiration_date_month=="3"){?> selected="selected"<? }?>>03-Mar</option>

  <option value="4" <? if($expiration_date_month=="4"){?> selected="selected"<? }?>>04-Apr</option>

  <option value="5" <? if($expiration_date_month=="5"){?> selected="selected"<? }?>>05-May</option>

  <option value="6" <? if($expiration_date_month=="6"){?> selected="selected"<? }?>>06-Jun</option>

  <option value="7" <? if($expiration_date_month=="7"){?> selected="selected"<? }?>>07-Jul</option>

  <option value="8" <? if($expiration_date_month=="8"){?> selected="selected"<? }?>>08-Aug</option>

  <option value="9" <? if($expiration_date_month=="9"){?> selected="selected"<? }?>>09-Sep</option>

  <option value="10" <? if($expiration_date_month=="10"){?> selected="selected"<? }?>>10-Oct</option>

  <option value="11" <? if($expiration_date_month=="11"){?> selected="selected"<? }?>>11-Nov</option>

  <option value="12" <? if($expiration_date_month=="12"){?> selected="selected"<? }?>>12-Dec</option>

</select></li>

    <li class="feildCol width18pt">

    <label>Exp. year <span class="Vstar">*</span></label>

    <select class="selectdd select_box" id="expiration_date_year" name="expiration_date_year" onchange="checkGreenField('expiration_date_year',1);">

<option value="" <? if($expiration_date_year==""){?> selected="selected"<? }?>>Select</option>

<option value="2019" <? if($expiration_date_year=="2019"){?> selected="selected"<? }?>>2019</option>

<option value="2020" <? if($expiration_date_year=="2020"){?> selected="selected"<? }?>>2020</option>

<option value="2021" <? if($expiration_date_year=="2021"){?> selected="selected"<? }?>>2021</option>

<option value="2022" <? if($expiration_date_year=="2022"){?> selected="selected"<? }?>>2022</option>

<option value="2023" <? if($expiration_date_year=="2023"){?> selected="selected"<? }?>>2023</option>

<option value="2024" <? if($expiration_date_year=="2024"){?> selected="selected"<? }?>>2024</option>

<option value="2025" <? if($expiration_date_year=="2025"){?> selected="selected"<? }?>>2025</option>

<option value="2026" <? if($expiration_date_year=="2026"){?> selected="selected"<? }?>>2026</option>

<option value="2027" <? if($expiration_date_year=="2027"){?> selected="selected"<? }?>>2027</option>

<option value="2028" <? if($expiration_date_year=="2028"){?> selected="selected"<? }?>>2028</option>

<option value="2029" <? if($expiration_date_year=="2029"){?> selected="selected"<? }?>>2029</option>

<option value="2030" <? if($expiration_date_year=="2030"){?> selected="selected"<? }?>>2030</option>

<option value="2031" <? if($expiration_date_year=="2031"){?> selected="selected"<? }?>>2031</option>

<option value="2032" <? if($expiration_date_year=="2032"){?> selected="selected"<? }?>>2032</option>

<option value="2033" <? if($expiration_date_year=="2033"){?> selected="selected"<? }?>>2033</option>

<option value="2034" <? if($expiration_date_year=="2034"){?> selected="selected"<? }?>>2034</option>

<option value="2035" <? if($expiration_date_year=="2035"){?> selected="selected"<? }?>>2035</option>

<option value="2036" <? if($expiration_date_year=="2036"){?> selected="selected"<? }?>>2036</option>

<option value="2037" <? if($expiration_date_year=="2037"){?> selected="selected"<? }?>>2037</option>

<option value="2038" <? if($expiration_date_year=="2038"){?> selected="selected"<? }?>>2038</option>

<option value="2039" <? if($expiration_date_year=="2039"){?> selected="selected"<? }?>>2039</option>

<option value="2040" <? if($expiration_date_year=="2040"){?> selected="selected"<? }?>>2040</option>

</select></li>      

	<li class="feildCol width23pt positonReletionbx">

  <label>CVV code<span class="Vstar">*</span> <a href="#" class="infoIcondes "><i class="fa fa-question-circle" aria-hidden="true"></i></a></label>

      

      <div class="infoSmallPopupWrap cvvpopup" style="display: none;"><a href="#" class="smallCloseBtn">X</a>

      <div class="cvvimagebx borderLine">

      <img src="<?php echo get_template_directory_uri(); ?>/assets/images/american-express.jpg" width="268" height="206" alt="">

      </div>

       <div class="cvvimagebx">

      <img src="<?php echo get_template_directory_uri(); ?>/assets/images/mastercard.jpg" width="289" height="212" alt="">

      </div>

      </div></label>

 <input name="x_card_code" id="x_card_code" value="<?=$x_card_code?>" onkeypress="return isNumberKey(event);" onblur="checkGreenField('x_card_code',3);" maxlength="4" type="tel" placeholder="Security code"/>

									</li>                                                 

	                                        

	<li class="feildCol billingaddfeild fullWidth">

  <label>Billing address <span class="Vstar">*</span> <a href="#" class="infoIcondes infoIconml"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></label>

  

  <div class="infoSmallPopupWrap padding0" style="display: none;">

		<a href="#" class="smallCloseBtn">X</a>

		<div class="modalheaderDiv">

<h4 class="modalheadtitle">Billing Address</h4>

</div>

<div class="infoSmallPopupInnerWrap">

  <span class="fontBigger">It's the address where you receive your credit card statement.</span><br> <span class="fontsmall">The info. is only collected to protect fraud on your account.</span></div> </div>

 <input name="Billing_Address" value="<?=$Billing_Address?>" type="text" id="autocomplete" onFocus="geolocate()" autocomplete="off" class="form-input location" placeholder="" onkeypress="checkGreenField('autocomplete',5);" onblur="checkGreenField('autocomplete',5);"/> 

	<input id="street_number" name="street_number" type="hidden"/>

	<input id="route" name="route" type="hidden"/>

	<input id="country" name="country" type="hidden"/>

	<input id="administrative_area_level_1" name="Billing_State" type="hidden"/>

	<input type="hidden" name="Billing_City" id="locality"/>

 	<input type="hidden" name="postal_code" id="postal_code"/></li>										

    </ul>

				</div>

     

     <div class="border-area mSizeHide"> <span class="secureIcons"><i class="fa fa-lock" aria-hidden="true"></i>

</span>Secured Transaction, SSL Secured Website</div>

				</div>

    

    

    

    

				<!--<div id="ReserveBookNow" class="commonBorderBox reserve">

					<h3>Reserve</h3>

					<div class="bookbutton">

						<input class="reservebtn" type="submit" value="Book Now"/><br>

						<span class="btncaption">48 hour Free Cancellation<br />No deposit, processed on "Book Now" <div class="popupContWrap"><a href="#" class="infoIcondes"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

      <div class="infoSmallPopupWrap"><a href="#" class="smallCloseBtn">X</a> 	   		

				   <p class="txtSubTitlebs">	Payment charged only when we call & confirm all details with you.	</p>		

			   </div>

      </span>

					</div>

				</div>-->

			

		

   <div class="bottom-spec">

   <div class="bottom-text text-center mSizeHide">

 <!--<p>*Prices inlude all fees (taxes, tip, surcharges) - Rental information</p>-->

  <p >By booking you agree to <a href="/terms-and-conditions?rfid=<?=$rfid?>&cf=notmobile" title="Terms and Conditions" target="_blank" style="color:#808080; font-size: 14px;">terms</a></p>

   	</div>

  </div>

   

  

 	</div>

    </div>

    

    

    

    

    

    

    

    </div>

    

    </div>

    </div>

</section>

<div class="divDealOfTheDayTRow">

<div class="container">

<div class="row gutter6">

 <div class="col-sm-3 col-xs-12 mSizeHide">

 <ul class="DealOfTheDayList DealOfTheDayListW cf">

	<li class="txtBookOnlineNowSave">  Book Online Now <? if($perSave > 0){?>&amp; <span class="clrGreen"><strong>Save <?=$perSave?>%</strong> </span><? }?></li>

 

 </ul>

 </div>

 <div class="col-sm-5 col-xs-12 mSizeHide">

 <ul class="DealOfTheDayList cf">		

 

    <li><span class="iconCalender"></span> Pickup <?=date(' F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?> —> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours)</li>

   

   </ul>

 <ul class="DealOfTheDayList listdetailscr cf">		

				 	<li> <span class="premium-interior"></span><?=$fleets_title2?></li>

      

      <li> <span class="pass"></span><?=$number_of_pasengers?> Adults</li>

      

      

      <li class="DivRentalInfo"><a href="#" class="infoIcondes "><span class="txtRentalInfo">Complete Rental Info</span></a>

  

  

  <div class="infoSmallPopupWrap rentalinfopopup popupupwards" style="display: none;"><a href="#" class="smallCloseBtn">X</a>

  <h3>Rental Summary</h3>

  

   <div class="rentalinfopopupWrap">

  

  <div class="rentalPickandDropAdd rentalPickup">

  <h4>Pick-Up</h4>

   <p><?=date('D, F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?><br><?=$updatepaaddress?></p>

  </div>

  

  

  <div class="rentalPickandDropAdd rentalPeriod">

<? if($isAirPort==0){?>

  <h4>Rental Period</h4>

  <p><?=date('h:i A',strtotime($pickup_time))?> —> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours) </p>

<? }?>

  <ul class="rentalListDetails">

  <li><span class="gearIcon iconsize"></span> <?=getServiceName($responseJO->services_id,$responseJO->services_id_B)?></li>

  <li><span class="premium-interior iconsize"></span> <?=$fleets_title2?></li>

  <li> <span class="pass iconsize"></span> <?=$number_of_pasengers?> Persons</li>

  <li> <span class="luggage iconsize"></span> <?=$luggage?> Suitcases</li>

  </ul>

 	</div>

  

  <!--<div class="rentalPickandDropAdd rentalDropoff">

  <h4>Drop-Off</h4>

  <p><?=$updatepaaddress?><br> <span class="rentalListDetails"><span class="premium-interior iconsize"></span> <?=$fleets_title2?> <span class="pass iconsize"></span> <?=$number_of_pasengers?> <span class="luggage iconsize"></span> </span> <?=$luggage?></p>

 	</div>-->

  <div class="prices">

							<span>Price: </span><strike>$<?=number_format($nondiscountedrate)?></strike> <span class="actual-price"><strong>$<?=number_format($final_totalAD)?></strong><span class="txtincludedTip"> +tip</span></span>

				</div>

   </div>

  </div>

  

  

  </li>

  </ul>

  </div>

 

 <div class="col-sm-4 col-xs-12">

  <ul class="DealOfTheDayList totalPriceBooknow  cf">

		

			<li class="totalAmountList">

	

	<div class="DealOfTheDayList DealOfTheDayListW dSizeHide cf">

	<div class="txtBookOnlineNowSave">  Book Online Now <? if($perSave > 0){?>&amp; <span class="clrGreen"><strong>Save <?=$perSave?>%</strong> </span><? }?></div>

 

 </div>

	

	

	

	

	<span class="infopopupwrapbx"><span class="totalamountBx divmargbtm"> <span class="clrblack Valigntop"> <? if($nondiscountedrate > 0){?><s>$<?=number_format($nondiscountedrate,0)?></s><? }?></span> <div class="popupContWrap"><a href="#" class="infoIcondespop"><span class="clrLightBlue totalamount tipincludingtxt"> $<?=number_format($final_totalAD,0)?><span class="txtincludedTip"> + tip</span></span></a></div>

 

 <div class="infoSmallPopupWrap popupupwards"><a href="#" class="smallCloseBtn">X</a>

 <span class="totalamountBx mrgB5"> <span class="clrblack"> <? if($nondiscountedrate > 0){?><s>$<?=number_format($nondiscountedrate,0)?></s><? }?></span> <span class="clrLightBlue totalamount"> $<?=number_format($final_totalAD,0)?></span><span class="txtincludedTip"><sub> + tip</sub></span></span>

   <br />

  <font size="2">customary to tip 20%, which goes to hard-working drivers & clean-up crew </font>

  </div>

 

 

 </span></span>

 <span class="Nopamentnd"><span class="infopopupwrapbx">

<span class="clrGreen">No Deposit needed</span>

 <div class="popupContWrap"><a href="#" class="infoIcondespop"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-info.png" alt=""></a></div>

<div class="infoSmallPopupWrap popupupwards padding0"><a href="#" class="smallCloseBtn">X</a> 

<div class="modalheaderDiv">

<h4 class="modalheadtitle"><span class="clrGreen">$0 payment due now!</span></h4>

</div>

<div class="infoSmallPopupInnerWrap">	   		

<p class="txtSubTitlebs">	<span class="clrGreen"><strong>$0</strong></span> due now, a partial-deposit will be charged only when we'll call & confirm all details with you over the phone	</p>		

</div>

</div>

 </span></span> </li>

 

    <li class="dealdaybookNow"> <div class="bookNowbutton"><a href="#ContactInfoId" class="bookbuttonscroll"><input class="bookbutton " type="submit" value="Book Now"></a></div>

				

				<div  class="commonBorderBox reserve dSizeHide">

<div class="bookbutton">

<span class="btncaption"><span class="btntxt"> <i class="fa fa-check"></i> Free Cancelation <a href="/terms-and-conditions?rfid=<?=$rfid?>" title="Terms and Conditions" target="_blank" style="color:#808080; font-size: 14px;">terms</a></span> 

</span>

</div>

</div>

<div class="DivRentalInfo dSizeHide "><div class="text-center"><a href="#" class="infoIcondes"><span class="txtRentalInfo ">Rental Info</span></a></div>

  

  <div class="infoSmallPopupWrap rentalinfopopup popupupwards" style="display: none;"><a href="#" class="smallCloseBtn">X</a>

  <h3>Rental Summary</h3>

  

   <div class="rentalinfopopupWrap">

  

  <div class="rentalPickandDropAdd rentalPickup">

  <h4>Pick-Up</h4>

   <p><?=date('D, F d, Y',strtotime($responseJO->pickup_date))?> at <?=date('h:i A',strtotime($pickup_time))?><br><?=$updatepaaddress?></p>

  </div>

  

  

  <div class="rentalPickandDropAdd rentalPeriod">

<? if($isAirPort==0){?>

  <h4>Rental Period</h4>

  <p><?=date('h:i A',strtotime($pickup_time))?> —> <?=date('h:i A',strtotime($dropoff_time))?> (<?=$no_of_hrs?> Hours) </p>

<? }?>

  <ul class="rentalListDetails">

  <li><span class="gearIcon iconsize"></span> <?=getServiceName($responseJO->services_id,$responseJO->services_id_B)?></li>

  <li><span class="premium-interior iconsize"></span> <?=$fleets_title2?></li>

  <li> <span class="pass iconsize"></span> <?=$number_of_pasengers?> Persons</li>

  <li> <span class="luggage iconsize"></span> <?=$luggage?> Suitcases</li>

  </ul>

 	</div>

  

  <!--<div class="rentalPickandDropAdd rentalDropoff">

  <h4>Drop-Off</h4>

  <p><?=$updatepaaddress?><br> <span class="rentalListDetails"><span class="premium-interior iconsize"></span> <?=$fleets_title2?> <span class="pass iconsize"></span> <?=$number_of_pasengers?> <span class="luggage iconsize"></span> </span> <?=$luggage?></p>

 	</div>-->

  <div class="prices">

							<span>Price: </span><strike>$<?=number_format($nondiscountedrate)?></strike> <span class="actual-price"><strong>$<?=number_format($final_totalAD)?></strong><span class="txtincludedTip"> +tip</span></span>

				</div>

   </div>

  </div>

  

  

  </div>

				</li>	

				

				

				 </ul> 

 </div>

 </div>

	</div>

</div>

 </form>

	

	

	

	<div id="pickupaddmodal" class="modal fade addTimemodal" role="dialog" data-backdrop="static" tabindex="-1" >

<div class="modal-dialog"> 

<div class="modal-content">

<div class="modalheaderDiv">

        <h4 class="modalheadtitle">Not sure of exact pickup or drop-off address</h4>

								</div>

<button type="button" class="close" data-dismiss="modal">×</button>

<div class="addmodalWrap">

You can change the pickup or drop-off address after booking by calling us anytime at <a href="tel:916-325-5555">916-325-5555</a>. We recommend you to book now (even with the approximate addresses) & complete the online booking to get this online exclusive discount of <span class="clrGreen"><strong><?=$perSave?>% off.</strong> </span>

     

      

    </div>

    </div>

    </div>

     </div>

					

					

					<!--<div id="dropoffaddmodal" class="modal fade addTimemodal" role="dialog" data-backdrop="static" tabindex="-1" >

<div class="modal-dialog"> 

<div class="modal-content">

<button type="button" class="close" data-dismiss="modal">×</button>

<div class="addmodalWrap">

You can change the pickup or drop-off address after booking by calling us anytime at <a href="tel:916-325-5555">916-325-5555</a>. We recommend you to book now (even with the approximate addresses) & complete the online booking to get this online exclusive discount of <span class="clrGreen"><strong><?=$perSave?>% off.</strong> </span>

     

      

    </div>

    </div>

    </div>

     </div>-->

					

					

					<!--<div id="callusmodal" class="modal fade addTimemodal" role="dialog" data-backdrop="static" tabindex="-1" >

<div class="modal-dialog"> 

<div class="modal-content">

<div class="modalheaderDiv">

        <h4 class="modalheadtitle">Should you call or just book online?</h4>

								</div>

<button type="button" class="close" data-dismiss="modal">×</button>

<div class="addmodalWrap">

To get the exclusive online-discount of <span class="clrGreen"><strong><?=$perSave?>% off</strong></span> book online now, no payment is charged on booking. After completing booking, you can even call us 100 times &#128578; to make any changes to your reservations. But, if you still feel you need immediate help, you can call us at <a href="tel:916-325-5555">916-325-5555</a>.

     

      

    </div>

    </div>

    </div>

     </div>-->

					

					

					

					<div id="modalpopupAdd" class="modal fade modalpopupAddBt" role="dialog" data-backdrop="static" tabindex="-1">		

				<div class="modal-dialog"> 

<div class="modal-content">

<div class="modalheaderDiv">

  <h4 class="modalheadtitle">Update Pickup & Drop-off Addresses</h4>

 </div>

    <button type="button" class="close" data-dismiss="modal">×</button>

	  <!-- <a href="javascript:void(0);" class="closeBtn">X</a>-->		

	   <div class="infoSmallPopupInnerWrap">

					<div class="PickupDrop-offForm">

      <div class="row">

        <div class="col-sm-12">

         <label>Pickup address</label>

									<input type="text"  class="form-control" placeholder="Pickup address" id="updatepaaddress3" name="updatepaaddress3" value="<?=str_replace('<br>','',$updatepaaddress)?>" />

          </div>

										</div>

        

						<div class="row">

       <div class="col-sm-12">

       <label>Drop-off address</label>

									<input type="text"  class="form-control" placeholder="Enter full address, or city, or zip-code" id="updatedaaddress4" name="updatedaaddress4" value="<?=str_replace('<br>','',$updatedaaddress)?>"/>

          </div>

            </div>

        <div class="btnRow text-center"> 

								<input type="button" onclick="UpdatePDAddress34();" class="formBtn" value="Update"/> <span id="loadingUA2"></span>

								<p>If you're not sure of exact addresses now, you can also change them after booking (anytime) by calling at <a href="tel:916-325-5555">916-325-5555</a></p>

								

								</div>

         </div>

					</div> 		

						</div>

						</div>

						</div>

						

<? //$addPerDiscount=5;

if($addPerDiscount > 0){?>						

	<div id="modalpopupAdd1" class="modal fade modalpopupAddBt" role="dialog" data-backdrop="static" tabindex="-1" >		

				<div class="modal-dialog moduldialigwidth600"> 

<div class="modal-content">

<div class="modalheaderDiv">

  <h4 class="modalheadtitle">Congratulations you got additional discount!</h4>

 </div>

    <button type="button" class="close" data-dismiss="modal">×</button>

	  <!-- <a href="javascript:void(0);" class="closeBtn">X</a>-->		

	   <div class="infoSmallPopupInnerWrap">

    <p>We gave you additional <?=$addPerDiscount?>% off ($<?  $addAmount=(($final_total*$addPerDiscount)/100); echo $addAmount;?>) on a already discounted price. Your new rental price is  <span class="clrGreen"><strong>$<?=number_format($final_totalAD,0)?>.</strong></span></p>

				

				<div class="PricesummaryDivTb" style="display:none;">

	

	<ul class="PricesummaryTb">

	<li class="PricerowTb">

	<div class="Priceitemtxt Priceitemtxtwidth">Original Discounted Price </div> 

	 <div class="DisountPricetxt">40% Off </div>

	<div class="itemPrice"> <span class="cutingprice"><s>$400</s></span> <span class="clrGreen actualtotalprice">$300</span></div>	

	</li>

	

	<li class="PricerowTb bgGray">

	<div class="Priceitemtxt Priceitemtxtwidth">Additional Discount</div>

	<div class="DisountPricetxt">3% off </div>

	  <div class="itemPrice"> <span class="clrGreen actualtotalprice">$6</span></div>

				</li>

	

	<li class="PricerowTb">

	<div class="Priceitemtxt Priceitemtxtwidth">New Discounted Price </div>

	<div class="DisountPricetxt">43% Off </div>

	 <div class="itemPrice"> <span class="clrGreen actualtotalprice"><strong>$294</strong></span> </div>	</li>

	

	

		

		</ul>

					</div>

					

					</div> 		

						</div>

						</div>

						</div>

						

						

						

<? }?>

						

		

<script>

jQuery('.creditCard-format').keyup(function() {

  var foo = $(this).val().split("-").join(""); // remove hyphens

  if (foo.length > 0) {

    foo = foo.match(new RegExp('.{1,4}', 'g')).join("-");

  }

  jQuery(this).val(foo);

});

jQuery('#phone_number').keyup(function(e){

    var ph = this.value.replace(/\D/g,'').substring(0,10);

    // Backspace and Delete keys

    var deleteKey = (e.keyCode == 8 || e.keyCode == 46);

    var len = ph.length;

    if(len==0){

        ph=ph;

    }else if(len<3){

        ph='('+ph;

    }else if(len==3){

        ph = '('+ph + (deleteKey ? '' : ') ');

    }else if(len<6){

        ph='('+ph.substring(0,3)+') '+ph.substring(3,6);

    }else if(len==6){

        ph='('+ph.substring(0,3)+') '+ph.substring(3,6)+ (deleteKey ? '' : '-');

    }else{

        ph='('+ph.substring(0,3)+') '+ph.substring(3,6)+'-'+ph.substring(6,10);

    }

    this.value = ph;

});

</script>

<script>

function checkGreenField(fieldname,checklenth){

	var fieldvalue = $('#'+fieldname).val();

	var fieldlenth = $('#'+fieldname).val().length;

	if(fieldvalue != ''){

		if(checklenth <= fieldlenth){

			$('#'+fieldname).css("border", "2px solid #009933");

		}else{

			$('#'+fieldname).css("border", "2px solid #FF0000");		

		}

	}else{

		$('#'+fieldname).css("border", "2px solid #FF0000");

	}

}

function isNumberKey(evt){

	var charCode=(evt.which)?evt.which:event.keyCode

    if (charCode > 31 && charCode < 48 || charCode > 57) 

		if (event.keyCode != 46) 

			if (event.keyCode != 110) 

				return false; 

					return true;

} 

function  createAccount(){

	var IsValid = true;

	var x_first_name = $('#x_first_name').val();

	if(x_first_name == ''){

		$('#x_first_name').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#x_first_name').css("border", "1px solid #a1a1a1");

	}

	var x_last_name = $('#x_last_name').val();

	if(x_last_name == ''){

		$('#x_last_name').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#x_last_name').css("border", "1px solid #a1a1a1");

	}

	var cust_p_email = $('#cust_p_email').val();

	if(cust_p_email == ''){

		$('#cust_p_email').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#cust_p_email').css("border", "1px solid #a1a1a1");

		var eml = new String(cust_p_email); 

		var val1 = eml.indexOf('@'); 

		var val2 = eml.indexOf("."); 

		if ((val1 == -1) || (val2 == -1)){ 

			$('#cust_p_email').css("border", "2px solid #FF0000"); 

			IsValid = false; 

		} 

	}

	var phone_number = $('#phone_number').val();

	if(phone_number == ''){

		$('#phone_number').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#phone_number').css("border", "1px solid #a1a1a1");

	}

	if(IsValid == true){

		var strURL="/booking/createaccountbyleads?x_first_name="+x_first_name+"&x_last_name="+x_last_name+"&cust_p_email="+cust_p_email+"&phone_number="+phone_number+"";

		$('#creatingaccountloading').html('<center><img class="Iconsimg" src="/ajax-loading.gif" alt="Ajax Loading"></center>');

		$.get(strURL,function(data,status){  

			if(status=="success") {			

				window.location.reload();

				$('#creatingaccountloading').html('');	

			}else {

				alert("There was a problem while using XMLHTTP:\n" + req.statusText);

			}

			//alert("Data: " + data + "\nStatus: " + status);

		});

	}

}

function sameAddressPA() {

	if(document.frm_Reg.isSamePA.checked==true){

		document.frm_Reg.autocomplete_DA.value='';

		document.frm_Reg.da_address.value=document.frm_Reg.pa_address.value;

		document.frm_Reg.locality_DA.value=document.frm_Reg.pa_city.value;

		document.frm_Reg.administrative_area_level_1_DA.value=document.frm_Reg.pa_state.value;

		document.frm_Reg.postal_code_DA.value=document.frm_Reg.pa_zip.value;

	} else{

		document.frm_Reg.autocomplete_DA.value="";

		document.frm_Reg.da_address.value="";

		document.frm_Reg.locality_DA.value="";

		document.frm_Reg.administrative_area_level_1_DA.value="";

		document.frm_Reg.postal_code_DA.value="";

	}

}

function checkformR(){

	var IsValid = true;

	var x_first_name = $('#x_first_name').val();

	if(x_first_name == ''){

		$('#x_first_name').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#x_first_name').css("border", "1px solid #a1a1a1");

	}

	var x_last_name = $('#x_last_name').val();

	if(x_last_name == ''){

		$('#x_last_name').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#x_last_name').css("border", "1px solid #a1a1a1");

	}

	var cust_p_email = $('#cust_p_email').val();

	if(cust_p_email == ''){

		$('#cust_p_email').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#cust_p_email').css("border", "1px solid #a1a1a1");

		var eml = new String(cust_p_email); 

		var val1 = eml.indexOf('@'); 

		var val2 = eml.indexOf("."); 

		if ((val1 == -1) || (val2 == -1)){ 

			$('#cust_p_email').css("border", "2px solid #FF0000"); 

			IsValid = false; 

		} 

	}

	var phone_number = $('#phone_number').val();

	if(phone_number == ''){

		$('#phone_number').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#phone_number').css("border", "1px solid #a1a1a1");

	}

	<? if($rowView->services_id=="1000" || $rowView->services_id=="1001" || $rowView->services_id=="1002"){?>

	/*var autocomplete_DA = $('#autocomplete_DA').val();

	if(autocomplete_DA == ''){

		$('#autocomplete_DA').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#autocomplete_DA').css("border", "1px solid #a1a1a1");

	}*/

	<? }?>

	

	var Name_On_Card = $('#Name_On_Card').val();

	if(Name_On_Card == ''){

		$('#Name_On_Card').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#Name_On_Card').css("border", "1px solid #a1a1a1");

	}

	var Last_Name_On_Card = $('#Last_Name_On_Card').val();

	if(Last_Name_On_Card == ''){

		$('#Last_Name_On_Card').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#Last_Name_On_Card').css("border", "1px solid #a1a1a1");

	}	

	var autocomplete = $('#autocomplete').val();

	if(autocomplete == ''){

		$('#autocomplete').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#autocomplete').css("border", "1px solid #a1a1a1");

	}

	

	var Payment_Method = $('#Payment_Method').val();

	if(Payment_Method == ''){

		$('#Payment_Method').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#Payment_Method').css("border", "1px solid #a1a1a1");

	}

	var card_number = $('#card_number').val();

	if(card_number == ''){

		$('#card_number').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#card_number').css("border", "1px solid #a1a1a1");

	}

	var expiration_date_month = $('#expiration_date_month').val();

	if(expiration_date_month == ''){

		$('#expiration_date_month').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#expiration_date_month').css("border", "1px solid #a1a1a1");

	}

	var expiration_date_year = $('#expiration_date_year').val();

	if(expiration_date_year == ''){

		$('#expiration_date_year').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#expiration_date_year').css("border", "1px solid #a1a1a1");

	}

	var x_card_code = $('#x_card_code').val();

	if(x_card_code == ''){

		$('#x_card_code').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#x_card_code').css("border", "1px solid #a1a1a1");

	}

	

	//alert("x_first_name:"+x_first_name+"-x_last_name:"+x_last_name+"-cust_p_email:"+cust_p_email+"-phone_number:"+phone_number+"-autocomplete_DA:"+autocomplete_DA+"-Name_On_Card:"+Name_On_Card+"-Last_Name_On_Card:"+Last_Name_On_Card+"-autocomplete:"+autocomplete+"-Payment_Method:"+Payment_Method+"-card_number:"+card_number+"-expiration_date_month:"+expiration_date_month+"-expiration_date_year:"+expiration_date_year+"-x_card_code:"+x_card_code+"");

	//alert(IsValid);

	if(IsValid==true){

		$('#loadingsearch').html('<center><img class="Iconsimg" src="/ajax-loading.gif" alt="Ajax Loading"></center>');

	}	

	return IsValid;

}

function sameAddressPP() {

	if(frm_Reg.isSamePP.checked==true){

		document.frm_Reg.Name_On_Card.value=document.frm_Reg.x_first_name.value;

		document.frm_Reg.Last_Name_On_Card.value=document.frm_Reg.x_last_name.value;

		document.frm_Reg.Billing_Phone.value=document.frm_Reg.phone_number.value;//.toUpperCase()

		$('#Name_On_Card').css("border", "2px solid #009933");

		$('#Last_Name_On_Card').css("border", "2px solid #009933");

		$('#Billing_Phone').css("border", "2px solid #009933");

	} else{

		$('#Name_On_Card').css("border", "2px solid #FF0000");

		$('#Last_Name_On_Card').css("border", "2px solid #FF0000");

		$('#Billing_Phone').css("border", "2px solid #FF0000");

		

		document.frm_Reg.Name_On_Card.value="";

		document.frm_Reg.Last_Name_On_Card.value="";

		document.frm_Reg.Billing_Phone.value="";

	}

}

function myFunction() {

	var dots = document.getElementById("dots");

	var moreText = document.getElementById("more");

	var btnText = document.getElementById("myBtn");

	

	if (dots.style.display === "none") {

	dots.style.display = "inline";

	btnText.innerHTML = "Read more"; 

	moreText.style.display = "none";

	} else {

	dots.style.display = "none";

	btnText.innerHTML = "Read less"; 

	moreText.style.display = "inline";

	}

}

jQuery(window).load(function(){

setTimeout(function(){

    $("#loading").hide();

},500);

setTimeout(function(){

    $('#modalpopupAdd1').modal('hide');

},3000);

$('#modalpopupAdd1').modal('show');

});

function  UpdatePDAddress12(){

	var IsValid = true;

	var updatepaaddress = $('#updatepaaddress1').val();

	if(updatepaaddress == ''){

		$('#updatepaaddress1').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#updatepaaddress1').css("border", "1px solid #a1a1a1");

	}

	var updatedaaddress = $('#updatedaaddress2').val();	

	if(IsValid == true){

		var strURL="/proccessform.php?actions=updatepareservation&updatepaaddress="+updatepaaddress+"&updatedaaddress="+updatedaaddress+"&reservation_id=<?=$reservation_id?>";

		$('#loadingUA1').html('<center><img class="Iconsimg" src="/ajax-loading.gif" alt="Ajax Loading"></center>');

		$.get(strURL,function(data,status){  

			if(status=="success") {			

				window.location.reload();

				$('#loadingUA1').html('');	

			}else {

				alert("There was a problem while using XMLHTTP:\n" + req.statusText);

			}

			//alert("Data: " + data + "\nStatus: " + status);

		});

	}

}

function  UpdatePDAddress34(){

	var IsValid = true;

	var updatepaaddress = $('#updatepaaddress3').val();

	if(updatepaaddress == ''){

		$('#updatepaaddress3').css("border", "2px solid #FF0000");

		IsValid = false;

	}

	else{

		$('#updatepaaddress3').css("border", "1px solid #a1a1a1");

	}

	var updatedaaddress = $('#updatedaaddress4').val();	

	if(IsValid == true){

		var strURL="/proccessform.php?actions=updatepareservation&updatepaaddress="+updatepaaddress+"&updatedaaddress="+updatedaaddress+"&reservation_id=<?=$reservation_id?>";

		$('#loadingUA2').html('<center><img class="Iconsimg" src="/ajax-loading.gif" alt="Ajax Loading"></center>');

		$.get(strURL,function(data,status){  

			if(status=="success") {			

				window.location.reload();

				$('#loadingUA2').html('');	

			}else {

				alert("There was a problem while using XMLHTTP:\n" + req.statusText);

			}

			//alert("Data: " + data + "\nStatus: " + status);

		});

	}

}

</script>

<? if($CustomerId==''){?>

<script> 

var currentd = new Date();

var current_hours = currentd.getHours();

var check_hours=localStorage.getItem("check_hours");

if(check_hours=='' || check_hours==null){

	localStorage.setItem("check_hours", current_hours);

	check_hours=localStorage.getItem("check_hours");

}

function onMouseOut(event) {

	if(parseInt(current_hours) != parseInt(check_hours)){		

		localStorage.setItem("check_hours", current_hours);

		if (event.clientY < 50 &&

			event.relatedTarget == null &&

			event.target.nodeName.toLowerCase() !== 'select') {

			document.removeEventListener("mouseout", onMouseOut);

			$('#popupservice').modal('show');

		}

	}

}

document.addEventListener("mouseout", onMouseOut);

</script> 

<? }?>

 <?php get_footer();?>