function swapOptions(srcElementId, dstElementId) {
  s = window.document.getElementById(srcElementId);
  d = window.document.getElementById(dstElementId);
  for (id = 0; id < s.options.length; id++) {
    cur = s.options[id];
    if (cur.selected) {
      oldcnt = d.options.length;
      d.options.length++;
      op = new Option(cur.text, cur.value);
      d.options[oldcnt] = op;
      s.options[id] = null;
      id--;
    }
  }
}
function selectAllOptions(elementId) {
  s = window.document.getElementById(elementId);
  for (id = 0; id< s.options.length; id++) {
    s.options[id].selected = true;
  }
}
function setCC(flag) {
  s1 = window.document.getElementById("formpart1");
  s2 = window.document.getElementById("formpart2");
  if (flag) {
    t = s2;
	s2 = s1;
	s1 = t;
  }
  s2.className = "hiddendiv";
  s1.className = null;
}
