In response to a user request, an annotation form is presented to a user
for annotating a target document or image in a database. The annotation
form is associated with the target document. A runtime program is
associated with the annotation form. The annotation form selected by the
user provides prompts for annotation input. The annotation input is saved
in an annotation database and the runtime program performs an action on
behalf of the user. Preferably the runtime program action comprises
analysis of elements of the target document.