Adding 'checkall' function for columns of checkboxes

This commit is contained in:
oleonard 2005-04-27 19:54:10 +00:00
parent d0827e3629
commit a689c174ec
1 changed files with 11 additions and 0 deletions

View File

@ -36,6 +36,17 @@ function openWindow(targeturl, windowname) {
// Uncomment below to close popup after clicking link.
newwin.close();
}
function CheckAll() {
count = document.mainform.elements.length;
for (i=0; i < count; i++) {
if(document.mainform.elements[i].checked == 1){
document.mainform.elements[i].checked = 0;
} else {
document.mainform.elements[i].checked = 1;
}
}
}
// end hiding -->
</script>