            function SetAll() {
                // Provide a "Wait..." window while the setting is happening
                var waitWindowOptions = 'alwaysRaised=yes,dependent=yes,height=100,width=400,location=no,menubar=no,resizable=no,left=500,top=500,scrollbars=no,status=no,titlebar=no,toolbar=no';
                waitWindow = window.open('', 'wait_window', waitWindowOptions); 
                waitWindow.document.write('<b>Please wait while all programs are being selected...</b><br>');
                waitWindow.document.write('(this window will close after selections are set)<br>');

                // Loop through all elements on the form named "form_record"
                for (var element_no=0; element_no < document.form_record.elements.length; element_no++) {
                    // Show busy progress in "Wait..." window
                    if (element_no%50 == 0) {
                        waitWindow.document.writeln('_');
                    }
                    
                    // Set all checkboxes by setting the 'checked' property
                    // make sure we don't set a few special checkboxes
                    // only set checkboxes that are not disabled
                    if ( (document.form_record.elements[element_no].type == "checkbox") &&
						 (document.form_record.elements[element_no].name != "Muted") &&
						 (document.form_record.elements[element_no].name != "Muted-B") &&
						 (document.form_record.elements[element_no].name != "InSwitchGroup") &&
                         (document.form_record.elements[element_no].disabled == false) ) {
                        document.form_record.elements[element_no].checked = true;
                    }
                }

                // Close the "Wait..." window, now that the setting is done
                waitWindow.close();
            }
