function Load_Lodging_Availability() { ajaxpage_Sync("solo_all_lodging_availability_mobile4f42.html?Client_ID=CL1730&promo_code=" + document.getElementById("Promo_Code").value+ "&res_page=reservations_mobile.asp","AvailabilityDiv");
$(document).ajaxComplete(function() { $('.simple-ajax-popup').magnificPopup({ type: 'ajax' }); });
$('.flexslider').flexslider({ animation: "slide", animationLoop: false, slideshow: false, controlNav: false,
}); //tb_init('a.thickbox, area.thickbox, input.thickbox'); }
function Refresh_Cart(res_Client_ID) { var ajaxurl = "Check_Lodging_Availability1f37.html?res_Client_ID="+res_Client_ID; xmlHttp=GetXmlHttpObject(); xmlHttp.open("site_map.html",ajaxurl,false); xmlHttp.send(null); var Available = xmlHttp.responseText; var aControls = document.Res_Cart1.elements; var Promo_Code;
for (var i=0; i < aControls.length; i++) { if (aControls[i].name == "Promo_Code") Promo_Code = aControls[i].value; } if ( Available == "1" ) { var ajaxurl = "Update_Reservation_Cartc141.html?promo_code="+Promo_Code; xmlHttp.open("site_map.html",ajaxurl,false); xmlHttp.send(null); var Cart = xmlHttp.responseText; document.getElementById('ResultDiv').innerHTML = Cart; document.Res_Cart1.action = "https://ss2.info-shield.com/secure_reservations/Solo_10x_all_transaction2.asp"; document.Res_Cart1.Res_Client_ID.value = res_Client_ID; document.Res_Cart1.submit(); } else { alert("Some of the items in your cart are no more available. Please re-check your selections."); } } function Update_Item_Quantity(Detail_ID, Item_ID, Arrival_Date, Departure_Date, Client_ID) { var aControls = document.Res_Cart1.elements; var Promo_Code; var Item_Quantity; for (var i=0; i < aControls.length; i++) { if (aControls[i].name == "Promo_Code") Promo_Code = aControls[i].value; if (aControls[i].name == "Item_Quantity_"+Detail_ID) { if (IsNumeric(aControls[i].value) == false && aControls[i].value != '') alert("Please enter a numeric value for quantity"); else { Item_Quantity = parseInt(aControls[i].value); var ajaxurl = "Update_Reservation_Cart0672.html?Item_ID="+Item_ID+"&Arrival_Date="+Arrival_Date+"&Departure_Date="+Departure_Date+"&Client_ID="+Client_ID+"&Item_Quantity="+Item_Quantity+"&Add_Item=1&promo_code="+Promo_Code; ajaxpage(ajaxurl,'ResultDiv'); } } } } function Update_Item_Adult_Count(Detail_ID) { var aControls = document.Res_Cart1.elements; var Promo_Code; for (var i=0; i < aControls.length; i++) { if (aControls[i].name == "Item_Adult_Count_"+Detail_ID) var Item_Adult_Count = parseInt(aControls[i].value); if (aControls[i].name == "Promo_Code") Promo_Code = aControls[i].value; } var ajaxurl = "Update_Reservation_Cartab4a.html?Detail_ID="+Detail_ID+"&Item_Adult_Count="+Item_Adult_Count+"&Remove_Item=0&promo_code="+Promo_Code; ajaxpage(ajaxurl,'ResultDiv'); } function Update_Item_Child_Count(Detail_ID) { var aControls = document.Res_Cart1.elements; var Promo_Code; for (var i=0; i < aControls.length; i++) { if (aControls[i].name == "Item_Child_Count_"+Detail_ID) var Item_Child_Count = parseInt(aControls[i].value); if (aControls[i].name == "Promo_Code") Promo_Code = aControls[i].value; } var ajaxurl = "Update_Reservation_Cartab4a.html?Detail_ID="+Detail_ID+"&Item_Child_Count="+Item_Child_Count+"&Remove_Item=0&promo_code="+Promo_Code; ajaxpage(ajaxurl,'ResultDiv'); } function Remove_Item1(Detail_ID) { var aControls = document.Res_Cart1.elements; var Promo_Code; for (var i=0; i < aControls.length; i++) { if (aControls[i].name == "Promo_Code") Promo_Code = aControls[i].value; } var ajaxurl = "Update_Reservation_Cartab4a.html?Detail_ID="+Detail_ID+"&Remove_Item=1&promo_code="+Promo_Code; ajaxCart(ajaxurl,'ResultDiv'); }
function IsNumeric(strString) { var strValidChars = "0123456789.-"; var strChar; var blnResult = true;
if (strString.length == 0) return false;
// test strString consists of valid characters listed above for (i = 0; i < strString.length && blnResult == true; i++) { strChar = strString.charAt(i); if (strValidChars.indexOf(strChar) == -1) { blnResult = false; } } return blnResult; } function Get_Rates() { if(validate() != true) document.callingform.submit(); } function validate() { var x = new Date(document.callingform.startdate.value); var y = new Date(document.callingform.enddate.value); var p = new Date(document.callingform.Present_Date.value) if (document.callingform.startdate.value == "") { return ! alert("Please enter an arrival date.") } if (x < p) { return ! alert("Arrival date can not be less than today.") } if (document.callingform.enddate.value == "") { return ! alert("Please enter a departure date. If You are departing the same day, select the Next day") } if (x > y) { return ! alert("Departure date cannot be less than arrival date") } if (document.callingform.startdate.value == document.callingform.enddate.value) { return ! alert("Departure date cannot be same arrival date") }
if (document.callingform.Aff_Client_ID.value == "CL273") { if (document.callingform.Ext_Aff_Code.value !="") { document.callingform.action="site_map.html"; } else { document.callingform.action="reservations.html"; } }
}
function validate_form1()
{
var string
var empty = true
var aInput = document.body.getElementsByTagName("INPUT");
for(i=0;i