The best way to get started is to go to Hotscripts.com and find a poll that does something similar to what you want it to do, and pick it apart. Use what you learn from it, and design your own... or if it is exactly what you want and like, use it. (Of course, keep all of the appropriate copyright and licensing info in place, and adhere to the terms of the license it is written under.)