

function changeList( searchForm ) {
	list = countries[searchForm.COUNTRY.options[searchForm.COUNTRY.selectedIndex].value];
	emptyList( searchForm.REGION );
	fillList( searchForm.REGION, list );
}
function emptyList( box ) {
	while ( box.options.length ) box.options[0] = null;
}
function fillList( box, arr ) {
	// Append 'ALL' option
	//option = new Option( '** Any **','ALL' );
	//box.options[0] = option;

	for ( i = 0; i < arr.length; i++ ) {
		option = new Option( arr[i][0], arr[i][1] );
		box.options[box.length] = option;
	}
	box.selectedIndex=0;
}


function defaultGDSSearch() {
	var searchForm = document.searchResales;
	list = countries[searchForm.COUNTRY.options[searchForm.COUNTRY.selectedIndex].value];
	emptyList( searchForm.REGION );
	fillList( searchForm.REGION, list );
	//searchForm.REGION.value = def_region;

	for (var i=0; i < searchForm.REGION.options.length; i++) {
	  if (searchForm.REGION.options[i].value == def_region) {
		 searchForm.REGION.options[i].selected=true
	  }
	}

}