<!-- ITAProgramSearch.js starts here //-->
<!-- 
//
// Programmer	: Sue Potocnik
// Module		: ITAProgramSearch.js
//
// Purpose		: Custom processing for the ITA search
//
//		NOTE: the script currently only tested with IE 6.0
//

//Point to Javascript function (WindowOnLoad) for Window.onload event
window.onload=WindowOnLoad

function WindowOnLoad()
{
	// Set focus based on search type 
	var stage = document.all("TextBox_SearchType").value;

	switch(stage)
	{
	case "Location":
		Form1.DropDownList_City.focus();
		break;
	case "TrainingProgram":
		Form1.TextBox_ProgramKeyword.focus();
		break;
	case "School":
		Form1.DropDownList_School.focus();
		break;
	default:
	}
}


function PopulateCityLabel() 
{
	document.all("Label_SelectedCity").innerHTML = document.Form1("DropDownList_City").value;
}


function PopulateSchoolLabel() 
{
	document.all("Label_SelectedSchool").innerHTML = document.Form1("DropDownList_School").value;
}
 
//-->
<!-- ITAProgramSearch.js ends here. //-->
