(function() {
	$$("form.searchform").each(function(form) {
		form.observe("submit", function() {
			var d = this.down("input[name=department]");
			var it = this.down("select[name=instruction_type]");
			d.value = it.options[it.selectedIndex].text.split(" ")[0];
		}.bind(form));
	});
}).onLoad();

