How to use depth mask?

I want to be able to see the entire cube in the following image:

THE IMAGE

I know that i need to use these codes:http://www.unifycommunity.com/wiki/index.php?title=DepthMaskBut how can i do this?

Thank you very much in advance!! I appreciate the help greatly…:smile:

I finally figured it out! For future reference, use the scripts linked above, I noticed that setting the que to 0 will do what i specified above.