var count1 = 0;
var count2 = 0;

function addDoc(num)
{
  var elSel = document.getElementById('selectX');
  var elOptNew = document.createElement('option');
  var F = form.docF.value;
  var M = form.docM.value;
  var L = form.docL.value;
  var T = form.docT.value;
  elOptNew.text = F + " " + M + " " + L + ", " + T;
  elOptNew.value = F + " " + M + " " + L + ", " + T;
  var sVal = F + " " + M + " " + L + ", " + T;
    try {
	  // standards compliant; may not work in all versions of IE
	  elSel.options[elSel.options.length] = new Option(sVal, sVal);
	  form.docF.value = "";
	  form.docM.value = "";
	  form.docL.value = "";
	  form.docT.value = "";
	}
    catch(ex) {
      elSel.add(elOptNew, 0); // IE only
    }
}

function delDoc()
{
  var elSel = document.getElementById('selectX');
  var i;
  for (i = elSel.length - 1; i>=0; i--) {
    if (elSel.options[i].selected) {
      elSel.remove(i);
    }
  }
}


