@@ -19,7 +19,7 function swapOptions(theSel, index1, index2) | |||||
19 | } |
|
19 | } | |
20 |
|
20 | |||
21 | function deleteOption(theSel, theIndex) |
|
21 | function deleteOption(theSel, theIndex) | |
22 |
{ |
|
22 | { | |
23 | var selLength = theSel.length; |
|
23 | var selLength = theSel.length; | |
24 | if(selLength>0) |
|
24 | if(selLength>0) | |
25 | { |
|
25 | { | |
@@ -29,14 +29,14 function deleteOption(theSel, theIndex) | |||||
29 |
|
29 | |||
30 | function moveOptions(theSelFrom, theSelTo) |
|
30 | function moveOptions(theSelFrom, theSelTo) | |
31 | { |
|
31 | { | |
32 |
|
32 | |||
33 | var selLength = theSelFrom.length; |
|
33 | var selLength = theSelFrom.length; | |
34 | var selectedText = new Array(); |
|
34 | var selectedText = new Array(); | |
35 | var selectedValues = new Array(); |
|
35 | var selectedValues = new Array(); | |
36 | var selectedCount = 0; |
|
36 | var selectedCount = 0; | |
37 |
|
37 | |||
38 | var i; |
|
38 | var i; | |
39 |
|
39 | |||
40 | for(i=selLength-1; i>=0; i--) |
|
40 | for(i=selLength-1; i>=0; i--) | |
41 | { |
|
41 | { | |
42 | if(theSelFrom.options[i].selected) |
|
42 | if(theSelFrom.options[i].selected) | |
@@ -47,12 +47,12 function moveOptions(theSelFrom, theSelTo) | |||||
47 | selectedCount++; |
|
47 | selectedCount++; | |
48 | } |
|
48 | } | |
49 | } |
|
49 | } | |
50 |
|
50 | |||
51 | for(i=selectedCount-1; i>=0; i--) |
|
51 | for(i=selectedCount-1; i>=0; i--) | |
52 | { |
|
52 | { | |
53 | addOption(theSelTo, selectedText[i], selectedValues[i]); |
|
53 | addOption(theSelTo, selectedText[i], selectedValues[i]); | |
54 | } |
|
54 | } | |
55 |
|
55 | |||
56 | if(NS4) history.go(0); |
|
56 | if(NS4) history.go(0); | |
57 | } |
|
57 | } | |
58 |
|
58 |
General Comments 0
You need to be logged in to leave comments.
Login now