rem: document.chk.elements[i].checked = !(document.chk.elements[i].checked); 
add: document.chk.elements[i].checked = checkbox_state; 
context: function SelectAll(prefix) {	for (var i = 0; i < document.chk.elements.length; i++) {		if ((document.chk.elements[i].name.substr(0, prefix.length) == prefix) && (document.chk.elements[i].style.visibility != 'hidden')) {			document.chk.elements[i].checked = !(document.chk.elements[i].checked);		}	}}
meta: 412	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/412/943cf8c2009c86637841a7caf30c77868df67c17/layout.js/buggy/include/layout.js