function move_one(song_position){
		option = document.forms[0].song_list.options[document.forms[0].song_list.selectedIndex].text
		song_position.value = option
}

function move_multiple(song_position){
	for(var i=0; i < document.forms[0].song_list.options.length; i++){
		if(document.forms[0].song_list.options[i].selected){
			option = document.forms[0].song_list.options[i].text
			txt = song_position.value
			txt = txt + option
			song_position.value = txt + "\n"
		}
	}
}

function addOne(moveTo, allowed){
	for(var i=0; i < document.forms[0].song_list.options.length; i++){
		var listLength = document.songs[moveTo].options.length;
		if(document.forms[0].song_list.options[i].selected){
			option = document.forms[0].song_list.options[i].text
			if(listLength < allowed){
				document.songs[moveTo].options[listLength] = new Option(option, option);
			}
		}
	}
}

function removeSong(songList){
	for(var i=0; i < document.songs[songList].options.length; i++){
		if(document.songs[songList].options[i].selected){
			document.songs[songList].options[i] = null
		}
	}
}

function selectSongs(songList){
	for(var j=0; j < document.songs[songList].options.length; j++){
		document.songs[songList].options[j].selected = true;
	}
}

function selectSongs2(){
	for(var i=0; i < document.songs.length; i++){
		switch(document.songs[i].name){
			case "first_song":
				for(var j=0; j < document.songs[document.songs[i].name].length; j++){
					document.songs[document.songs[i].name].options[j].selected = true;
				}
			
			case "second_song":
				for(var j=0; j < document.songs[document.songs[i].name].length; j++){
					document.songs[document.songs[i].name].options[j].selected = true;
				}

			case "fast_songs[]":
				for(var j=0; j < document.songs[document.songs[i].name].length; j++){
					document.songs[document.songs[i].name].options[j].selected = true;
				}

			case "slow_songs[]":
				for(var j=0; j < document.songs[document.songs[i].name].length; j++){
					document.songs[document.songs[i].name].options[j].selected = true;
				}

			case "fd_song":
				for(var j=0; j < document.songs[document.songs[i].name].length; j++){
					document.songs[document.songs[i].name].options[j].selected = true;
				}

			case "ms_song":
				for(var j=0; j < document.songs[document.songs[i].name].length; j++){
					document.songs[document.songs[i].name].options[j].selected = true;
				}
		}
	}
}
