The functions in the search form work as follows: