function selectListAdd(nameFrom, nameTo) {
	var selectListFrom = document.getElementById(nameFrom);
	var selectListTo = document.getElementById(nameTo);
	for (i=0; i<selectListFrom.length; i++) {
		if (selectListFrom.options[i].selected == true) {
			var isExist=false;
			for (j=0; j<selectListTo.length; j++) {
				if (selectListTo.options[j].text==selectListFrom.options[i].text) {
					isExist=true;
				}
			}
			if (isExist==false) {
				selectListTo.options[selectListTo.options.length]= new Option(selectListFrom.options[i].text);
			}
		}
	}
    for ( i = (selectListFrom.length -1); i>=0; i--){
        if (selectListFrom.options[i].selected == true ) {
            selectListFrom.options[i] = null;
        }
	}
}

function selectListDel(nameFrom, nameTo) {
	var selectListFrom = document.getElementById(nameFrom);
	var selectListTo = document.getElementById(nameTo);
	for (i=0; i<selectListTo.length; i++) {
		if (selectListTo.options[i].selected == true) {
			var isExist=false;
			for (j=0; j<selectListFrom.length; j++) {
				if (selectListFrom.options[j].text==selectListTo.options[i].text) {
					isExist=true;
				}
			}
			if (isExist==false) {
				selectListFrom.options[selectListFrom.options.length]= new Option(selectListTo.options[i].text);
			}
		}
	}
    for ( i = (selectListTo.length -1); i>=0; i--){
        if (selectListTo.options[i].selected == true ) {
            selectListTo.options[i] = null;
        }
	}
}

