/******************************************************************************
function getMSelectValuesS(selectList, separator) receives a reference to a
multiple selection list and returns string of the values selected in the list.
Each value is separated by the character or string passed in the separator
parameter.
In the HTML selection list below, depending on the options selected, this
function would return an empty string (if no items were selected) or the values
"x" and or "y". Note: for this to work the VALUE attribute of the option tag
must be used.
<SELECT NAME="s" MULTIPLE>
  <OPTION VALUE="x">the variable x</OPTION>
  <OPTION VALUE="y">the variable y</OPTION>
</SELECT>
******************************************************************************/
function getMSelectValuesS(selectList, separator){
var i;
var count = 0;
var tempString = "";

for (i = 0; i < selectList.length; i++){
   if (selectList.options[i].selected){
      if (count > 0) tempString += separator;
      tempString += selectList.options[i].value;
      count++;
      }
   }
return tempString;
}

function getMSelectValuesS2(selectList, separator){
var i;
var count = 0;
var tempString = "";

for (i = 0; i < selectList.length; i++){
   if (selectList.options[i].selected){
      if (count > 0) tempString += separator;
      tempString += selectList.options[i].value;
      count++;
      }
   }
return tempString;
}

//-----------------------------------------------------------------------------
//      Functions that use the get text and get value functions above
//-----------------------------------------------------------------------------

function showSelectedValuesS(formRef){

var select_1 = document.order1.ADDITIONALINFO[document.order1.ADDITIONALINFO.selectedIndex].value;
document.order1.ADDITIONALINFO[document.order1.ADDITIONALINFO.selectedIndex].value= select_1;


var rValues = getMSelectValuesS2(formRef.ADDITIONALINFO2,":");
document.order1.ADDITIONALINFO2[document.order1.ADDITIONALINFO2.selectedIndex].value = rValues;
}

