There's another awesome app called PutMeThru which does the same thing. All alerts can be turned off, but the exceptions you set will still ring through. It's pretty great, and works well especially if you need to hear your phone ring for a work emergency, but don't want to get woken up at 3 am...