<?php 
require_once 'admin-neuro/lib/Config.php';
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title><?php echo getRecord('id','metakeywords','14','metatitle');?></title>
<meta name="keywords" content="<?php echo getRecord('id','metakeywords','14','keywords');?>"/>
<meta name="description" content="<?php echo getRecord('id','metakeywords','14','description');?>"/>
    <link rel="shortcut icon" href="<?php echo getRecord('id','settings','1','image1');?>" type="image/x-icon">
    <!-- Stylesheets & Fonts -->
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,800,700,600|Montserrat:400,500,600,700|Raleway:100,300,600,700,800" rel="stylesheet" type="text/css" />
    <link href="css/plugins.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/btn-styles.css" rel="stylesheet">
    <link href="css/responsive.css" rel="stylesheet"> 
    
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet"> 
    
    
    <!-- Event styles -->
    <link href="css/event-styles.css" rel="stylesheet"> 
    <link href="css/pgc.css" rel="stylesheet"> 
    
    <script type="text/javascript" src="js/countrycodes.js"></script>
    
    <?php include("script.php");?> 
    
    </head>

    <body class="no-page-loader">


    <!-- Wrapper -->
    <div id="wrapper">

		<!-- Header -->
		<?php include("links/menu.php");?>
		<!-- end: Header -->

          <!-- Hidden bar back drop -->
    <div class="form-back-drop"></div>



   <section class="gallery-section py-4 banner-space">
        <div class="container">
            
            <div class="sec-title mb-2 d-flex justify-content-between">
                <!--<span class="sub-title">Some FAQ’s</span>-->
                <h2 style="color:#FFF !important;" class="text-white m-b-0">Accommodation</h2>
              <div>
                  
              </div>
            </div>
            
            <div class="row g-3">
                <!-- Gallery Block -->
                <?php
				 
				 $lc=executeQuery("select * from hotel_highlights where status='1' ");
		              //foreach($lc as $lcn){
		              while($lcn=getAssoc($lc)){
				 ?>
             <div class="gallery-block col-lg-3 col-md-4 col-sm-6">
                    <div class="image-box">
                        <figure class="image"><img src="<?php echo $domain_path.$lcn['image'];?>" alt="<?php echo $lcn['alt_text'];?>"></figure>
                        <a class="overlay-box lightbox-image" href="<?php echo $domain_path.$lcn['image'];?>">
                           
                            <span class="text"><?php echo $lcn['title'];?></span>
                        </a>
                    </div>
                </div>
                <?php } ?>       
            </div>
        </div>
    </section>

<section class="p-t-10 p-b-0">    
    <div class="container p-0">
    <div class="accordion p-0">
    <div class="panel-heading accordion-item"   style="background-color: transparent;">
    <h4 class="panel-title text-right" id="headingOne2" style="margin-bottom: 0;" >
    <span  class="accordion-button  show" style="color: #fff;  padding: 20px 15px; font-size: 15px; background-image: linear-gradient(to right top, #ff8100, #ffac00, #ff9700, #fe9900, #ff8500); text-align:left;">
        Looking for Accommodation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    </span>
    </h4>
    </div>
    </div>  
    </div>
</section>
    
    <style>
     .pricing-section{padding: 40px 0 0;}
     .pricing-block .features li{padding-left: 0;}
     .pricing-block .features li:before{display: none;padding-left: 0;}
     .pricing-block .inner-box{padding: 20px;}
     .pricing-block{padding: 0 15px;    margin-bottom: 32px;}
     .pricing-section .row {    margin: 0;}
     .pricing-block .features li{font-weight: 600;    padding: 5px 0;
    padding-left: 0px;    border-bottom: 1px dashed #dddddd;    font-size: 15px;}
     .pricing-block .features li span {    float: right;
    color: #136797;    font-weight: bold;    margin-top: 6px;    padding-left: 10px;}
    .pricing-block .features li input[type="radio"] {    width: 18px;
    float: left;    margin-top: 0px;    margin-right: 10px;    height: 23px;}
    .pricing-block .features{padding-bottom: 0;}
    .pricing-block .title {    position: relative;    display: block;    font-size: 20px;    color: #0d197d;
    line-height: 1.2em;     font-weight: 600;    margin-bottom: 15px;}
    .pricing-block .overlayss:before {    position: absolute;
    top: 0;    right: 0;    bottom: 0;    left: 0;    background: rgba(0, 0, 0, 0.5);    content: " ";
    width: 100%;    height: 100%;    z-index: 99;transform: inherit;}
    </style>
    
    <section class="clearfix scientificspeakers p-t-0">
        <div class="container">
               <div class="contact-wrapper contact-form">
              
        <script type="text/javascript">
function blockSpecialChar(e){
    var k;
    document.all ? k = e.keyCode : k = e.which;
    return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || k == 32 || (k >= 48 && k <= 57));
    }
</script>

<script type="text/javascript">
// Form validation code will come here.
                function validate()
                {
                 
                   if( document.form.tot_price.value == "0" )
                   {
                     alert( "Please Enter Vallied Amount!" );
                     document.form.tot_price.focus() ;
                     return false;
                   }
                   
                    {
            var iChars = "!`@#$%^&*()+=-[]\\\';,./{}|\":<>?~_";   
            var data = document.getElementById("name").value;
            for (var i = 0; i < data.length; i++)
            {      
                if (iChars.indexOf(data.charAt(i)) != -1)
                {    
                alert ("Your string has special characters. \nThese are not allowed.");
                document.getElementById("name").value = "";
                return false; 
                } 
            }
        }
        
         {
            var iChars = "!`@#$%^&*()+=-[]\\\';,./{}|\":<>?~_";   
            var data = document.getElementById("institution").value;
            for (var i = 0; i < data.length; i++)
            {      
                if (iChars.indexOf(data.charAt(i)) != -1)
                {    
                alert ("Your string has special characters. \nThese are not allowed.");
                document.getElementById("institution").value = "";
                return false; 
                } 
            }
        }
        
        
                   
                   return( true );
                }
</script>
                              
                                                         
                               
<form action="acc_regi.php" method="post" name="form" onsubmit="return validate();">
<div class="row p-relative  p-b-40 fix baclpadtop m-t-0">
 
 <div class="col-md-10 col-sm-10 mx-auto col-xs-10 center">
      <div class="row  mt-20">
        <div class=" col-md-6 col-sm-12 form-group">
            <div class="input-outer">
                <select name="caption" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required"><option value="--Caption*--">--Caption*--</option><option value="Dr.">Dr.</option><option value="Prof.">Prof.</option><option value="Mr.">Mr.</option><option value="Mrs.">Mrs.</option><option value="Ms.">Ms.</option></select>
            
                <span class="icon fa fa-user"></span>
            </div>
        </div>

        <div class=" col-md-6 col-sm-12 form-group">
            <div class="input-outer">
                <input type="text" name="name" placeholder="Name" required>
                <span class="icon fa fa-user"></span>
            </div>
        </div>
        
        <div class=" col-md-6 col-sm-12 form-group">
            <div class="input-outer">
                <input type="email" name="email" placeholder="Email" required>
                <span class="icon fa fa-envelope"></span>
            </div>
        </div>

        <div class=" col-md-6 col-sm-12 form-group">
            <div class="input-outer">
                <input type="email" name="aemail" placeholder="Alternative Email" required>
                <span class="icon fa fa-envelope"></span>
            </div>
        </div>

        <div class=" col-md-6 col-sm-12 form-group">
            <div class="input-outer">
                <input type="text" name="phone" placeholder="Phone" required>
                <span class="icon fa fa-phone"></span>
            </div>
        </div>
        <div class=" col-md-6 col-sm-12 form-group">
            <div class="input-outer">
                <input type="text" name="wphone" placeholder="WhatsApp Number" required>
                <span class="icon fa fa-phone"></span>
            </div>
        </div>

     
 </div>
 </div>    
  <input type="hidden"  name="country" value="" >
    <input type="hidden" name="institution" value="" >
    
    
<input type="hidden"  name="presentations" id="location_select" value="" >
    <input type="hidden"  name="participants" id="participants" value="1" >
    <input type="hidden" name="acmpng" id="acmpng"  value="0" >
    
  <div class="clearfix"></div>
                                    
       <div class="col-lg-12 mt-4">
   
   
</div>
          <div class="about-area">
		<?php
        $or=executeQuery("select * from hybridregistration_prices where status='1'");
        $orp=getAssoc($or);
       // $orp=executeAPIQuery("select * from hybridregistration_prices where status='1' ");
        ?>
<div class="clearfix"></div>

<style> 
.panel-default .panel-heading a[aria-expanded="false"]:after {
/* content: "No";   -webkit-transform: rotate(0deg);   transform: rotate(0deg);background: #ababab;
padding: 5px 10px 3px 10px;
font-size: 14px;
margin-top: -3px;
border-radius: 10px;
color: #fff;width: 45px;text-align: center;*/
  content: '';
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
background: #7db70e;
padding: 5px 10px 3px 10px;
font-size: 14px;
    margin-top: -3px;
border-radius: 10px;
color: #fff;
text-align: center;
height: 24px;
width: 90px;
/*background: url(images/off.png) no-repeat;*/
background-size: contain;
  }      
 .about-area .panel-default .panel-heading a[aria-expanded="true"]:after {
content: '';
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
background: #7db70e;
padding: 5px 10px 3px 10px;
font-size: 14px;
  margin-top: -3px;
border-radius: 10px;
color: #fff;
text-align: center;
height: 24px;
width: 90px;
/*background: url(images/on.png) no-repeat;*/
background-size: contain;
}
.flexistaybox .panel-default .panel-heading .panel-title a {
    color: #fff;
    padding: 20px 15px;
    font-size: 15px;
    background-image: linear-gradient(to right top, #ff8100, #ffac00, #ff9700, #fe9900, #ff8500);
}
.accordion-button::after{ background:none !important;}
</style>
<!--<input type= "button" value= "clear" onclick= "ClearFields()">-->
<div class="panel-group flexistaybox mt-0 mb-60" id="accordion2" role="tablist" aria-multiselectable="true">
<div  class="panel panel-default accordion" id="accordionBasic">
    

<div id="collapseOne2"  class="accordion-collapse collapse show" aria-labelledby="headingOne2" data-bs-parent="#accordionBasic" style="">
<div class="panel-body border rounded p-40">
<div class="wpb_wrapper">
<div class="row">
<div class="col-md-12 col-sm-12">
                                                            <label><strong>Choose an Occupancy Type</strong></label>
                                                        </div>
                                                        <div class="row" style="margin-bottom:20px;">
                                                            <?php 
                                                            
                                                            $accommodation_occupency_value=[245,260,280];
                                                            $oc=executeQuery("select * from accommodation_occupency where status='1' ");
                                                            $ImgData=[];
                                                            while($ocp=getAssoc($oc)){
                                                            $ImgData[]=$ocp;
                                                            
                                                            }
                                                            
                                                            ?>
                                                            
                                                           
                                                            <div class="col-md-4 occ-type">
                                                                <img src="<?php echo $ImgData[0]['image'];?>" alt="<?php echo $ocp[0]['alt_text'];?>">
                                                                <div class="occ-box2">
                                                                    <input type="radio" name="accomm" id="accomm_single" onChange="getprice()" value="210">
                                                                    <label for="accomm_single">Single Occupancy - <?php echo getRecord('id','pages','20','about');?></label>
                                                                </div>
                                                            </div> 
                                                            <div class="col-md-4 occ-type">
                                                                <img src="<?php echo $ImgData[1]['image'];?>" alt="<?php echo $ocp[1]['alt_text'];?>">
                                                                <div class="occ-box2">
                                                                    <input type="radio" name="accomm" id="accomm_double" onChange="getprice()" value="210">
                                                                    <label for="accomm_double">Double Occupancy - <?php echo getRecord('id','pages','21','about');?></label>
                                                                </div>
                                                            </div>    
                                                            <div class="col-md-4 occ-type">
                                                                <img src="<?php echo $ImgData[2]['image'];?>" alt="<?php echo $ocp[2]['alt_text'];?>">
                                                                <div class="occ-box3">
                                                                    <input type="radio" name="accomm" id="accomm_triple" onChange="getprice()" value="230">
                                                                    <label for="accomm_triple">Triple Occupancy - <?php echo getRecord('id','pages','22','about');?></label>
                                                                </div>
                                                            </div>
                                                        </div>


<div id="occ_type" class="row" style="display: none;">
<div class="col-lg-4 mb-10 form-group">
<div class="contact-phone input-outer c-icon">
    
<select name="checkin" id="checkin" onchange="getdiff(true)">
<option value="" selected="selected">Check In</option>
<option value="09/03/2025">03 September 2025</option>
<option value="09/04/2025">04 September 2025</option>
<option value="09/05/2025">05 September 2025</option>
<option value="09/06/2025">06 September 2025</option>
<option value="09/07/2025">07 September 2025</option>
</select>
<span class="icon fa fa-calendar"></span>
</div>
</div>
                                   
<div class="col-lg-4 mb-10 form-group">
<div class="contact-phone input-outer c-icon">

<select name="checkout" id="checkout" onchange="getdiff(false)">
<option value="" selected="selected">Check Out</option>	
<option value="09/05/2025">05 September 2025</option>
<option value="09/06/2025">06 September 2025</option>
<option value="09/07/2025">07 September 2025</option>
<option value="09/08/2025">08 September 2025</option>
<option value="09/09/2025">09 September 2025</option>
</select>
<span class="icon fa fa-calendar"></span>
</div>
</div>
                                  

                                  <div class="col-lg-4 mb-10 form-group">
                                        <div class="contact-phone input-outer c-icon">
<!--<i class="fas fa-users"></i>-->
<input name="nights" id="nights" placeholder="Number of Nights" readonly="" value="" type="text">
                                        </div>
                                    </div>
                                    
          </div>                            
                                   </div>
                                    
</div>
</div>
</div>

</div>
</div>
</div>
                                
                                  
                                    
                                       <div class="clearfix"></div>                           
                                     </div>
                                     
           <div class="clearfix"></div>
                     
                                     <div class="col-md-12 mx-auto col-sm-12">
                                            <div class="row ">
                                     
                                    
                                   <div class="col-md-12 mt-3" style=" padding-bottom: 20px;">
                <div class="table-responsive border rounded mt-3" id="summery" style="padding: 15px;background: #fff;">
                <h4 class="mb-3">Accommodation  Summary </h4>
<div id="avail"></div>

           
           
           
                                  <table class="table table-bordered">
                        <tbody>
                              
                            <tr>
                                <td class="cart-product-name">
                                    <strong>Accommodation</strong>
                                </td>
                                <td class="cart-product-name  text-right">
                                    <span class="amount" style=" float: right;"><b class="nasd" style="float: left; font-weight: normal;">$</b><input type="text" id="acc_val" name="acc_val" class="hidden" readonly="readonly" value=""></span>
                                </td>
                            </tr>
                               <tr>
                                <td class="cart-product-name">
                                    <strong>Number of Nights:</strong>
                                </td>
                                <td class="cart-product-name  text-right">
                                    <span class="amount"><input type="text" id="nght" name="nights" class="nights" readonly="readonly" value="" style="float: right;"></span>
                                </td>
                            </tr>
                            
                            <tr>
                                <td class="cart-product-name">
                                    <strong>Total Accommodation Value</strong>
                                </td>
                                <td class="cart-product-name  text-right">
                                    <span class="amount" style=" float: right;"><b class="nasd" style="float: left; font-weight: normal;">$</b> <input type="text" id="accm" name="accm" class="hidden" readonly="readonly" value=""></span>
                                </td>
                            </tr>
                            
                            
                               <tr style="background-color:#ddd; ">
                                <td class="cart-product-name">
                                    <strong style="font-size: 18px;">Total Accommodation  Price:</strong>
                                </td>
                                <td class="cart-product-name  text-center">
                                   <strong style="text-align: center; margin-left: 48px; font-size: 18px;"> $ <input type="text" readonly="" id="tot_price" class="contact-input " name="tot_price" value=""  required="" style="background: transparent;    margin: 0 auto;    width: 54px;    font-weight: bold;
    font-size: 18px;"></strong>
                                </td>
                            </tr>
                           
                        </tbody>
                    </table>
                    
                    <div class="clearfix"></div>
                    
        <div class="col-lg-12 col-md-12 col-sm-12 form-group123">
                            Captcha Code: <span id="error-captcha" class="demo-error error"></span>
                            <div class="input-group">
                                <span class="input-group-addon" id="input-group-addon" style="padding-left: 10px;padding-right: 10px;background: #734dbc;border-radius: 10px  0 0 10px;color: #fff;"><?php echo getCaptchaCode(6);?></span>
                                <input name="captcha_code" type="text" id="captcha-input" placeholder="Enter Captch Here" class="captcha-box">
                            </div>
                        </div>
                    
<div class="col-sm-12 price_main mt-4 pt-3">
<div class="row">
    
    <div class="col-md-5 mb-3" >
        <?php /*        
        <div class="form-group d-flex">
          <!--<label for="promo_code">Apply Promocode:</label>-->
          <div class="flex-grow-1">
            <input type="text" class="form-control" id="coupon_code" placeholder="Apply Coupon Code" name="coupon_code" style="padding: 14px;height: 50px;">
    	    <b> </span> <span id="message" style="color:green;"></span><span id="couponval"  style="color:green;"></b>
    	  </div>
        	   <div>
        	   <button id="apply" class="" type="button" style="color: #fff;width:100pxline-height: 24px;    padding: 10px 20px;
            border: 1px solid #e1e1e1;    font-weight: 400;    height: 50px;    border-radius: 5px;    -webkit-transition: all 300ms ease;
            -o-transition: all 300ms ease;    transition: all 300ms ease;    background-color: #00ba34;">Apply</button>
        	<button id="edit" class="" style="display:none;">Edit</button>
        	</div>
        </div>
       */?>
    </div>
        
    <div class="price_only col-md-3">
        <div id="field1" class="quanty totalprccc" style="width: auto;padding: 8px 16px;    border-radius: 4px;">
            <!--<input type="text" readonly="" id="tot_price" class="contact-input " name="tot_price" value="" placeholder="Enter Price" required="" style="border: none; width: 70px; text-align: left; background: none;color: #fff; font-weight: bold;display: inline-block;margin-bottom: 0;">-->
            <button  id="c-captcha" class="btn prcdbtn" type="submit" name="submit" value="submit" style="border: none;  text-align: left; background: none;color: #fff; font-weight: bold;display: inline-block;margin-bottom: 0;">Proceed to Register</button>
        </div>
        
    </div>
    <div class="col-md-1">
         <div class="contact-butoon text-center">
            <button class="btn" type="reset" style="padding: 14px 20px;">Reset</button>
        </div>
        </div>
    
    <div class="col-md-3">
        <span class="all_usd"><em class="danger">*</em> All prices are in USD only.</span>
    </div>
</div>
</div>
                    
                    </div>
            </div>
                               
                                    </div>
                                    <div class="clearfix"></div>
                                <p style="margin-bottom:0px;"><strong>Note: For PayPal and Stripe payments, 4.8% processing charges may apply.</strong></p>
                                    <div class="row ">
                                   <!--<div class="col-lg-3 col-md-4 col-sm-4 ">-->
                                   <!-- <img src="images/godaddy.jpg" class="godaddywid mt-30">-->
                                   <!-- </div>-->
                                <!--<div class="col-lg-3 col-md-3 col-sm-3 ">-->
                                <!--<img src="images/PayPal_logo.png" class="paypal">-->
                                <!--</div>-->
                                <!--<div class="col-lg-4 col-md-5 col-sm-12 mt-3">-->
                                <!--      <div class="g-recaptcha" data-sitekey="6LcNSOchAAAAAALPaMIAS6Mo4EYymzQNnSoeazbN" ></div>-->
                                <!--      </div> -->
                                 <div class="clearfix"></div>
                                <!--      <div class="d-flex text-center">-->
                                <!--    <div class="me-4">-->
                                <!--    <div class="contact-butoon text-center mt-30">-->
                                <!--            <button class="btn" type="reset" >Reset</button>-->
                                <!--        </div>-->
                                <!--    </div>-->
                                   
                                <!--    <div class="">-->
                                <!--        <div class="contact-butoon text-center mt-30">-->
                                <!--            <button class="btn prcdbtn" type="submit" name="submit" value="submit">Proceed to Register</button>-->
                                <!--        </div>-->
                                <!--    </div>-->
                                <!--</div>-->
                                     
                                <hr class="mt-4" style="border-bottom: 1px solid #d0d1d4;"> 

            <div class="col-md-12 vwc_register shadow-lg p-20 m-t-50">
                
   <h4><strong><?php echo getRecord('id','pages','23','title');?></strong></h4>
<?php echo getRecord('id','pages','23','description');?>

<p style="margin-left:18pt">.</p>
        </div>
                                </div>
                            </div>
                        </div> 
          </form>
</div>

         
        </div>
        
        
    </section>



        <!-- FOOTER -->
        <?php include("links/footer.php");?> 
        <!-- end: FOOTER -->
        
    </div>    
    <!-- end: Wrapper -->

    <!--Plugins-->
<script src="js/jquery.js"></script>
<script src="js/plugins.js"></script>

<!--Template functions-->
<script src="js/functions.js"></script> 


 <script type="text/javascript">
    window.onload = getprice();
    function getdiff(isFirst) {
        var date1 = $("#checkin").find(":selected").val();
        var date2 = $("#checkout").find(":selected").val();
        $("#checkout").children().each(function () {
if ( new Date($(this).attr("value")) <= new Date(date1)){
$(this).prop("disabled", "true");
} else {
if(isFirst){
$('#checkout').prop('selectedIndex',0)
$('#nights').val('');
date2 = '';
}
$(this).removeAttr("disabled");
}
});
        if (date1 != '' && date2 != '') {
            var date11 = new Date(date1);
            var date21 = new Date(date2);
            var Difference_In_Time = date21 - date11;
            var Difference_In_Days = Difference_In_Time / (1000 * 3600 * 24);
            $("#nights").val(Difference_In_Days);
            getprice();
        }
    }
    function getprice() {
        var accomm = 0;
        //var basic = $('input[name="regtype"]:checked').val();
        var basic = 0;
        var participants = $('#participants').val()!='' ? $('#participants').val() : '0';
        var acmpng = $('#acmpng').val()!='' ? $('#acmpng').val() : '0';
        if($('input[name="accomm"]:checked').is(':checked') == true){
            $('#occ_type').css('display','contents');
            accomm = $('input[name="accomm"]:checked').val();
        }
        var nights = $('#nights').val()!='' ? $('#nights').val() : '0';
        val1 = parseInt(participants) * parseInt(basic);
        val2 = parseInt(acmpng) * 200;
        val3 = parseInt(nights) * parseInt(accomm);
        var total = val1+val2+val3;
            /* $(':input[type="submit"]').prop('disabled', true);
            if(total<1){
                 $(':input[type="submit"]').prop('disabled', false);
            }*/
        $("#reg_vl").val(basic);
        $("#prtc").val(participants);
        $("#acprsn").val(acmpng);
        $("#acc_pr").val(val2);
        $("#acc_val").val(accomm);
        $("#nght").val(nights);
        $("#accm").val(val3);
        $("#tot_price").val(total);
         $("#accomm_single").val(<?php echo getRecord('id','pages','20','about');?>);
         $("#accomm_double").val(<?php echo getRecord('id','pages','21','about');?>);
         $("#accomm_triple").val(<?php echo getRecord('id','pages','22','about');?>);
    }
    

    </script>
   
    <script>
    $(function() {
        $(".datepicker").datepicker({
            dateFormat: 'dd-mm-yy',
            changeMonth: true,
            changeYear: true
        });
    });
    </script>
     <script>
	$("#apply").click(function(){
		if($('#coupon_code').val()!=''){
			$.ajax({
						type: "POST",
						url: "process.php",
						data:{
							coupon_code: $('#coupon_code').val()
						},
						success: function(dataResult){
							var dataResult = JSON.parse(dataResult);
							if(dataResult.statusCode==200){
								var after_apply=$('#tot_price').val()-dataResult.value;
								$('#tot_price').val(after_apply);
								
								
								var after_apply_reg_vl=$('#reg_vl').val()-dataResult.value;
								$('#reg_vl').val(after_apply_reg_vl);
								
								$('#apply').hide();
								//$('#edit').show();
							
							var	sss = dataResult.value
							 document.getElementById("couponval").innerHTML = sss;
								$('#message').html("The coupon code  successfully applied $");
								
							}
							else if(dataResult.statusCode==201){
								$('#message').html("Invalid Coupon Code !");
							}
						}
			});
		}
		else{
			$('#message').html("Enter a Valid Coupon Code !");
		}
		
		var tanv = $('input[name="tot_price"]').val();
            document.getElementById("tot_price").innerHTML = tanv;
           
		
	});
// 	$("#edit").click(function(){
// 		$('#coupon_code').val("");
// 		$('#apply').show();
// 		$('#edit').hide();
// 		location.reload();
// 	});
</script>
  <script>
      function validate_2(city)
{
   // console.log(city)
     document.getElementById("location_select").value = city;
   
}

function validate_1(val){
   // console.log(val)
    document.getElementById(val.split('-')[0]).checked = true
    
}

// function ClearFields() {
//      document.getElementById("acc_val").value = "";
//      document.getElementById("nght").value = "";
//      document.getElementById("accm").value = "";
// }
$('a.accordion-button').click(function(){
    //
    var onOff = $('#headingOne2 a').attr("aria-expanded");
    $('#acc_val').val(0);
    $('#accm').val(0);
    $('#nght').val(0);
    $('#checkin').val('');
    $('#checkout').val('');
    $('#nights').val('');
    
    if(onOff == 'false') {
        $('input[name="accomm"]').prop('checked', false);
        getprice();
    }
    
});
    </script>
    
    
    








<script>
$(document).ready(function(){
  $("#c-captcha").click(function(){
      var cap=$('#input-group-addon').text();
      var in_cap=$('#captcha-input').val();
      $('#error-captcha').text('');
      if(cap!==in_cap){
          $('#error-captcha').text('Captch Invalid');
          return false;
      }
  });
});
</script>
</body>

</html>
