How to change zNear and zFar dynamically

any tips on how the zNear and zFar parameters of gluPerspective can be changed dynamically?
I've tried all sorts of things with glutPostRedisplay(), amongst others, but it seems I can only manage to alter the gluLookAt dynamically...
Is there perhaps an other way this has to be done with clipping planes or something similar...