the viewing frustrum's planes

hiya all,
I may well be being dense here, but…
does anyone know how to calculate the 6 planes of the viewing frustrum once you have defined it using gluPerpective()? cant seem to figure it out.

Try this:

also code in the faq (link first page)