function selectedComboList(oList, pList) {
 clearComboList(pList);
 var newvalue = oList.name + "=" + oList.options[oList.selectedIndex].value;
 fillComboList(pList, newvalue);
}

function clearComboList(oList) {
 for (var i = oList.options.length - 1; i >= 0; i--) {
  oList.options[i] = null;
 }
 if (oList.size == 1) {
  oList.options[i / 2] = new Option("Please make a selection", "");
  oList.selectedIndex = 0;
 } else oList.selectedIndex = -1;
}

function fillComboList(oList, vValue) {
 if (vValue != "" && AssocArray[vValue]) {
  var arrX = AssocArray[vValue];
  for (var i = 0; i < arrX.length; i = i + 2) {
   oList.options[oList.options.length] = new Option(arrX[i + 1], arrX[i]);
  }
 } else oList.options[0] = new Option("None found", "");
}



// function comboItemSelected(oList1,oList2){
// if (oList2!=null){
// clearComboOrList(oList2);
// if (oList1.selectedIndex == -1){
// oList2.options[oList2.options.length] = new Option('Please make a selection from the list', '');
// } else {
// fillCombobox(oList2, oList1.name + '=' + oList1.options[oList1.selectedIndex].value);
// }
// }
// }
// function listboxItemSelected(oList1,oList2){
// if (oList2!=null){
// clearComboOrList(oList2);
// if (oList1.selectedIndex == -1){
// oList2.options[oList2.options.length] = new Option('Please make a selection from the list', '');
// } else {
// fillListbox(oList2, oList1.name + '=' + oList1.options[oList1.selectedIndex].value);
// }
// }
// }
// function clearComboOrList(oList){
// for (var i = oList.options.length - 1; i >= 0; i--){
// oList.options[i] = null;
// }
// oList.selectedIndex = -1;
// if (oList.onchange) oList.onchange();
// }
// function fillCombobox(oList, vValue){
// if (vValue != '') {
// if (assocArray[vValue]){
// oList.options[0] = new Option('Please make a selection', '');
// var arrX = assocArray[vValue];
// for (var i = 0; i < arrX.length; i = i + 2){
// if (arrX[i] != 'EOF') oList.options[oList.options.length] = new Option(arrX[i + 1].split('&amp;').join('&'), arrX[i]);
// }
// if (oList.options.length == 1){
// oList.selectedIndex=0;
// if (oList.onchange) oList.onchange();
// }
// } else {
// oList.options[0] = new Option('None found', '');
// }
// }
// }
// function fillListbox(oList, vValue){
// if (vValue != '') {
// if (assocArray[vValue]){
// var arrX = assocArray[vValue];
// for (var i = 0; i < arrX.length; i = i + 2){
// if (arrX[i] != 'EOF') oList.options[oList.options.length] = new Option(arrX[i + 1].split('&amp;').join('&'), arrX[i]);
// }
// if (oList.options.length == 1){
// oList.selectedIndex=0;
// if (oList.onchange) oList.onchange();
// }
// } else {
// oList.options[0] = new Option('None found', '');
// }
// }
// }
