var formName="plan_trip";
var returnMonthFlag=true; var departMonthFlag=false;
useAJAX=true;
function showProduct(cat) {
document.getElementById('flightPanel').style.display='none';
document.getElementById('hotelPanel').style.display='none';
document.getElementById('carPanel').style.display='none';
panelToShow=cat+'Panel';
document.getElementById(panelToShow).style.display='block';
document.getElementById('flightTab').style.backgroundPosition='top left';
document.getElementById('hotelTab').style.backgroundPosition='top left';
document.getElementById('carTab').style.backgroundPosition='top left';
tabToHighlight=cat+'Tab';
document.getElementById(tabToHighlight).style.backgroundPosition='-87px 0px';
}
function checkDisableRet() {
with(document)
{
if (plan_trip.journeyType.checked==true)
{
plan_trip.retDate.disabled=true;
}
else
{
plan_trip.retDate.disabled=false;
}
}
}
var formName="plan_trip";
function functionalPageLoad()
{
if (document.nav_form.pageid.value=='city-breaks' || document.nav_form.pageid.value=='usa-canada-holidays') {
checkDisableRet();
}
}
function countryChanged(aform, changeCountryId, selected)
{
if (aform.depCountry.value != "")
{
aform.eId.value = changeCountryId;
if (aform.from.type != "text") {
aform.from.options[aform.from.options.length] = new Option("Please wait...","");
aform.from.options.selectedIndex=aform.from.options.length-1;
} else {
aform.from.value = "";
}
aform.submit();
if (aform.from.type == "text") {
aform.from.value = "Please wait...";
}
} else {
popUpScrolling('http://www.britishairways.com/travel/ba6.jsp/depcountryinfo/public/en_gb',470,240);	aform.depCountry.selectedIndex=selected;
}
}