Welcome Back !
Please log in to make, view, cancel or modify your reservations and to make online purchases.
Login
Login to make, view and cancel reservations.
You must have a pass to reserve a campsite.
Would you like to add a pass?
' });
}
}
function ClearMainControl() {
$('#autocomplete').val("");
$("#AdvanceMainSearch_txtArrivalDate").val($.datepicker.formatDate("mm/dd/yy", new Date()));
$("#hdnArrivalDate").val($.datepicker.formatDate("mm/dd/yy", new Date()));
$('#ddlNights').val(0);
}
function SetDateinHiddenfield() {
//
$('#hdnArrivalDate').val($("#AdvanceMainSearch_txtArrivalDate").val());
return;
var dt = $("#AdvanceMainSearch_txtArrivalDate").val().split('/');
$('#hdnArrivalDate').val(dt[0] + "/" + dt[1] + "/" + dt[2]);
}
function fnGetPlaceName(AutocompleteControl) {
var urlname = '';
if (IsMobileBrowser.toLowerCase() == "true") {
urlname = baseurlmain + '/Facilities/AdvanceSearchm.aspx/GetCityPlacename';
} else {
urlname = baseurlmain + '/Facilities/AdvanceSearch.aspx/GetCityPlacename';
}
AutocompleteControl.autocomplete({
source: function (request, response) {
$("#hdnLat").val('');
$("#hdnLag").val('');
var param = { name: AutocompleteControl.val() };
$.ajax({
url: urlname,
data: JSON.stringify(param),
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
dataFilter: function (data) { return data; },
success: function (data) {
response($.map(data.d, function (item) {
if (item.Place_alias == "") {
return {
label: item.Name,//+ "," + item.EntityType,
value: item.Latitude + "," + item.Longitude,
logo: item.EntityType,
CityPark: item.CityParkId,
ParkSize: item.ParkSize,
Placeid: item.PlaceId,
PlaceAlias: item.Place_alias,
placeName: item.Name
}
}
if (item.Place_alias != "") {
return {
label: item.Place_alias,//+ "," + item.EntityType,
value: item.Latitude + "," + item.Longitude,
logo: item.EntityType,
CityPark: item.CityParkId,
ParkSize: item.ParkSize,
Placeid: item.PlaceId,
PlaceAlias: item.Place_alias,
placeName: item.Name
}
}
}));
if (data.d.length == 0) {
$("#hdnLat").val("");
$("#hdnLag").val("");
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus);
}
});
},
search: function (event, ui) {
$("#hdnLat").val('');
$("#hdnLag").val('');
},
select: function (e, ui) {
ChnageDragandZoom = false;
e.preventDefault();
boolAutosearchvalues = true;
$("#hdnsearchplaceid").val(ui.item.Placeid);
$("#hdnparksize").val(ui.item.ParkSize);
parkSize = ui.item.ParkSize;
$("#hdndefaultLat").val(ui.item.value.split(',')[0]);
$("#hdndefaultLag").val(ui.item.value.split(',')[1]);
$("#hdnLat").val(ui.item.value.split(',')[0]);
$("#hdnLag").val(ui.item.value.split(',')[1]);
$("#hdnAutoPlaceId").val(ui.item.CityPark);
$("#autocomplete2").val(ui.item.placeName);
$("#autocomplete1").val(ui.item.label);
$("#autocomplete2").val(ui.item.label);
$("#mainContent_hdnSearchtype").val(ui.item.logo);
$("#hdnSearchType").val(ui.item.logo);
MapboxPlaceid = ui.item.Placeid;
if (ui.item.placeName != "" && ui.item.PlaceAlias == "") {
$("#hdnsearchPlaceAlias").val(0);
}
else {
$("#hdnsearchPlaceAlias").val(1);
}
if ($("#hdnsearchPlaceAlias").val().toString() == "1") {
$("#hdnIsAutocompleteFillHome").val(1);
$("#divPlaceinformation").css("z-index", 1300);
$("#divPlaceinformation .modal-body").html('The place you selected is an Alias for ' + ui.item.placeName + ',' + ' , click on OK button to continue. ');
$("#divPlaceinformation .modal-title").html("Information");
$('#divPlaceinformation').modal();
return false;
}
//$("#autocomplete2").val()
// $("#btn_search").click();
Allevent();
},
response: function (event, ui) {
if (ui.content[0] == undefined) {
$("#hdnLat").val('');
$("#hdnLag").val('');
} else {
ChnageDragandZoom = false;
$("#hdnLat").val(ui.content[0].value.split(',')[0]);
$("#hdnLag").val(ui.content[0].value.split(',')[1]);
$("#hdncustomautocomplete").val(ui.content[0].label);
$("#autocomplete1").val($("#autocomplete2").val());
}
},
focus: function (event, ui) {
$("#hdnLat").val(ui.item.value.split(',')[0]);
$("#hdnLag").val(ui.item.value.split(',')[1]);
this.value = ui.item.label;
$("#hdncustomautocomplete").val(this.value);
$("#autocomplete2").val(ui.item.placeName);
event.preventDefault(); // Prevent the default focus behavior.
},
minLength: 2
}).data("ui-autocomplete")._renderItem = function (ul, item) {
if (item.PlaceAlias != "" || item.PlaceAlias == undefined) {
return $('
This reflects the system time which determines when inventory becomes available.