Resizing boxes

Hey guys… I have been woundering how to do the box resizing on a button release. If you have a box that is say 700 X 700 pixals and when you click a button it goes to 500 X 500 pixals. And this can be reversed by clicking on the previous button…

Thanx for any help…