Hi,
First chage your thread type to question.
what do you mean my search function, CRM provides OOB search functionality thorugh UI as well as through SDK.
you can use Advance find,Quick find view to search record from CRM UI.
you can develop your own custom page using MS CRM SDK/Webservice to search records(using retrievemultiple function).
HTH
Conatact Me
Follow me on Twitter
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.