//initializes and updates select boxes
function initSelectBoxesSector(primarySelectBox,primarySelectDefault,secondarySelectBox,secondarySelectDefault){
	// Populate the primary select box
	populateSelectBox(primarySelectBox,iSector_value,iSector_id);
	// Set the default value for the primary select box
	var primaryDefaultArray = primarySelectDefault.split(",");
	setSelectBoxDefault(primarySelectBox,primaryDefaultArray);
	
	if(secondarySelectBox != '')
	{
		// Populate the secondary select box
		var primarySelectedIndex = primarySelectBox.selectedIndex;
		populateSelectBox(secondarySelectBox,iSubSector_value[primarySelectedIndex],iSubSector_id[primarySelectedIndex]);
		//Set the default value(s) for the secondary select box
		var secondaryDefaultArray = secondarySelectDefault.split(",");
		setSelectBoxDefault(secondarySelectBox,secondaryDefaultArray);
	}
}
function updateSelectBoxSector(secondarySelectBoxObj,primaryIndex){
	populateSelectBox(secondarySelectBoxObj,iSubSector_value[primaryIndex],iSubSector_id[primaryIndex]);
}
