javascript/general.js
// If all items are selected, deselect all. Otherwise select all.

If all items are selected, deselect all. Otherwise select all.
If all items are selected deselect all . Otherwise select all .
function MM_toggleSelectedItems(form, theme) {
		if (!form.selectedItems)
			form.selectedItems = new Array();
		if (form.checkboxes) {
			if (form.selectedItems.length == form.checkboxes.length - MM_countDisabledCheckboxes(form))
				MM_deselectAllItems(form, theme);
			else
				MM_selectAllItems(form, theme);
		}
	}
function MM_toggleSelectedItems ( form , theme ) { if ( ! form . selectedItems ) form . selectedItems = new Array ( ) ; if ( form . checkboxes ) { if ( form . selectedItems . length == form . checkboxes . length - MM_countDisabledCheckboxes ( form ) ) MM_deselectAllItems ( form , theme ) ; else MM_selectAllItems ( form , theme ) ; } }
If all items are selected, deselect all.
If all items are selected deselect all .