in src/components/nms/msdoc/1.6.0/vs2005/Output/scripts/CheckboxMenu.js [2:32]
function CheckboxMenu(id, data, persistkeys, globals)
{
this.id = id;
this.menuCheckboxIds = new Array();
this.data = data;
this.count = 0;
var element = document.getElementById(id);
var checkboxNodes = element.getElementsByTagName("input");
for(var checkboxCount=0; checkboxCount < checkboxNodes.length; checkboxCount++)
{
var checkboxId = checkboxNodes[checkboxCount].getAttribute('id');
var checkboxData = checkboxNodes[checkboxCount].getAttribute('data');
var dataSplits = checkboxData.split(',');
var defaultValue = checkboxNodes[checkboxCount].getAttribute('value');
if (checkboxData != null && checkboxData.indexOf("persist") != -1)
persistkeys.push(checkboxId);
this.menuCheckboxIds[dataSplits[0]] = checkboxId;
// try to get the value for this checkbox id from globals
var persistedValue = (globals == null) ? null : globals.VariableExists(checkboxId) ? globals.VariableValue(checkboxId) : null;
var currentValue = (persistedValue != null) ? persistedValue : (defaultValue == null) ? "on" : defaultValue;
// set the checkbox's check state
this.SetCheckState(checkboxId, currentValue);
this.count++;
}
}