function setOptions(country) { 
	// location of target select box
	var territory = document.edit_form.territory
	// remove all options
	territory.options.length = 0; 
	territory.options[territory.options.length] = new Option("All Territories",'0');
	// rollover location array
	for (i=0; i<territories_array.length; i++) {
		// order 0-code, 1-territory_id, 2-territory
		if (territories_array[i][0] == country) {
			// show this option
			// must be ,true,true for selected option
			territory.options[territory.options.length] = new Option(territories_array[i][2],territories_array[i][1]);
		}
	}
}