* Apply unique field check in real time.
* And lots of other hacky hard-coded junk.
* See http://drupal.org/project/formmsgs for the Drupal 7 done-right version of this.
The idea is to give a warning message if a user tries to add a fruit type that has already been added with the same color term.
i.e. a green apple has already been added. if the user tries to add another green apple, as soon as they add "apple" in the Type field, a message would be displayed that says, "Sorry, that type of fruit has already been added." The message isn't important, but you get the idea...