function removecombo(combo) {
	for (;combo.options.length > 1;) {	
		combo.options[1] = null;
	}	
}

function filldata(form_name) {
	// Build Vehicle Manufacturer Combo box.
	var cur_div = form_name.form_vm.value;
	var mdl_start_pos = 0;	
	var array_counter = 1;

	// Loop through the Models for the selected Division
	for (i=0; i < div_cd_array.length; i++) {
		// Locate Model Starting Position within the Division Array.
		if ( div_cd_array[i] == cur_div ){
			mdl_start_pos = i;	
			break;
		}
	}
	removecombo(form_name.form_mdl);			
	// If Manufacturer is not selected, return to main module.
	if ( form_name.form_vm.value == 'ALL' ){
		form_name.form_mdl.disabled = true;
		return true;
	}

	form_name.form_mdl.disabled = false; 
	var prev_mdl = '';
	// Loop through the Models for the selected Division
	for (i=mdl_start_pos; i < mdl_cd_array.length; i++) {
		// Only include Models that are associated to the selected Division.
		if ( div_cd_array[i] != cur_div ){
		    break;
		}
		// Exclude Model Code of 'ALL'.  It is already included
		//	as the default option '- Include All -'. 
		if ( mdl_cd_array[i] != 'ALL' ) {
			if ( mdl_cd_array[i] != prev_mdl ){
				opt_value = i;
				form_name.form_mdl.options[array_counter] = new Option(mdl_list_array[i],mdl_cd_array[i]);
				if ( cur_mdl != 'ALL' && cur_mdl == mdl_cd_array[i] ){
					form_name.form_mdl.options[array_counter].selected = true;
				}
				array_counter = array_counter + 1;
				prev_mdl = mdl_cd_array[i];
			}
		}
	}
}
