Here is the code you asked for... set you up a whole page here so you can get what you need. Let me know if there is a problem with this.
Polling Script
Search Script