<div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [Table &#039;4ikyygsdy_e_events&#039; already exists]<br /><code>CREATE TABLE `4iKYyGsdy_e_events` (
			id bigint(20) unsigned auto_increment primary key,
			event_data text null,
			created_at datetime not null
		) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [Duplicate key name &#039;created_at_index&#039;]<br /><code>ALTER TABLE 4iKYyGsdy_e_events
    		ADD INDEX `created_at_index` (`created_at`)
		</code></p></div>{"id":1184,"date":"2021-08-18T15:34:57","date_gmt":"2021-08-18T15:34:57","guid":{"rendered":"https:\/\/thevillageguesthouse.co.za\/?page_id=1184"},"modified":"2021-09-13T12:56:44","modified_gmt":"2021-09-13T12:56:44","slug":"booking-tcs","status":"publish","type":"page","link":"https:\/\/thevillageguesthouse.co.za\/index.php\/booking-tcs\/","title":{"rendered":"Booking T&#038;C's"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1184\" class=\"elementor elementor-1184\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9a7d555 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9a7d555\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9e20905\" data-id=\"9e20905\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-522b4cb elementor-widget elementor-widget-heading\" data-id=\"522b4cb\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Our Booking Terms &amp; Conditions<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9613aa9 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"9613aa9\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-325b01e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"325b01e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4e3f984\" data-id=\"4e3f984\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-19aaaac elementor-widget elementor-widget-text-editor\" data-id=\"19aaaac\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Confirmation of Booking<\/strong><\/p>\n<p>Your booking will be completed when we acknowledge receipt of your full amount payable. Prior to that the booking will only be regarded as provisional.<\/p>\n<p><strong>Payment<\/strong><\/p>\n<p>We accept Cash, Card &amp; EFT<\/p>\n<p><strong>Cancellation by you<\/strong><\/p>\n<p>We will need 2 days\u2019 notice for any cancelation where the full amount was paid before 48hour of the booking date. No refund will be made if the payment was done within the 48hour period prior to booking date. No refunds for <strong>\u201cno show\u201d<\/strong> see arrival and departure.<\/p>\n<p><strong>Cancellation by us<\/strong><\/p>\n<p>In the unlikely event that we are forced to cancel your booking, due to circumstances beyond our control we will refund all monies already paid by you and confirm that you will not be liable for any further payments to us<\/p>\n<p><strong>Arrival and Departure<\/strong><\/p>\n<p>You will be able to check in between the hours of 4pm and 9pm Please phone in advance to advice of an estimated time of arrival, as our reception is not continually manned. Arrivals after 9pm are by prior arrangement only. If prior arrangements have not been made, and you do not arrive by 9pm, we are entitled to treat it as a <strong>\"no-show\".<\/strong> Your booking will be cancelled and we have the right to re-let your room. We request that you vacate your room 11 am on the day of departure.<\/p>\n<p><strong>&nbsp;<\/strong><strong>Damage and Breakage<\/strong><\/p>\n<p>We are sure that you will take care whilst you stay with us, and we acknowledge that accidents sometimes happen. We do however reserve the right to charge for any damage or breakages which we consider to be deliberately or recklessly caused, for any items discovered missing after you depart or for the cost of the room for any time period for which it is considered un-usable due to damage. If the damage\/breakages are discovered after you depart, you will be notified of any charges in writing as soon as is reasonably practicable.<\/p>\n<p><strong>Smoking Policy<\/strong><\/p>\n<p>No Smoking allowed in the rooms and\/or inside the house<\/p>\n<p><strong>Our Liability<\/strong><\/p>\n<p>We do not accept any liability for damage to your property or injury to you (or other members of your party) whilst on our premises unless caused by the negligence of us, or our employees. Cars are parked at your own risk.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-22aad7f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"22aad7f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1c3c4c4\" data-id=\"1c3c4c4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b77d2f1 elementor-widget elementor-widget-wp-widget-mod_vikbooking_horizontalsearch\" data-id=\"b77d2f1\" data-element_type=\"widget\" data-widget_type=\"wp-widget-mod_vikbooking_horizontalsearch.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5>Book your Accomodation<\/h5>\n<div class=\"vbmodhorsearchmaindiv vbo-horizsearch-humanformat-wrap\">\n\t<form action=\"https:\/\/thevillageguesthouse.co.za\/index.php\/our-rooms\/?task=search\" method=\"post\" id=\"vbo-mod-horsearch-form-135\">\n\t\t<input type=\"hidden\" name=\"task\" value=\"search\" \/>\n\t\t<div class=\"vbmodhorsearch-hum-dates-wrap\">\n\t\t\t<div class=\"vbmodhorsearch-humcalcont vbmodhorsearchcheckindiv\">\n\t\t\t\t<label class=\"vbo-horizsearch-lbl-dt-135\">Check-in date<\/label>\n\t\t\t\t<div class=\"vbo-horizsearch-showcalendar vbo-horizsearch-showcalendar-from\" id=\"vbo-horizsearch-checkin135\">\n\t\t\t\t\t<i class=\"far fa-calendar-alt\"><\/i>\t\t\t\t\t<span class=\"vbo-horizsearch-placeholder\">Select date<\/span>\n\t\t\t\t\t<div id=\"vbo-horizsearch-period135-from\" class=\"vbo-horizsearch-period-from\">\n\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-mday\"><\/span>\n\t\t\t\t\t\t<div class=\"vbo-horizsearch-period-dt\">\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-month\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-year\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-wday\"><\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"vbo-horizsearch-dpicker-cont vbo-horizsearch-dpicker-from\" id=\"checkindatemod135\" style=\"display: none;\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"checkindate\" id=\"inp-checkindatemod135\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkinh\" value=\"16\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkinm\" value=\"0\"\/>\n\t\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearch-humcalcont vbmodhorsearchcheckoutdiv\">\n\t\t\t\t<label class=\"vbo-horizsearch-lbl-dt-135\">Check-out date<\/label>\n\t\t\t\t<div class=\"vbo-horizsearch-showcalendar vbo-horizsearch-showcalendar-to\" id=\"vbo-horizsearch-checkout135\">\n\t\t\t\t\t<i class=\"far fa-calendar-alt\"><\/i>\t\t\t\t\t<span class=\"vbo-horizsearch-placeholder\">Select date<\/span>\n\t\t\t\t\t<div id=\"vbo-horizsearch-period135-to\" class=\"vbo-horizsearch-period-to\">\n\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-mday\"><\/span>\n\t\t\t\t\t\t<div class=\"vbo-horizsearch-period-dt\">\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-month\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-year\"><\/span>\n\t\t\t\t\t\t\t<span class=\"vbo-horizsearch-period-wday\"><\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"vbo-horizsearch-dpicker-cont vbo-horizsearch-dpicker-to\" id=\"checkoutdatemod135\" style=\"display: none;\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"checkoutdate\" id=\"inp-checkoutdatemod135\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkouth\" value=\"11\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"checkoutm\" value=\"0\"\/>\n\t\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearchtotnights\" id=\"vbjstotnightsmod135\"><\/div>\n\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearch-hum-guests-wrap\">\n\t\t\t\n\t\t\t<label onclick=\"jQuery('#vbmodhorsearch-hum-guests-count135').trigger('click');\">Guests<\/label>\n\n\t\t\t<div class=\"vbmodhorsearch-hum-guests-count\" id=\"vbmodhorsearch-hum-guests-count135\">\n\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-elem vbmodhorsearch-hum-guests-rooms\">\n\t\t\t\t\t<label>Rooms<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-rooms135\">1<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-elem vbmodhorsearch-hum-guests-adults\">\n\t\t\t\t\t<label>Adults<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-adults135\">2<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-elem vbmodhorsearch-hum-guests-children\">\n\t\t\t\t\t<label>Children<\/label>\n\t\t\t\t\t<span id=\"vbmodhorsearch-hum-guests-children135\">0<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"vbmodhorsearch-hum-guests-modifier\" style=\"display: none;\">\n\t\t\t\t<div class=\"vbmodhorsearch-hum-guests-modifier-inner\">\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class=\"vbmodhorsearchroomsel\">\n\t\t\t\t\t\t<label for=\"vbmodformroomsn135\">Rooms<\/label>\n\t\t\t\t\t\t<span class=\"vbhsrnselsp\"><select name=\"roomsnum\" id=\"vbmodformroomsn135\" onchange=\"vbSetRoomsAdultsMod135(this.value);\">\n<option value=\"1\">1<\/option>\n<option value=\"2\">2<\/option>\n<option value=\"3\">3<\/option>\n<option value=\"4\">4<\/option>\n<option value=\"5\">5<\/option>\n<\/select><\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"vbmodhorsearchroomdentr\">\n\t\t\t\t\t\t<div class=\"vbmodhorsearchroomdentrfirst\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"horsrnum\">Room 1<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"horsanumdiv\">\n\t\t\t\t\t\t\t\t<label class=\"horsanumlb\" for=\"vbo-mhs-adults-135\">Adults<\/label>\n\t\t\t\t\t\t\t\t<span class=\"horsanumsel\"><select name=\"adults[]\" id=\"vbo-mhs-adults-135\" onchange=\"vbCountTotGuests135();\"><option value=\"1\">1<\/option><option value=\"2\" selected=\"selected\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><\/select><\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"horscnumdiv\">\n\t\t\t\t\t\t\t\t<label class=\"horscnumlb\" for=\"vbo-mhs-children-135\">Children<\/label>\n\t\t\t\t\t\t\t\t<span class=\"horscnumsel\"><select name=\"children[]\" id=\"vbo-mhs-children-135\" onchange=\"vbCountTotGuests135();\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><\/select><\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"vbmoreroomscontmod\" id=\"vbmoreroomscontmod135\"><\/div>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\t\t\t<div class=\"vbmodhorsearchbookdiv\">\n\t\t\t<button type=\"submit\" id=\"vbo-mod-horsearch-sbt-135\" class=\"btn vbsearchinputmodhors vbo-pref-color-btn\">Search<\/button>\n\t\t<\/div>\n\n\t\t<script type=\"text\/javascript\">\n\t\t\tjQuery(function() {\n\t\t\t\tjQuery('button#vbo-mod-horsearch-sbt-135').on('click', function(e) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tjQuery(this).prop('disabled', true);\n\t\t\t\t\tjQuery(this).html('<i class=\"fas fa-circle-notch fa-spin fa-fw\"><\/i> ' + jQuery(this).text());\n\t\t\t\t\tjQuery(this).closest('form').submit();\n\t\t\t\t});\n\t\t\t});\n\t\t<\/script>\n\t\t<\/form>\n<\/div>\n\n<div class=\"vbo-modhs-js-helpers\" style=\"display: none;\">\n\t<div class=\"vbo-modhs-add-element-html\">\n\t\t<div class=\"vbmodhorsearchroomdentr\">\n\t\t\t<span class=\"horsrnum\">Room %d<\/span>\n\t\t\t<div class=\"horsanumdiv\">\n\t\t\t\t<label style=\"display: none;\" for=\"vbo-mhs-adults-135-hid\">Adults<\/label>\n\t\t\t\t<span class=\"horsanumsel\"><select name=\"adults[]\" id=\"vbo-mhs-adults-135-hid\" onchange=\"vbCountTotGuests135();\"><option value=\"1\">1<\/option><option value=\"2\" selected=\"selected\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><\/select><\/span>\n\t\t\t\t\t\t\t<div class=\"horscnumdiv\">\n\t\t\t\t\t<label style=\"display: none;\" for=\"vbo-mhs-children-135-hid\">Children<\/label>\n\t\t\t\t\t<span class=\"horscnumsel\"><select name=\"children[]\" id=\"vbo-mhs-children-135-hid\" onchange=\"vbCountTotGuests135();\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><\/select><\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n<script type=\"text\/javascript\">\nfunction vboModHorSearchSendRequest(elem, formId) {\n\tvar form_el = document.getElementById('vbo-mod-horsearch-form-' + formId);\n\tif (!form_el) {\n\t\tconsole.error('form not found', formId);\n\t\treturn false;\n\t}\n\n\t\/\/ valid all form required fields\n\tif (typeof form_el.checkValidity === 'function' && !form_el.checkValidity()) {\n\t\t\/\/ modern browsers will support this HTML5 method to check the form required fields\n\t\talert(Joomla.JText._('VBO_PLEASE_FILL_FIELDS'));\n\t\treturn false;\n\t}\n\n\t\/\/ make sure the dates have been selected\n\tvar checkin_date_el = jQuery(form_el).find('input[name=\"checkindate\"]');\n\tvar checkout_date_el = jQuery(form_el).find('input[name=\"checkoutdate\"]');\n\tif (!checkin_date_el.length || !checkin_date_el.val().length || !checkout_date_el.length || !checkout_date_el.val().length) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\t\/\/ make sure the dates are not identical to have a min stay of 1 night\n\t\/\/ as by default the datepicker could set equal dates to the hidden fields.\n\tif (checkin_date_el.val() == checkout_date_el.val()) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\n\t\/\/ disable the send request button to avoid double submissions\n\telem.disabled = true;\n\t\n\t\/\/ get form values\n\tvar qstring = jQuery(form_el).serialize();\n\n\t\/\/ make sure the task is not set\n\tqstring = qstring.replace('task=search', '');\n\tqstring = qstring.replace('view=search', '');\n\n\t\/\/ make the ajax request to the controller\n\tjQuery.ajax({\n\t\ttype: \"POST\",\n\t\turl: \"https:\/\/thevillageguesthouse.co.za\/wp-admin\/admin-ajax.php?task=submit_inquiry&Itemid=827&action=vikbooking&vik_ajax_client=site\",\n\t\tdata: qstring\n\t}).done(function(res) {\n\t\tif (!res.hasOwnProperty('status')) {\n\t\t\talert('Invalid response');\n\t\t\t\/\/ re-enable the button\n\t\t\telem.disabled = false;\n\t\t\treturn false;\n\t\t}\n\t\tif (!res.status) {\n\t\t\talert(res.error);\n\t\t\t\/\/ re-enable the button\n\t\t\telem.disabled = false;\n\t\t\treturn false;\n\t\t}\n\t\t\/\/ show success message by replacing all fields\n\t\tjQuery('.vbo-mod-horsearch-inquiry-fields').html('<p class=\"vbo-mod-horsearch-inquiry-mess-success\">' + Joomla.JText._('VBO_THANKS_INQ_SUBMITTED') + '<\/p>');\n\t\t\/\/ remove submit button container\n\t\tjQuery('.vbo-mod-horsearch-inquiry-submit').remove();\n\t}).fail(function(err) {\n\t\talert(err.responseText);\n\t\t\/\/ re-enable the button\n\t\telem.disabled = false;\n\t});\n}\n\nfunction vboModHorSearchBookOnline(formId) {\n\tvar form_el = document.getElementById('vbo-mod-horsearch-form-' + formId);\n\tif (!form_el) {\n\t\tconsole.error('form not found', formId);\n\t\treturn false;\n\t}\n\n\t\/\/ we need to let a button of type button trigger the submit of the \"check availability\"\n\t\/\/ or in case of inquiry, the browser will check the validity of the required fields.\n\n\t\/\/ we only check if the dates have been selected\n\tvar checkin_date_el = jQuery(form_el).find('input[name=\"checkindate\"]');\n\tvar checkout_date_el = jQuery(form_el).find('input[name=\"checkoutdate\"]');\n\tif (!checkin_date_el.length || !checkin_date_el.val().length || !checkout_date_el.length || !checkout_date_el.val().length) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\n\t\/\/ make sure the dates are not identical to have a min stay of 1 night\n\t\/\/ as by default the datepicker could set equal dates to the hidden fields.\n\tif (checkin_date_el.val() == checkout_date_el.val()) {\n\t\talert(Joomla.JText._('VBO_PLEASE_SEL_DATES'));\n\t\treturn false;\n\t}\n\n\t\/\/ simply submit the form to start the booking process\n\tform_el.submit();\n\n\treturn true;\n}\n\nfunction vbAddElementMod135() {\n\tvar ni = document.getElementById('vbmoreroomscontmod135');\n\tvar numi = document.getElementById('vbroomhelpermod135');\n\tvar num = (document.getElementById('vbroomhelpermod135').value -1) + 2;\n\tnumi.value = num;\n\tvar newdiv = document.createElement('div');\n\tvar divIdName = 'vb'+num+'racont';\n\tnewdiv.setAttribute('id', divIdName);\n\t\/\/ build HTML content to append to new element\n\tvar new_element_html = document.getElementsByClassName('vbo-modhs-add-element-html')[0].innerHTML;\n\t\/\/ set room number\n\tlet rp_rgx = new RegExp('%d', 'g');\n\tnew_element_html = new_element_html.replace(rp_rgx, num);\n\t\/\/ get rid of label tag (Web Accessibility)\n\tlet lbl_rgx = new RegExp(\/<label\\s.+>.+<\\\/label>\/, 'g');\n\tnew_element_html = new_element_html.replace(lbl_rgx, '');\n\t\/\/ get rid of any id attribute (Web Accessibility)\n\tlet idattr_rgx = new RegExp(\/id=\"[^\\\"]+\"\/, 'g');\n\tnew_element_html = new_element_html.replace(idattr_rgx, '');\n\t\/\/ set HTML content and append element\n\tnewdiv.innerHTML = new_element_html;\n\tni.appendChild(newdiv);\n}\n\nfunction vbSetRoomsAdultsMod135(totrooms) {\n\tvar actrooms = parseInt(document.getElementById('vbroomhelpermod135').value);\n\tvar torooms = parseInt(totrooms);\n\tvar difrooms;\n\tif (torooms > actrooms) {\n\t\tdifrooms = torooms - actrooms;\n\t\tfor (var ir = 1; ir <= difrooms; ir++) {\n\t\t\tvbAddElementMod135();\n\t\t}\n\t}\n\tif (torooms < actrooms) {\n\t\tfor (var ir = actrooms; ir > torooms; ir--) {\n\t\t\tif (ir > 1) {\n\t\t\t\tvar rmra = document.getElementById('vb' + ir + 'racont');\n\t\t\t\trmra.parentNode.removeChild(rmra);\n\t\t\t}\n\t\t}\n\t\tdocument.getElementById('vbroomhelpermod135').value = torooms;\n\t}\n\tif (document.getElementById('vbmodhorsearch-hum-guests-rooms135')) {\n\t\tdocument.getElementById('vbmodhorsearch-hum-guests-rooms135').innerText = torooms;\n\t\tvbCountTotGuests135();\n\t}\n}\n\nfunction vbCountTotGuests135() {\n\tif (!document.getElementById('vbmodhorsearch-hum-guests-rooms135')) {\n\t\treturn;\n\t}\n\tvar totadults = 0;\n\tvar totchildren = 0;\n\tjQuery('#vbmodhorsearch-hum-guests-count135').parent().find('select[name=\"adults[]\"]').each(function() {\n\t\tvar curel = jQuery(this).find('option:selected');\n\t\tif (curel.length) {\n\t\t\ttotadults += parseInt(curel.val());\n\t\t}\n\t});\n\tjQuery('#vbmodhorsearch-hum-guests-adults135').text(totadults);\n\tif (jQuery('#vbmodhorsearch-hum-guests-children135').length) {\n\t\tjQuery('#vbmodhorsearch-hum-guests-count135').parent().find('select[name=\"children[]\"]').each(function() {\n\t\t\tvar curel = jQuery(this).find('option:selected');\n\t\t\tif (curel.length) {\n\t\t\t\ttotchildren += parseInt(curel.val());\n\t\t\t}\n\t\t});\n\t\tjQuery('#vbmodhorsearch-hum-guests-children135').text(totchildren);\n\t}\n}\n\nfunction vbCalcNightsMod135() {\n\tvar vbcheckin = document.getElementById('inp-checkindatemod135').value;\n\tvar vbcheckout = document.getElementById('inp-checkoutdatemod135').value;\n\tif (vbcheckin.length > 0 && vbcheckout.length > 0) {\n\t\tvar vbcheckinp = vbcheckin.split(\"\/\");\n\t\tvar vbcheckoutp = vbcheckout.split(\"\/\");\n\t\t\tvar vbinmonth = parseInt(vbcheckinp[1]);\n\t\tvbinmonth = vbinmonth - 1;\n\t\tvar vbinday = parseInt(vbcheckinp[0], 10);\n\t\tvar vbcheckind = new Date(vbcheckinp[2], vbinmonth, vbinday);\n\t\tvar vboutmonth = parseInt(vbcheckoutp[1]);\n\t\tvboutmonth = vboutmonth - 1;\n\t\tvar vboutday = parseInt(vbcheckoutp[0], 10);\n\t\tvar vbcheckoutd = new Date(vbcheckoutp[2], vboutmonth, vboutday);\n\t\t\t\tvar vbdivider = 1000 * 60 * 60 * 24;\n\t\tvar vbints = vbcheckind.getTime();\n\t\tvar vboutts = vbcheckoutd.getTime();\n\t\tif (vboutts > vbints) {\n\t\t\t\/\/var vbnights = Math.ceil((vboutts - vbints) \/ (vbdivider));\n\t\t\tvar utc1 = Date.UTC(vbcheckind.getFullYear(), vbcheckind.getMonth(), vbcheckind.getDate());\n\t\t\tvar utc2 = Date.UTC(vbcheckoutd.getFullYear(), vbcheckoutd.getMonth(), vbcheckoutd.getDate());\n\t\t\tvar vbnights = Math.ceil((utc2 - utc1) \/ vbdivider);\n\t\t\tif (vbnights > 0) {\n\t\t\t\tdocument.getElementById('vbjstotnightsmod135').innerHTML = '<div class=\"vbo-horizsearch-numnights-inner\"><span>Nights:<\/span> <span>'+vbnights+'<\/span><\/div>';\n\t\t\t} else {\n\t\t\t\tdocument.getElementById('vbjstotnightsmod135').innerHTML = '';\n\t\t\t}\n\t\t} else {\n\t\t\tdocument.getElementById('vbjstotnightsmod135').innerHTML = '';\n\t\t}\n\t} else {\n\t\tdocument.getElementById('vbjstotnightsmod135').innerHTML = '';\n\t}\n}\n<\/script>\n\n<input type=\"hidden\" id=\"vbroomhelpermod135\" value=\"1\"\/>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Our Booking Terms &#038; Conditions Confirmation of Booking Your booking will be completed when we acknowledge receipt of your full amount payable. Prior to that the booking will only be regarded as provisional. Payment We accept Cash, Card &amp; EFT Cancellation by you We will need 2 days\u2019 notice for any cancelation where the full [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1184","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/pages\/1184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=1184"}],"version-history":[{"count":13,"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/pages\/1184\/revisions"}],"predecessor-version":[{"id":1306,"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/pages\/1184\/revisions\/1306"}],"wp:attachment":[{"href":"https:\/\/thevillageguesthouse.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=1184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}