function SetHiddenInputs() {
	document.tmpform.TermsIndex.value = document.tmpform.TermsID.selectedIndex
	document.tmpform.TermsName.value = document.tmpform.TermsID.value        
}

function SetFormAction(act_no) {
	if (act_no == 1) 
		{document.tmpform.action = "TMPTermDate.asp" // Dates
		document.tmpform.method="get"}
	else if (act_no == 2) 
		{document.tmpform.action = "TmpTimeSched.asp" // Full Schedule
		document.tmpform.method="get"}
	else if (act_no == 3) 
		{document.tmpform.action = "http://www20.kellogg.northwestern.edu/dpco/catalog.asp";
		document.tmpform.method="get"} // By Department
	else if (act_no == 4) 
		{document.tmpform.action = "TmpDaySel.asp";
		document.tmpform.method="get"} // By Day
}

// This is a convenience function.
function SetAll(act_no) {
	SetHiddenInputs()
	SetFormAction(act_no)
}
