I'm sorry, I didn't explainded the problem well, I was in a hurry.
I have a form with two select's, i pass some values from the first to the second and store them in an array, how do i pass the values that are in that array.
<------------------ Function I'm using ---------------
function one2two() {
m1len = m1.length ;
for ( i=0; i<m1len ; i++){
if (m1.options.selected == true ) {
m2len = m2.length;
m2.options[m2len]= new Option(m1.options.text);
}
}
for ( i = (m1len -1); i>=0; i--){
if (m1.options.selected == true ) {
m1.options = null;
}
}
}
function two2one() {
m2len = m2.length ;
for ( i=0; i<m2len ; i++){
if (m2.options.selected == true ) {
m1len = m1.length;
m1.options[m1len]= new Option(m2.options.text);
}
}
for ( i=(m2len-1); i>=0; i--) {
if (m2.options.selected == true ) {
m2.options = null;
}
}
}
<-------------------- The SELECT's -----------------
<select name="m1" multiple size="10">
<option value="45" >1 H Clean</option>
.
.
.
</select>
-- -- -- -- --
<select name="m2" size="10" multiple >
</select>