<!--
function set_date() {
	var outday=document.afpForm.outday.selectedIndex;
	var outmonth=document.afpForm.outmonth.selectedIndex;
	var calendar=new Date();
	var advpurchase=10;
	calendar.setDate(calendar.getDate()+advpurchase);
	document.afpForm.outday.selectedIndex=calendar.getDate()-1;
	document.afpForm.outmonth.selectedIndex=calendar.getMonth();
	calendar.setDate(calendar.getDate()+7);
	document.afpForm.retday.selectedIndex=calendar.getDate()-1;
	document.afpForm.retmonth.selectedIndex=calendar.getMonth();
	document.afpForm.tocity.focus()
}
setTimeout ('set_date()',100);


function evalTrip() {
    if (document.afpForm.triptype.selectedIndex ==2) {
       window.location.href = "http://www.travelstoremaker.com/cgit/porch?agentid=voli&command=multiflights&do_multiprefs=yes&leg1fromcity="+document.afpForm.fromcity.value+"&leg1tocity="+document.afpForm.tocity.value;
    } else if (document.afpForm.triptype.selectedIndex ==0) {
	document.afpForm.retmonth.disabled = true;
	document.afpForm.retday.disabled = true;
	document.afpForm.rethour.disabled = true;
    } else if (document.afpForm.triptype.selectedIndex ==1) {
	document.afpForm.retmonth.disabled = false;
	document.afpForm.retday.disabled = false;
	document.afpForm.rethour.disabled = false;
    }
}

function progress() {
document.afpForm.action="http://www.travelstoremaker.com/cgit/runhttl";
document.afpForm.method="get";
document.afpForm.submit();
return false;
}
// -->