function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
  
function jumptolink(what){
var selectedopt=what.options[what.selectedIndex]
if (document.getElementById && selectedopt.getAttribute("target")==("newwin"))
window.open(selectedopt.value)
else
window.location=selectedopt.value
}

function jumptolinknw(what){
  var selectedopt=what.options[what.selectedIndex];
  window.open(selectedopt.value);
}

function displaydesc(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

var returnMonthFlag=true;
var departMonthFlag=false;

function setMonth(theOB){
var myForm=window.document.plan_trip;
var myOBList=myForm.depMon;
var myIBList=myForm.retMon;

if(myOBList.selectedIndex>myIBList.selectedIndex) {
if(theOB) {
myIBList.selectedIndex=myOBList.selectedIndex;
} else { myOBList.selectedIndex=myIBList.selectedIndex;
}
}
}

function openPopup(URL,width,height){
	window.name = "BA_Main";
	var toolbar = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + width + ",height=" + height;
	var myPopup = window.open(URL,"BA_Popup",toolbar);
	myPopup.focus();

}


	function setDrops() {
	var now = new Date();
	var depdate = new Date(now.getYear(),now.getMonth(),now.getDate() + 7);
	var day = depdate.getDate();
	var month = depdate.getMonth();
	var year = depdate.getYear();
	var retdate = new Date(now.getYear(),now.getMonth(),now.getDate() + 14);
	var rday = retdate.getDate();
	var rmonth = retdate.getMonth();
	var ryear = retdate.getYear();

	document.plan_trip.depDay.selectedIndex = day-1;
	document.plan_trip.depMon.selectedIndex = month;
	document.plan_trip.retDay.selectedIndex = rday-1;
	document.plan_trip.retMon.selectedIndex = rmonth;
	}