Since it was requested here's a javascript for the select all function, unselect and toggle are basically just copy paste anyway. It should work fine in all 4+ versions of netscape and ie plus other browsers.
Code: Select all
<script>
var files = new Array(1234, 2346, 623, 634, 13466, 78, 7890, 10978, 3465, 4545, 456745);
function myGetElement(name) {
if (document.getElementById){
// Standards
return document.getElementById(name);
} else if (document.layers) {
// NS 4
return document.layers[name];
} else if (document.all) {
// IE 4
return document.all[name];
} else {
alert('baka baka');
}
}
function selectAll() {
for (var i = 0; i < files.length; i++) {
myGetElement('file.a.' + files[i]).checked = true;
}
}
</script>
<input type="checkbox" id="file.a.1234" />
...
<input type="button" onclick="javascript:selectAll();" value="Select All" />
