function showDetails(dest,my,dur,cl){if(cl!=""){var cls=cl.split(',');var asize=cls.length;for(var i=0;i<asize;i++){var clId='cruiseVendorID'+cls[i];document.getElementById(clId).checked='checked';document.getElementById('allCruiseVendors').checked='';}}else{document.getElementById('allCruiseVendors').checked='checked';var clSize=document.form2.cruiseVendorName.length;for(var j=0;j<clSize;j++){document.form2.cruiseVendorName[j].checked=false;}}
var did='desId_'+dest;var myr='MY_'+my
var duration='dur_'+dur;document.getElementById(did).selected='selected';document.getElementById(myr).selected='selected';document.getElementById(duration).selected='selected';}
function stateChanged(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("topDeals").innerHTML=xmlHttp.responseText}}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function getTopDeals(str){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="topDeals.php"
url=url+"?destId="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}