').innerHTML = e;
      }
    }
  }
  function data_tear() {
    var type = element('data_type');
    var text = element('data_name');
    try {
      tear(text.value, type.options[type.selectedIndex].text);
      remove_select('data_list', text.value);
    }
    catch(e) {
      element('fail3').innerHTML = e;
    }
  }
  function room_pick(name) {
    var select = element('room_list');
    var index = select.selectedIndex;
    if(index > -1) {
      var name = select.options[index].text;
      var value =