function moveOptions(ListFrom,ListTo){
  var i,myOption;

  for(i=0;i<ListFrom.options.length;i++){
    if (ListFrom.options[i].selected){
      myOption = new Option(ListFrom.options[i].text,ListFrom.options[i].value);
      ListTo.options[ListTo.options.length] = myOption;
    }
  }
  i = 0;
  while(i<(ListFrom.options.length)){
    if (ListFrom.options[i].selected)
      ListFrom.options[i] = null;
    else
      i++;
  }
}

function selAllF1(_v) {
for(var i=0;i<document.form1.f1.length;i++)
  document.form1.f1[i].selected=_v;
}

function displayResult(selection)
{
    var theResult = ""
    theResultValue = ""
    var numberPicked = 0
    for (var i = 0; i<selection.length; i++)
    {
        if (selection.options[i].selected)
        {
            numberPicked++
            theResult += selection.options[i].text + " ,"
            theResultValue += selection.options[i].value + " ,"
        }
     }
     document.form1.fresult.value = numberPicked
     document.form1.f3.value = theResultValue
     //window.alert("You picked: " + theResultValue)
     document.form1.submit();
}


function selAllF2(_v) {
for(var i=0;i<document.form1.f2.length;i++)
  document.form1.f2[i].selected=_v;
}

function SendForm(){
         document.form1.submit();
}