Texturing a cube

I just have a simple texturing question. Take a look at this link. The top has a brick texture but the side is all messed up. How can I get a good brick texture on all 6 sides of the cube?

Using the “Cube” button in the “Map Input” panel?