<pre>on hideAllFields  ---  if the editBkgnd then    if the number of flds = 0 then return "Nothing to hide"    repeat with x = 1 to the number of flds      hide fld x    end repeat  else    if the number of cd flds = 0 then return "Nothing to hide"    repeat with x = 1 to the number of cd flds      hide cd fld x    end repeat	  end if  ---end hideAllFields</pre>