Jay got this cool info from TypePad on how to add code to the sidebar.
It's a cool trick. You just use the TypeList Notes field:
Create a new TypeList. Use the Configure options to set the Notes to Display as Text.
Then paste your search code into the Link Notes. You can leave the Link URL and Link Title blank.
Then make this TypeList show up on your Weblog by going into the Weblog: Design: Content area.
Here's a cool example.