<pre>on hideAllParts  ---  if the editBkgnd then    if the number of bg parts = 0 then return "Nothing to hide"    repeat with x = 1 to the number of bg parts      hide bg part x    end repeat  else    if the number of cd parts = 0 then return "Nothing to hide"    repeat with x = 1 to the number of cd parts      hide cd part x    end repeat	  end if  ---end hideAllParts</pre>