chkAll function is used by some plugins.