// テキストフィールドに連動するcheckboxとradio
function set_Interlock_tbox(name) {
    var text = $('text_' + name);
    var box = $(name);
    var label = $('label_' + name);
    box.onclick = function () {
        text.style.color = this.checked ? '#333' : '#CCC';
        if(this.checked) { text.focus(); }
        else { text.blur(); }
    }
    text.onfocus = function () {
        text.style.color = '#333';
        box.checked = true;
    }
    text.onblur = function () {
        text.style.color = '#333';
    }
    text.onchange = function () {
        box.value = label.innerHTML + '(' + text.value + ')';
    }
}
