
/* show a faculty members entry */
function showFaculty(){
	box = document.getElementById('faculty_select_js');
	selected_index = box.selectedIndex;
	selected_name = box.options[selected_index].value;
	if(selected_name != "null"){
		my_url = "faculty.shtml#" + selected_name;
		location.href = my_url;
	}
}


/* show a fellows entry */
function showFellows(){
	box = document.getElementById('fellows_select_js');
	selected_index = box.selectedIndex;
	selected_name = box.options[selected_index].value;
	if(selected_name != "null"){
		my_url = "fellows.shtml#" + selected_name;
		location.href = my_url;
	}
}


/* show an associates entry */
function showAssociates(){
	box = document.getElementById('associates_select_js');
	selected_index = box.selectedIndex;
	selected_name = box.options[selected_index].value;
	if(selected_name != "null"){
		my_url = "associates.shtml#" + selected_name;
		location.href = my_url;
	}
}


/* show an interns entry */
function showInterns(){
	box = document.getElementById('interns_select_js');
	selected_index = box.selectedIndex;
	selected_name = box.options[selected_index].value;
	if(selected_name != "null"){
		my_url = "interns.shtml#" + selected_name;
		location.href = my_url;
	}
}


/* resets the select boxes to display initial "select ..." text */
function resetSelectBoxes(){
	box1 = document.getElementById('faculty_select_js');
	box2 = document.getElementById('fellows_select_js');
	box3 = document.getElementById('associates_select_js');
	box4 = document.getElementById('interns_select_js');
	box1.selectedIndex = 0;
	box2.selectedIndex = 0;
	box3.selectedIndex = 0;
	box4.selectedIndex = 0;
}


/* link processing function */
function processLink(url){
	document.location.href = url;
}

