rem: row.appendChild(document.createElement('td')); var col2 = document.createElement('td'); row.appendChild(col2);  var check = document.createElement('input'); check.id = "mwProtectUnchained"; check.type = "checkbox"; check.addEventListener( 'click', protectChainUpdate, false ); col2.appendChild(check);  var space = document.createTextNode(" "); col2.appendChild(space);  var label = document.createElement('label'); label.setAttribute("for", "mwProtectUnchained"); label.appendChild(document.createTextNode(labelText)); col2.appendChild(label);  if (protectAllMatch()) { check.checked = false; protectEnable(false); } else { check.checked = true; protectEnable(true); }  allowCascade();  return true; } return false; 
add: check.checked = !protectAllMatch(); protectEnable( check.checked );  allowCascade();  return true; 
context: function protectInitialize(tableId, labelText) {	if (document.createTextNode) {		var box = document.getElementById(tableId);		if (!box)			return false;		var tbody = box.getElementsByTagName('tbody')[0];		var row = document.createElement('tr');		tbody.appendChild(row);		row.appendChild(document.createElement('td'));		var col2 = document.createElement('td');		row.appendChild(col2);		var check = document.createElement('input');		check.id = "mwProtectUnchained";		check.type = "checkbox";		check.addEventListener( 'click', protectChainUpdate, false );		col2.appendChild(check);		var space = document.createTextNode(" ");		col2.appendChild(space);		var label = document.createElement('label');		label.setAttribute("for", "mwProtectUnchained");		label.appendChild(document.createTextNode(labelText));		col2.appendChild(label);		if (protectAllMatch()) {			check.checked = false;			protectEnable(false);		} else {			check.checked = true;			protectEnable(true);		}				allowCascade();		return true;	}	return false;}
meta: 7966	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7966/34db63e0a0b13bb1afc68dd579993e8980d517c8/protect.js/clean/skins/common/protect.js