var dico = new Array(); if(lang == "en"){ dico["mustChooseDate"] = "You must select a departure date"; dico["search"] = "Search"; } else{ dico["mustChooseDate"] = "Vous devez saisir une date de départ"; dico["search"] = "Chercher"; } const params = new URLSearchParams(window.location.search); if(params.has("agency")){ var agency = params.get("agency"); if(params.has("agentid")){ var agentid = params.get("agentid"); } else{ var agentid = 0; } jQuery(".thumbnail_content").remove(); load_thumbnail(agency, agentid, ""); } jQuery("body").on("click", ".dp-search", function(el){ el.preventDefault(); var parentDiv = jQuery(this).parents(".search-data"); var cruiseUrl = "https://croisieresendirect.com/"; if(parentDiv.data("searchtype") == "cruise"){ var eCruise = true; var eSirev = false; } else{ var eCruise = false; var eSirev = true; } var date = parentDiv.find(".datetimepicker").find("input").val(); if((date == "") && (parentDiv.find(".datetimepicker").length > 0)){ var inHtml = ""; inHtml += "
"+dico["mustChooseDate"]+"
"+dico["mustChooseDate"]+"