
    function updateList(formName,select_name,value_value,text_value) { //v2.0
      var opt = new Option;
      opt.value = value_value;
      opt.text = text_value;
      document.forms[formName].elements[select_name].options[document.forms[formName].elements[select_name].length] = opt;
      document.forms[formName].elements[select_name].options[document.forms[formName].elements[select_name].length - 1].selected = true;
    }

    function updateField(formName,field_name,awith) { //v2.0
      document.forms[formName].elements[field_name].value = awith;
      var l = field_name + '_bg';
      if(window.innerHeight) {
        if (document.layers) window.document.layers[l].bgColor=awith
        else document.getElementById(l).style.background=awith
      }
      else {
        window.document.all[l].style.background=awith
      }
    }
    
    function updateFieldNoColor(formName,field_name,awith) { //v2.0
      //alert(formName+':'+field_name+':'+awith);
      document.forms[formName].elements[field_name].value = awith;
    }

