function FXmoveListOption(aField1,aField2)
{
 for (Counter = 0; Counter < aField1.options.length; Counter++) {
  if (aField1.options[Counter].selected){
  aField2.options.length++;
  aField2.options[aField2.options.length-1].text=aField1.options[Counter].text;
  if(!aField1.options[Counter].value==""){
  aField2.options[aField2.options.length-1].value=aField1.options[Counter].value;
  }
  }
 }
}

function FXremoveMovedListOption(aField)
{
 var tempArrayValues = new Array();
 var tempArrayText = new Array();
 var Total = aField.length;
 var Counter;
 var inCounter = 0;
 for (Counter = 0; Counter < aField.options.length; Counter++) {
  if (!aField.options[Counter].selected){
  tempArrayText[inCounter] = aField.options[Counter].text;
  tempArrayValues[inCounter] = aField.options[Counter].value;
  inCounter++;
  }
 }
 aField.length=0;
 Total--;
 for (Counter = 0; Counter < Total; Counter++) {
  aField.options.length++;
  aField.options[Counter].text=tempArrayText[Counter];
  aField.options[Counter].value=tempArrayValues[Counter];
 }

}

function FXlstMoverSelectAll(aField)
{
 var Counter;
 for (Counter = 0; Counter < aField.options.length; Counter++) {
  aField.options[Counter].selected=true;
 }
}


function FXaddListOption(aField,aMessage)
{
 var NewItem;
 NewItem = prompt(aMessage,"");
 if(NewItem!=""&&NewItem!=null){
 var NoItems = aField.options.length++;
 aField.options[NoItems].text=NewItem;
 aField.options[NoItems].value=NewItem;
 }
}


function FXremoveListOption(aField)
{
 var tempArrayValues = new Array();
 var tempArrayText = new Array();
 var Total = aField.length;
 var Counter;
 var inCounter = 0;
 for (Counter = 0; Counter < aField.options.length; Counter++) {
  if (!aField.options[Counter].selected){
  tempArrayText[inCounter] = aField.options[Counter].text;
  tempArrayValues[inCounter] = aField.options[Counter].value;
  inCounter++;
  }
 }
 aField.length=0;
 Total--;
 for (Counter = 0; Counter < Total; Counter++) {
  aField.options.length++;
  aField.options[Counter].text=tempArrayText[Counter];
  aField.options[Counter].value=tempArrayValues[Counter];
 }

}



