http://jsfiddle.net/mn9jpfgt/

I obviously don't know how to make a fiddle...

Any help would be greatly appreciated!

I wanted to just show a couple of ALERT calls to show the functionality in action. What would I put in the HTML window to make that happen?