
  function FieldClear(f){
      if( f.title )        f.title.value    = '';
      if( f.auth )         f.auth.value     = '';
      if( f.pub )          f.pub.value      = '';
      if( f.bunrui )       f.bunrui.value   = '000';
      if( f.haikadai )     f.haikadai.value = '000';
//      if( f.sortitem )     f.sortitem.value = 'sno';
//      if( f.sortmode )     f.sortmode.value = 'asc';
      return false;
  }

  function Search(f){
      f.CMD.value = "SEARCH";
      return true;
  }

  function changeBunDai(arrayName){
      var arrayTbl = eval(arrayName);
      setOption(window.document.form0.bunchu, arrayTbl);
//      setOption(window.document.form0.bunchu, 'T25');
      document.form0.bunchu.selectedIndex = 0;
  }

  function changeHaikaDai(arrayName){
          var arrayTbl = eval(arrayName);
          setOption(window.document.form0.haikachu, arrayTbl);

          document.form0.haikachu.selectedIndex = 0;
  }

  function setOption(selects, arrayTbl){
      for (loop=0; arrayTbl[loop]; loop++){
          var loops = loop;
          var str = arrayTbl[loop];
          val = str.split( ":" );
          if( selects.options[loop] ){
              selects.options[loop].value = val[0];
              selects.options[loop].text  = val[1];
          }else{
              selects.options[loop] = new Option( val[1], val[0] );
          }
      }

      for( j=selects.options.length-1; loop <= j; j--){
          selects.options[j] = null;
      }
  }
