4
function move( listId ) {
6
var fromList = document.getElementById(listId);
8
if ( fromList.selectedIndex == -1 ) { return; }
10
if ( ! availableList ) {
11
availableList = document.getElementById('availableList');
14
if ( ! selectedList ) {
15
selectedList = document.getElementById('selectedList');
18
var toList = ( fromList == availableList ? selectedList : availableList );
20
while ( fromList.selectedIndex > -1 ) {
21
option = fromList.options.item(fromList.selectedIndex);
22
fromList.remove(fromList.selectedIndex);
23
toList.add(option, null);
28
function submitForm() {
30
if ( ! availableList ) {
31
availableList = document.getElementById('availableList');
34
if ( ! selectedList ) {
35
selectedList = document.getElementById('selectedList');
38
// selectAll(availableList);
39
selectAll(selectedList);
45
function selectAll(list) {
47
for ( var i = 0, option; option = list.options.item(i); i++ ) {
48
option.selected = true;
b'\\ No newline at end of file'