
function exe_oneway(){
	
	F1dep = document.frm.F1Departure.selectedIndex;
	F1des = document.frm.F1Destination.selectedIndex;
	F1mon = document.frm.F1Month.selectedIndex;
	F1day = document.frm.F1Day.selectedIndex;
	F1time = document.frm.F1Time.selectedIndex;
	
	document.frm.F2Departure.selectedIndex = 0;
	document.frm.F2Destination.selectedIndex = 0;
	return;
}

function exe_round(){

	var F1dep;
	var F1des;
	var F1mon;
	var F1day;
	var F1time;
	var tmp_mon;
	var tmp_day;
	
	F1dep = document.frm.F1Departure.selectedIndex;
	F1des = document.frm.F1Destination.selectedIndex;
	F1mon = document.frm.F1Month.selectedIndex;
	F1day = document.frm.F1Day.selectedIndex;
	F1time = document.frm.F1Time.selectedIndex;
	F2Month = document.frm.F2Month.selectedIndex;
	F2Day = document.frm.F2Day.selectedIndex;
	
	document.frm.F2Departure.selectedIndex = F1des;
	document.frm.F2Destination.selectedIndex = F1dep;
	
	if (F1day == 30){
		tmp_mon = F1mon + 1;
		tmp_day = 0;
	}else{
		tmp_mon = F1mon;
		tmp_day = F1day + 1;
	}
	
	if (F2Month || F2Day){
		tmp_mon = F2Month;
		tmp_day = F2Day;
	}
	
	document.frm.F2Month.selectedIndex = tmp_mon;
	document.frm.F2Day.selectedIndex = tmp_day;
	
	return;
}


function init_box(oneway,round){
	var mDate;
	
	mDateObj = new Date();
	mDate = mDateObj.getDate();
	
	document.frm.F1Day.selectedIndex = mDate;
	document.frm.F2Day.selectedIndex = mDate+1;
}
