
function moveRegion() {

var oldValue

	if (((document.forms['form1'].region.options[document.forms['form1'].region.selectedIndex].value == 'EVERY') || (document.forms['form1'].region.options[document.forms['form1'].region.selectedIndex].value == '')) && ((document.forms['form1'].country.options[document.forms['form1'].country.selectedIndex].value != 'EVERY') && (document.forms['form1'].country.options[document.forms['form1'].country.selectedIndex].value!= ''))) {
		oldValue = document.forms['form1'].country.options[document.forms['form1'].country.selectedIndex].value
		document.forms['form1'].country.options[document.forms['form1'].country.selectedIndex].value = '1,' + oldValue
		mover(document.forms['form1'].country,document.forms['form1'].selectedRegions);
		
	}
	
	else {
		if ((document.forms['form1'].region.options[document.forms['form1'].region.selectedIndex].value != '') && (document.forms['form1'].region.options[document.forms['form1'].region.selectedIndex].value != 'EVERY')) {
			oldValue = document.forms['form1'].region.options[document.forms['form1'].region.selectedIndex].value
			document.forms['form1'].region.options[document.forms['form1'].region.selectedIndex].value = '2,' + oldValue
			mover(document.forms['form1'].region,document.forms['form1'].selectedRegions);
		}
	}
}


function removeFromList(fromList) {

	var i, befOpt;
	var tempList = new Array();
	
	for (i = 0; i < fromList.length; i++) {
		befOpt = fromList.options[i];
		if (befOpt.selected && befOpt.value != "empty") {
			tempList[tempList.length] = i;
			befOpt.selected = false;
			befOpt = null;
			
		}
	}
	
	for (i = tempList.length-1; i >= 0; i--) {
		if (document.all) 
			fromList.options.remove(tempList[i]);
		else
			fromList.options[tempList[i]] = null; 
	}
	country_init();
}
	
