            function ClearAll() {
                // Provide a "Wait..." window while the clearing 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 selections are being cleared...</b><br>');
                waitWindow.document.write('(this window will close after selections are cleared)<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('_');
                    }
                    
                    // Clear all checkboxes by setting the 'checked' property
                    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 = false;
                    }
                    // Clear all select-one (pull-down fields) by setting the first option to be selected
                    else if (document.form_record.elements[element_no].type == "select-one") {
                        document.form_record.elements[element_no].options[0].selected = true;
                    }
                }

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