function addToList(form, fromList, toList) {
	var listFrom = document.forms[form].elements[fromList];
	var listTo = document.forms[form].elements[toList];
	if (listFrom.selectedIndex >= 0) {
		
		var opt = new Option(listFrom.options[listFrom.selectedIndex].text, listFrom.options[listFrom.selectedIndex].value, false, false);
		listTo.options[listTo.length] = opt;
		
		listFrom.options[listFrom.selectedIndex] = null;
	}
}

function selectAll(form, listName) {
	var list = document.forms[form].elements[listName];
	for (var i = 0; i < list.length; i++) {
		list.options[i].selected = true;
	}
}
