Button

Hello,
I was just wondering if it is possible to script a button to do one thing on the first click and to do the second thing on the second click?

thanks!!!

yes it is.

Thanks!
okay now, here is a question!
if I have a button, and I want image A to show up on the first click and image B shows up on the second click. How would I go about that!!!
Thanks a lot!!!