{"id":160,"date":"2023-08-12T14:56:31","date_gmt":"2023-08-12T21:56:31","guid":{"rendered":"https:\/\/casazane.com\/?page_id=160"},"modified":"2023-08-14T21:26:08","modified_gmt":"2023-08-15T04:26:08","slug":"reserve-casa-zane","status":"publish","type":"page","link":"https:\/\/casazane.com\/?page_id=160","title":{"rendered":"Reserve Casa Zane"},"content":{"rendered":"<blockquote>\n<p>Please fill out the reservation request below.<\/p>\n<p>Pending requests and confirmed bookings are shown in blue and are not available for reservation.<\/p>\n<\/blockquote>\n<p><strong>** Minimum 3-day stay at Casa Zane.<\/strong><\/p>\n\n<style type=\"text\/css\">\r\n#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{width:33% !important}#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{min-width:200px !important}#dex_bccf_pform .ui-datepicker:not(.ui-datepicker-multi){min-width:200px}#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{max-width:400px !important}#dex_bccf_pform .ui-datepicker:not(.ui-datepicker-multi){max-width:400px}#dex_bccf_pform tr th span,#dex_bccf_pform tr th a,#dex_bccf_pform tr td span, #dex_bccf_pform tr td a{padding:0px}.pbSubmit { color: #00f; font-weight: bold; }\r\n.pbSubmit:hover { background-color: #75528D; color: white; }<\/style><form class=\"cpp_form no-prefetch\" name=\"dex_bccf_pform\" id=\"dex_bccf_pform\" action=\"\" method=\"post\" enctype=\"multipart\/form-data\" onsubmit=\"return doValidate(this);\"><input name=\"dex_bccf_post\" type=\"hidden\" value=\"1\" \/><input type=\"hidden\" name=\"_wpnonce\" value=\"bbd34f195c\" \/>\r\n<script>\r\nvar pathCalendar = \"\/\";\r\n<\/script>\r\n<div style=\"display:none\" id=\"bccfcalselectionarea\">\r\nCalendar:<br \/><select name=\"dex_item\" id=\"dex_item\" onchange=\"dex_updateItem()\"><option value=1>CasaZane<\/option><\/select><br \/><br \/>\r\n<\/div>\r\n<div id=\"bccfcalarea\">\r\n<label id=\"bccfselectdates\">Select start and end dates:<\/label>\r\n<div id=\"calarea1\" style=\"display:none\" class=\"rcalendar\"><\/div><div id=\"bccf_display_price\" style=\"display:none\">\r\nPrice:\r\n<\/div>\r\n<\/div>\r\n<div id=\"selddiv\" style=\"font-weight: bold;margin-top:0px;padding-top:0px;padding-right:3px;padding-left:3px;\"><\/div>\r\n<script type=\"text\/javascript\"> var dex_current_calendar_item;\r\n function dex_updateItem()\r\n {\r\n    document.getElementById(\"calarea\"+dex_current_calendar_item).style.display = \"none\";\r\n    var i = document.dex_bccf_pform.dex_item.options.selectedIndex;\r\n    var selecteditem = document.dex_bccf_pform.dex_item.options[i].value;\r\n    dex_do_init(selecteditem);\r\n }\r\n function dex_do_init(id)\r\n {\r\nmyjQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;\r\n  try{$testjq = myjQuery} catch (e) {}\r\n  if (typeof $testjq == 'undefined')\r\n  {\r\n    setTimeout(\"dex_do_init(\"+id+\");\");\r\n    return;\r\n  }    \r\n  myjQuery(function(){\r\n    (function($) {         \r\n        dex_current_calendar_item = id;\r\n        document.getElementById(\"calarea\"+dex_current_calendar_item).style.display = \"\";\r\n        $calendarjQuery = myjQuery;\r\n        $calendarjQuery(function() {\r\n        $calendarjQuery(\"#calarea\"+id).rcalendar({\"calendarId\":id,\r\n                                                    \"partialDate\":false,\r\n                                                    \"defaultColor\":'F66',\r\n                                                    \"partial_defaultColor\":'F66',\r\n                                                    \"edition\":false,\r\n                                                    \"minDate\":\"06\/28\/2026\",\r\n                                                    \"maxDate\":\"\",\r\n                                                    \"dformat\":\"mm\/dd\/yy\",\r\n                                                    \"workingDates\":[1,1,1,1,1,1,1],\r\n\t    \t\t\t                                \"holidayDates\":[],\r\n\t    \t\t\t                                \"startReservationWeekly\":[1,1,1,1,1,1,1],\r\n\t    \t\t\t                                \"startReservationDates\":[],\r\n\t    \t\t\t                                \"fixedReservationDates\":false,\r\n\t    \t\t\t                                \"fixedReservationDates_length\":1,\r\n                                                    \"language\":\"\",\r\n                                                    \"firstDay\":0,\r\n                                                    \"numberOfMonths\":3                                                    });\r\n        });\r\n        $calendarjQuery(\"#calarea\"+id).addClass('notranslate');\r\n        document.getElementById(\"selddiv\").innerHTML = \"\";\r\n    })(myjQuery);\r\n    });\r\n }\r\n function bccf_init_cal(){\r\n    if (window.jQuery){\r\n        dex_do_init(1);\r\n    }\r\n    else{\r\n       window.setTimeout(\"bccf_init_cal();\",100);\r\n    }\r\n }\r\n bccf_init_cal();\r\n var bccf_d1 = \"\";\r\n var bccf_d2 = \"\";\r\n var bccf_ser = \"\";\r\n function updatedate()\r\n {\r\n    try\r\n    {\r\n        var a = (document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value != '');\r\n        var b = (document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value != '');\r\n        var c = false;\r\n        if (a)\r\n        {\r\n          if (!b && true)\r\n          {\r\n            b = a;              \r\n            document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value;\r\n            document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value;\r\n            document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value;\r\n          }\r\n          if (b)\r\n            c = true;    \r\n        }\r\n        if (c)\r\n        {\r\n            var d1 = document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value;\r\n            var d2 = document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value;\r\n            $dexQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;\r\n            var ser = \"\";            if (bccf_d1 != d1 || bccf_d2 != d2 || bccf_ser != ser)\r\n            {\r\n                bccf_d1 = d1;\r\n                bccf_d2 = d2;\r\n                bccf_ser = ser;\r\n                $dexQuery.ajax({\r\n                  type: \"GET\",\r\n                  url: \"\/?dex_bccf=getcost\"+String.fromCharCode(38)+\"inAdmin=1\"+String.fromCharCode(38)+\"dex_item=\"+dex_current_calendar_item+\"\"+String.fromCharCode(38)+\"from=\"+d1+\"\"+String.fromCharCode(38)+\"to=\"+d2+\"\"+ser\r\n                }).done(function( html ) {\r\n                    document.getElementById(\"bccf_display_price\").innerHTML = '';\r\n                    $dexQuery(\"#bccf_display_price\").append('<b>Cost:<\/b> MXN '+html);\r\n                });\r\n            }\r\n        }\r\n        else\r\n        {\r\n            bccf_d1 = \"\";\r\n            bccf_d2 = \"\";\r\n            document.getElementById(\"bccf_display_price\").innerHTML = '';\r\n        }\r\n    } catch (e) {}\r\n }\r\n setInterval('updatedate()',200); var cp_bccf_ready_to_go = false;\r\n function doValidate(form)\r\n {\r\n    if (cp_bccf_ready_to_go) return;\r\n    $dexQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;    var d1 = new Date(document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value,document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value-1,document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value);\r\n    var d2 = new Date(document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value,document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value-1,document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value);\r\n    var ONE_DAY = 1000 * 60 * 60 * 24;\r\n    var nights = Math.round(Math.abs(d2.getTime() - d1.getTime()) \/ ONE_DAY)+1;        document.dex_bccf_pform.dex_bccf_ref_page.value = document.location;    if (document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item).value == '' || document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item).value == '')\r\n    {\r\n        alert('Please select start and end dates.');\r\n        return false;\r\n    }\r\n    if (nights < 3){\r\n        alert('The minimum number of nights to book is 3');\r\n        return false;\r\n    }\r\n    if (nights > 180){\r\n        alert('The maximum number of nights to book is 180');\r\n        return false;\r\n    }     if ($dexQuery(\"#hdcaptcha_dex_bccf_post\").val() == '')\r\n    {\r\n        setTimeout( \"cpbccf_cerror()\", 100);\r\n        return false;\r\n    }\r\n    var result = $dexQuery.ajax({\r\n        type: \"GET\",\r\n        url: \"?inAdmin=1\"+String.fromCharCode(38)+\"hdcaptcha_dex_bccf_post=\"+$dexQuery(\"#hdcaptcha_dex_bccf_post\").val(),\r\n        async: false\r\n    }).responseText;\r\n    if (result.indexOf(\"captchafailed\") != -1)\r\n    {\r\n        $dexQuery(\"#dex_bccf_captchaimg\").attr('src', $dexQuery(\"#dex_bccf_captchaimg\").attr('src')+'&'+Math.floor((Math.random() * 99999) + 1));\r\n        setTimeout( \"cpbccf_cerror()\", 100);\r\n        return false;\r\n    }\r\n    else     {\r\n        var cpefb_error = 0;\r\n        $dexQuery(\"#dex_bccf_pform\").find(\".cpefb_error\").each(function(index){\r\n            if ($dexQuery(this).css(\"display\")!=\"none\")\r\n                cpefb_error++;    \r\n            });\r\n        if (cpefb_error) return false;    \r\n        cp_bccf_ready_to_go = true;\r\n        cpbccf_blink(\".pbSubmit\");        \r\n        document.getElementById(\"form_structure\").value = '';        \r\n        return true;\r\n    }    \r\n }\r\n function cpbccf_cerror(){$dexQuery = jQuery.noConflict();$dexQuery(\"#hdcaptcha_error\").css('top',$dexQuery(\"#hdcaptcha_dex_bccf_post\").outerHeight());$dexQuery(\"#hdcaptcha_error\").css(\"display\",\"inline\");} \r\n function cpbccf_blink(selector){\r\n        try {   \r\n            $dexQuery = jQuery.noConflict();\r\n            $dexQuery(selector).fadeOut(1000, function(){\r\n                $dexQuery(this).fadeIn(1000, function(){\r\n                    try {\r\n                        if (cp_bccf_ready_to_go)\r\n                            cpbccf_blink(this); \r\n                    } catch (e) {}  \r\n                });\r\n            });        \r\n        } catch (e) {}             \r\n }\r\n<\/script><input type=\"hidden\" name=\"dex_bccf_pform_process\" value=\"1\" \/><input type=\"hidden\" name=\"dex_bccf_id\" value=\"1\" \/><input type=\"hidden\" name=\"dex_bccf_ref_page\" value=\"\" \/><input type=\"hidden\" name=\"form_structure\" id=\"form_structure\" size=\"180\" value=\"[[{&quot;name&quot;:&quot;fieldname1&quot;,&quot;index&quot;:0,&quot;title&quot;:&quot;Full Name&quot;,&quot;required&quot;:true,&quot;userhelp&quot;:&quot;Please enter your first and last name.&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;size&quot;:&quot;medium&quot;,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;email&quot;,&quot;index&quot;:1,&quot;title&quot;:&quot;Email&quot;,&quot;ftype&quot;:&quot;femail&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;required&quot;:true,&quot;predefined&quot;:&quot;&quot;,&quot;size&quot;:&quot;medium&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;fieldname2&quot;,&quot;index&quot;:2,&quot;title&quot;:&quot;Phone&quot;,&quot;userhelp&quot;:&quot;Enter your phone number including country code.&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;required&quot;:false,&quot;size&quot;:&quot;medium&quot;,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;fieldname3&quot;,&quot;index&quot;:3,&quot;size&quot;:&quot;small&quot;,&quot;title&quot;:&quot;# of Guests&quot;,&quot;required&quot;:true,&quot;predefined&quot;:&quot;2&quot;,&quot;userhelp&quot;:&quot;Enter a number between 1 and 6&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;minlength&quot;:&quot;1&quot;,&quot;maxlength&quot;:&quot;1&quot;,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;fieldname5&quot;,&quot;index&quot;:4,&quot;size&quot;:&quot;small&quot;,&quot;title&quot;:&quot;Pets&quot;,&quot;userhelp&quot;:&quot;Enter number of pets.&quot;,&quot;predefined&quot;:&quot;0&quot;,&quot;required&quot;:true,&quot;minlength&quot;:&quot;1&quot;,&quot;maxlength&quot;:&quot;1&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;fieldname4&quot;,&quot;index&quot;:5,&quot;title&quot;:&quot;Message&quot;,&quot;size&quot;:&quot;large&quot;,&quot;userhelp&quot;:&quot;Enter a message for the Casa Zane team.&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;ftype&quot;:&quot;ftextarea&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;required&quot;:false,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;}],[{&quot;title&quot;:&quot;&quot;,&quot;description&quot;:&quot;&quot;,&quot;formlayout&quot;:&quot;top_aligned&quot;}]]\" \/>\r\n  <div id=\"fbuilder\">\r\n      <div id=\"formheader\"><\/div>\r\n      <div id=\"fieldlist\"><\/div>\r\n  <\/div>\r\n<div style=\"display:none\">  \r\n<div id=\"cpcaptchalayer\">\r\n  <div class=\"fields\" id=\"field-ck2\"><label><\/label><div class=\"dfield\">Please enter the security code:<br \/><img decoding=\"async\" src=\"https:\/\/casazane.com\/wp-content\/plugins\/booking-calendar-contact-form\/captcha\/captcha.php?width=180&inAdmin=1&height=60&letter_count=5&min_size=30&max_size=35&noise=200&noiselength=4&bcolor=ffffff&border=000000&font=font-1.ttf\"  id=\"dex_bccf_captchaimg\" alt=\"security code\" border=\"0\" class=\"skip-lazy\"  \/>\r\n  <div class=\"clearer\"><\/div><\/div><\/div>\r\n  <div class=\"fields\" id=\"field-c2\"><label>Security Code (lowercase letters):<\/label>\r\n   <div class=\"dfield\">\r\n    <input type=\"text\" size=\"20\" name=\"hdcaptcha_dex_bccf_post\" id=\"hdcaptcha_dex_bccf_post\" value=\"\" \/>\r\n    <div class=\"cpefb_error message\" id=\"hdcaptcha_error\" generated=\"true\" style=\"display:none;position: absolute; left: 0px; top: 25px;\">Please enter a valid captcha code.<\/div>\r\n    <div class=\"clearer\"><\/div>\r\n   <\/div>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"cp_subbtn\" class=\"cp_subbtn\">Submit<\/div>\r\n<div style=\"clear:both;\"><\/div>\r\n<\/form>\n\n\n<\/p>\n<blockquote>\n<p>After clicking the submit button, you should receive an email confirming your booking details.<\/p>\n<p>We will be in touch shortly to complete your stay at Casa Zane.<\/p>\n<p>Thank you!<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Please fill out the reservation request below. Pending requests and confirmed bookings are shown in blue and are not available &hellip; <a href=\"https:\/\/casazane.com\/?page_id=160\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Reserve Casa Zane<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/full-width.php","meta":{"footnotes":""},"class_list":["post-160","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/casazane.com\/index.php?rest_route=\/wp\/v2\/pages\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/casazane.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/casazane.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/casazane.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/casazane.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160"}],"version-history":[{"count":16,"href":"https:\/\/casazane.com\/index.php?rest_route=\/wp\/v2\/pages\/160\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/casazane.com\/index.php?rest_route=\/wp\/v2\/pages\/160\/revisions\/263"}],"wp:attachment":[{"href":"https:\/\/casazane.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}