Customize search

Hi.I need to add an button on the default search result page which will export the searched documents in excell.

I could locate search.htm (the default search page on browser) in domino directory but where can i check the code which actually searches the view??

what does this stmt in search.htm mean??

can anybody help me out?