generally html code would be generated from the control classes of particular bsp elements. since this is a advanced search page/ normal search page, try to debug the methods like IF_BSP_ELEMENT~DO_AT_BEGINNING of handler class. you can see the .html page to find the bsp element used for search.
hope it helps.