Adding new search function

Hi all

I am trying to add a new search function, maybe mySearch(), with my own criteria. I am also going to add new fields (Drop Down List, Text Field,mySearch button,etc).

I need to get mySearch button to run mySearch() function and updates/shows/hides certain fields.

Any general idea how to do this?

Thank you :)