<pre>function theTarget point  repeat with i = 1 to the number of btns    if point is within rect of btn i    then return "btn id" && short id of btn i  end repeat  repeat with i = 1 to the number of cd flds    if point is within rect of cd fld i    then return "cd fld id" && short id of cd fld i  end repeat  repeat with i = 1 to the number of bg btns    if point is within rect of bg btn i    then return "bg btn id" && short id of bg btn i  end repeat  repeat with i = 1 to the number of flds    if point is within rect of fld i    then return "fld id" && short id of fld i  end repeat  if point is within rect of cd window  then return "cd id" && short id of this cd  return empty -- no such objectend theTarget</pre>