}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
-
+ start = "arrival_date=" + y + '-' + m + '-' + d + '&';
if (requiredDate < $('#arriveOff').attr("min")) {
minDays = $('#arriveOff').attr("min");
$("#arriveOff").val(minDays);
m = '0' + m;
}
y = currentDate.getFullYear();
- start = "arrival_date=" + y + '-' + m + '-' + d + '&';
requiredDate = y + '-' + m + '-' + d;
arrival = d + '-' + m + '-' + y;
arrival.toString();
departure = parseInt(departure, 10);
$("#nightsOff").val(departure - arrival);
stay = 'stay_nights=' + (departure - arrival) + '&';
- alert(stay);
if ($("#departOff").val() < $('#departOff').attr("min")) {
// $("#dateOff2").val(requiredDate);
}
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids);
} else if ($('#propertyNameOff option:selected').text() === "Stafford's Perry Inn") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids);
- } else {
+ } else if ($('#propertyName option:selected').text() === "Property") {
+ alert("Please Select a Property");
}
});
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids);
} else if ($('#propertyName option:selected').text() === "Stafford's Perry Inn") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids);
- } else {
-
+ } else if ($('#propertyName option:selected').text() === "Property") {
+ alert("Please Select a Property");
}
});
}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
-
+ start = "arrival_date=" + y + '-' + m + '-' + d + '&';
if (requiredDate < $('#arriveOff').attr("min")) {
minDays = $('#arriveOff').attr("min");
$("#arriveOff").val(minDays);
m = '0' + m;
}
y = currentDate.getFullYear();
- start = "arrival_date=" + y + '-' + m + '-' + d + '&';
requiredDate = y + '-' + m + '-' + d;
arrival = d + '-' + m + '-' + y;
arrival.toString();
departure = parseInt(departure, 10);
$("#nightsOff").val(departure - arrival);
stay = 'stay_nights=' + (departure - arrival) + '&';
- alert(stay);
if ($("#departOff").val() < $('#departOff').attr("min")) {
// $("#dateOff2").val(requiredDate);
}
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids);
} else if ($('#propertyNameOff option:selected').text() === "Stafford's Perry Inn") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids);
- } else {
+ } else if ($('#propertyName option:selected').text() === "Property") {
+ alert("Please Select a Property");
}
});
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids);
} else if ($('#propertyName option:selected').text() === "Stafford's Perry Inn") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids);
- } else {
-
+ } else if ($('#propertyName option:selected').text() === "Property") {
+ alert("Please Select a Property");
}
});