Question on pause button in Games

Hey guys, how can i make a pause button similar to this game ===
http://fall-out.w32.net/game.htm

the pause button is insert.

my game is working only in 1 frame. so i was wonderin’ how to make the game freeze. thanks!!!