rem: var all = document.getElementsByName(elem.value); for(var i=0; i < all.length; i++) { if (all[i].checked == true) { all[i].checked = false; elem.checked = false; } else { all[i].checked = true; elem.checked = true; } } 
add: var all = document.getElementsByName(elem.value); for(var i=0; i < all.length; i++) { if (all[i].checked == true) { all[i].checked = false; elem.checked = false; } else { all[i].checked = true; elem.checked = true; } } 
context: function check_all(elem) {    var all = document.getElementsByName(elem.value);    for(var i=0; i < all.length; i++) {        if (all[i].checked == true) {            all[i].checked = false;            elem.checked = false;        }        else {            all[i].checked = true;            elem.checked = true;        }    }}
meta: 9569	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9569/fff2f308282fe247393de3bb4ce3a016b2a3a28e/global.js/buggy/viscacha/templates/global.js