Privacy Policy

Home / Privacy Policy
Privacy Policy
'; ni.appendChild(newdiv); } function vbSetRoomsAdultsMod162(totrooms) { var actrooms = parseInt(document.getElementById('vbroomhelpermod162').value); var torooms = parseInt(totrooms); var difrooms; if (torooms > actrooms) { difrooms = torooms - actrooms; for (var ir = 1; ir torooms; ir--) { if (ir > 1) { var rmra = document.getElementById('vb' + ir + 'racont'); rmra.parentNode.removeChild(rmra); } } document.getElementById('vbroomhelpermod162').value = torooms; } if (document.getElementById('vbmodhorsearch-hum-guests-rooms162')) { document.getElementById('vbmodhorsearch-hum-guests-rooms162').innerText = torooms; vbCountTotGuests162(); } } function vbCountTotGuests162() { if (!document.getElementById('vbmodhorsearch-hum-guests-rooms162')) { return; } var totadults = 0; var totchildren = 0; jQuery('#vbmodhorsearch-hum-guests-count162').parent().find('select[name="adults[]"]').each(function() { var curel = jQuery(this).find('option:selected'); if (curel.length) { totadults += parseInt(curel.val()); } }); jQuery('#vbmodhorsearch-hum-guests-adults162').text(totadults); if (jQuery('#vbmodhorsearch-hum-guests-children162').length) { jQuery('#vbmodhorsearch-hum-guests-count162').parent().find('select[name="children[]"]').each(function() { var curel = jQuery(this).find('option:selected'); if (curel.length) { totchildren += parseInt(curel.val()); } }); jQuery('#vbmodhorsearch-hum-guests-children162').text(totchildren); } } function vbCalcNightsMod162() { var vbcheckin = document.getElementById('checkindatemod162').value; var vbcheckout = document.getElementById('checkoutdatemod162').value; if (vbcheckin.length > 0 && vbcheckout.length > 0) { var vbcheckinp = vbcheckin.split("/"); var vbcheckoutp = vbcheckout.split("/"); var vbinmonth = parseInt(vbcheckinp[1]); vbinmonth = vbinmonth - 1; var vbinday = parseInt(vbcheckinp[0], 10); var vbcheckind = new Date(vbcheckinp[2], vbinmonth, vbinday); var vboutmonth = parseInt(vbcheckoutp[1]); vboutmonth = vboutmonth - 1; var vboutday = parseInt(vbcheckoutp[0], 10); var vbcheckoutd = new Date(vbcheckoutp[2], vboutmonth, vboutday); var vbdivider = 1000 * 60 * 60 * 24; var vbints = vbcheckind.getTime(); var vboutts = vbcheckoutd.getTime(); if (vboutts > vbints) { //var vbnights = Math.ceil((vboutts - vbints) / (vbdivider)); var utc1 = Date.UTC(vbcheckind.getFullYear(), vbcheckind.getMonth(), vbcheckind.getDate()); var utc2 = Date.UTC(vbcheckoutd.getFullYear(), vbcheckoutd.getMonth(), vbcheckoutd.getDate()); var vbnights = Math.ceil((utc2 - utc1) / vbdivider); if (vbnights > 0) { document.getElementById('vbjstotnightsmod162').innerHTML = '
Notti: '+vbnights+'
'; } else { document.getElementById('vbjstotnightsmod162').innerHTML = ''; } } else { document.getElementById('vbjstotnightsmod162').innerHTML = ''; } } else { document.getElementById('vbjstotnightsmod162').innerHTML = ''; } }