// テキストフィールドに連動するcheckboxとradio
function set_Interlock_tbox(name) {
    var text = $('text_' + name);
    var box = $(name);
    box.onclick = function () {
      var text = $('text_' + this.name);
      text.style.color = this.checked ? '#333' : '#CCC';
      if(this.checked) { text.focus(); }
      else { text.blur(); }
    }
    text.onfocus = function () {
      var box = $(this.name.replace(/text_/, ''));
      this.style.color = '#333';
      box.checked = true;
    }
    text.onblur = function () {
        this.style.color = '#333';
    }
//  crowmailのテンプレート内でラベル補完しているため不使用。   
//  text.onchange = function () {
//    var box = $(this.name.replace(/text_/, ''));
//    var label = $('label_' + box.name);
//    box.value = label.innerHTML + '(' + text.value + ')';
//  }

}
