/* Functions to display/hide the "Please specify"
 * beneath each select box, that is displayed
 * when a user selects "Other" */

/* @param selected_option */
function toggle_other (selected_option, element_id_to_hide) {
	if (selected_option != null) {
		if (selected_option.value =='Other') {
			my_tr = document.getElementById(element_id_to_hide);
			my_tr.className = 'shown';
		} else {
			my_tr = document.getElementById(element_id_to_hide);
			my_tr.className = 'hidden';
		}
	} else {
		my_tr = document.getElementById(element_id_to_hide);
		my_tr.className = 'hidden';
	}
};

/* */
function hide_other () {
	;
};
function toggle_all_others() {
    toggle_other(document.form1.background.options[document.form1.background.options.selectedIndex], 'background_tr');
    toggle_other(document.form1.focus.options[document.form1.focus.options.selectedIndex], 'focus_tr');
    toggle_other(document.form1.specialty.options[document.form1.specialty.options.selectedIndex], 'specialty_tr');
    toggle_other(document.form1.status.options[document.form1.status.options.selectedIndex], 'status_tr');
};
