<pre>on hideAllDisabled  ---  if the number of cd btns > 0 then    repeat with x = 1 to the number of cd btns      if (enabled of cd btn x is false) then hide cd btn x    end repeat  end if  ---  if the number of bg btns > 0 then    repeat with x = 1 to the number of bg btns      if (enabled of bg btn x is false) then hide bg btn x    end repeat  end if  ---end hideAllDisabled</pre>