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.onclick = protectChainUpdate; 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; 
check.checked = !protectAllMatch(); protectEnable( check.checked );  allowCascade();  return true; 
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.onclick = protectChainUpdate;		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;}
9612	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9612/8f416baead93a48e5799e44b8bd2e2c4859f4e04/protect.js/buggy/skins/common/protect.js