How to make object invisible, but still have things cast shadows on it?

I want an object i made to be invisible, but I still want it to be able to show shadows that other objects casted on it. Is this possible?

Right next to the hard and spec sliders there is a button that says ‘OnlySha’. Click it, voila.

awesome, thanks!