Here is the basic template, using simplemodal (jquery plugin) and ajax to post the form.
Configuration
Enter search terms or a module, class or function name.