<pre>on hideAll what  if what is empty then put "bkBtn cdBtn bkFld cdFld" into what  if "bkBtn" is in what then    repeat with N = 1 to the number of bkgnd buttons      hide bkgnd button N    end repeat  end if  if "cdBtn" is in what then    repeat with N = 1 to the number of card buttons      hide card button N    end repeat  end if  if "bkFld" is in what then    repeat with N = 1 to the number of bkgnd fields      hide bkgnd field N    end repeat  end if  if "cdFld" is in what then    repeat with N = 1 to the number of card fields      hide card field N    end repeat  end ifend hideAll</pre>