prePopulateValues();bodyOnLoad();Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateOway",button:"deptDateOwayimgExact",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",date:phpdate,numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange1,onUpdate:filterDates1,vertical:true});Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateRtrip",button:"deptDateRtripimgExact",ifFormat:"%d/%m/%Y",date:phpdate,daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange1,onUpdate:filterDates1,vertical:true});function clearAllFlights(){var groupLength=document.getElementsByName('chkCarrierExact').length;for(var i=0;i<groupLength;i++){document.getElementsByName('chkCarrierExact')[i].checked=false;}}
function getAllFlights(){var groupLength=document.getElementsByName('chkCarrierExact').length;for(var i=0;i<groupLength;i++){document.getElementsByName('chkCarrierExact')[i].checked=true;}}
function moreInfoDiv(evt){evt=(evt)?evt:((window.event)?window.event:"");if(evt){var elem=(evt.target)?evt.target:evt.srcElement;var farerule=elem.getAttribute("farerule");var textvalue=" ";var x=evt.clientX+20;var y=evt.clientY+document.body.scrollTop+4;var divObj=document.getElementById("alertsdiv");divObj.style.display="block";divObj.style.position="absolute";divObj.style.left=x;divObj.style.top=y;divObj.innerHTML="<table width='300' class='results-popupdiv'><tr><td align='left' nowrap>varname</td><td valign='top'><a href='javascript:divclose(\"alertsdiv\")' style='font-size:12'>X</a></td></tr><tr><td colspan='2'></td></tr></table>";}}
function termsDiv(evt){evt=(evt)?evt:((window.event)?window.event:"");if(evt){var elem=(evt.target)?evt.target:evt.srcElement;var farerule=elem.getAttribute("farerule");var textvalue=" ";var x=evt.clientX+20;var y=evt.clientY+document.body.scrollTop+4;var divObj=document.getElementById("termsdiv");divObj.style.display="block";divObj.style.position="absolute";divObj.style.left=x;divObj.style.top=y;divObj.innerHTML="<table width='300' class='results-popupdiv'><tr><td align='left' nowrap>varname</td><td valign='top'><a href='javascript:divclose(\"termsdiv\")' style='font-size:12'>X</a></td></tr><tr><td colspan='2'></td></tr></table>";}}
function openViriSignPopup(){myWindow=window.open('http://www.verisign.com/ssl/index.html?sl=t31290225400000002&gclid=CM7q9J_wrYsCFQmJTAodG1sROg','myWindow','menubar=no,width=800,height=700,toolbar=no,directories=no,resizable=no,scrollbars=no,location=no,status=yes');}
function statuspp(){newwindow=window.open('http://www.flightstats.com/go/weblet?guid=c228b59beca1b817:1fb62a4f:11502c4a893:6b48&imageColor=black&language=English&weblet=status&action=display','flightstatus','scrollbars=yes,height=444,width=500');}
function goToURL(url){newWin=open(url);}
var deptShowCalendar=new Date();Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateOway",button:"deptDateOwayimgExact",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",date:phpdate,numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange1,onUpdate:filterDates1,vertical:true});Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtretnDateOway",button:"retnDateOwayimg",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",date:phpdate,numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange2,vertical:true});Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateRtripFlexi1",button:"deptDateRtripFlexiimg1",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange1,onUpdate:filterDates1,vertical:true});Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateMcity",button:"deptDateMcityimgExact",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",date:phpdate,numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange1,onUpdate:filterDatesMulti,vertical:true});var mcityPrevDep=new Date();function mcity1DateField(prevSector,inputSector,inputImg){if(document.getElementById(prevSector).value!="DD/MM/YYYY"){document.getElementById(inputSector).disabled=false;var input=document.getElementById(prevSector).value;var mcityPrevDep;if(input!="DD/MM/YYYY"){var dayfield=input.split("/")[0];var monthfield=input.split("/")[1];var yearfield=input.split("/")[2];mcityPrevDep=new Date(yearfield,monthfield-1,dayfield);mcityPrevDep.setDate(mcityPrevDep.getDate()+1);}
Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:inputSector,button:inputImg,ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",date:mcityPrevDep,numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange1,onUpdate:filterDatesMulti,vertical:true});}}
function filterDatesMulti(cal){var startDate=cal.date;startDate.setDate(startDate.getDate()+1);if(endDate==null){Zapatec.Calendar.setup({inputField:"arrivalDate",button:"button8b",ifFormat:"%Y-%m-%d ",timeFormat:"24",date:startDate,electric:false,showsTime:false,disableFunc:dateInRange2,onUpdate:filterDates2});}}
var deptShowCalendarFlexiRtrip=new Date();function returnDateFieldFlexiRtrip(){var input=document.getElementById("txtdeptDateRtripFlexi1").value;var deptShowCalendarFlexiRtrip;if(input!="DD/MM/YYYY"){var dayfield=input.split("/")[0];var monthfield=input.split("/")[1];var yearfield=input.split("/")[2];deptShowCalendarFlexiRtrip=new Date(yearfield,monthfield-1,dayfield);}
Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateRtripFlexi2",button:"deptDateRtripFlexiimg2",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,date:deptShowCalendarFlexiRtrip,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange2,vertical:true});}
var deptShowCalendarFlexiRtripRet=new Date();function returnDateFieldFlexiRtripRet(){var input=document.getElementById("txtdeptDateRtripFlexi1").value;var deptShowCalendarFlexiRtripRet;if(input!="DD/MM/YYYY"){var dayfield=input.split("/")[0];var monthfield=input.split("/")[1];var yearfield=input.split("/")[2];deptShowCalendarFlexiRtripRet=new Date(yearfield,monthfield-1,dayfield);}
Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtretnDateRtripFlexi1",button:"retnDateRtripFlexiimg1",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,date:deptShowCalendarFlexiRtripRet,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange3,onUpdate:filterDates3,vertical:true});}
var deptShowCalendarFlexiRtripRetTo=new Date();function returnDateFieldFlexiRtripRetTo(){var deptShowCalendarFlexiRtripRetTo;var input=document.getElementById("txtretnDateRtripFlexi1").value;if(input!="DD/MM/YYYY"){var dayfield=input.split("/")[0];var monthfield=input.split("/")[1];var yearfield=input.split("/")[2];deptShowCalendarFlexiRtripRetTo=new Date(yearfield,monthfield-1,dayfield);}
Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtretnDateRtripFlexi2",button:"retnDateRtripFlexiimg2",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,date:deptShowCalendarFlexiRtripRetTo,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange4,vertical:true});}
Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateOwayFlexi1",button:"deptDateOwayFlexiimg1",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange1,onUpdate:filterDates1,vertical:true});var deptShowCalendarFlexiOneWay=new Date();function returnDateFieldFlexiOneWay(){var input=document.getElementById("txtdeptDateOwayFlexi1").value;var deptShowCalendarFlexiOneWay;if(input!="DD/MM/YYYY"){var dayfield=input.split("/")[0];var monthfield=input.split("/")[1];var yearfield=input.split("/")[2];deptShowCalendarFlexiOneWay=new Date(yearfield,monthfield-1,dayfield);}
Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"txtdeptDateOwayFlexi2",button:"deptDateOwayFlexiimg2",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,date:deptShowCalendarFlexiOneWay,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange2,vertical:true});}
Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"retnDateRtripFlexi1",button:"retnDateRtripFlexiimg12",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange2,onUpdate:filterDates2,vertical:true});Zapatec.Calendar.setup({showOthers:true,step:1,electric:false,inputField:"retnDateRtripFlexi2",button:"retnDateRtripFlexiimg2",ifFormat:"%d/%m/%Y",daFormat:"%d/%m/%Y",numberMonths:2,displayArea:null,flat:null,multiple:null,numberMonths:2,monthsInRow:2,dateStatusFunc:dateInRange2,onUpdate:filterDates2,vertical:true});function searchoptnfn(){document.getElementById("searchoptn").style.display="";}
function divclose(name){var divObj;divObj=document.getElementById(name);divObj.style.display="none";}
function flexiSearch(evt){evt=(evt)?evt:((window.event)?window.event:"")
if(evt){var elem=(evt.target)?evt.target:evt.srcElement;var x=evt.clientX-30;var y=evt.clientY+document.body.scrollTop+4;var divObj=document.getElementById("flexiSearch");divObj.style.display="block";divObj.style.position="absolute";divObj.style.left=x;divObj.style.top=y;divObj.innerHTML="<table width='300' height='25' class='results-popupdiv' CELLSPACING='0'><tr STYLE='color:white; font-weight:'bold' bgcolor='#0099FF'><td align='left' height='20' style='padding-left: 5px; font-size: 12px;'><font color='white'><b>What is Fare Calendar?</b></font></td><td align='right' STYLE='color:white;font-weight:bold;bgcolor:#0099FF'><a href='javascript:divclose(\"flexiSearch\")'  title='close' STYLE='color:white;font-weight:bold;font-size:12px;padding-right:5px'>X</a></td></tr><tr><td align='left' colspan='2' style='padding: 5px;'>Fare Calendar gives you the 'flexibility' to search for the lowest airfares to and from your destination within 60 days from the current date.<br><br></td></tr></table>";}}
var varAddClick=0;var flexiflag=false;function setFlag(){flexiflag=false;}