Is there any way to turn Airplane on, but keep GPS on at the same time?

Or, to manually turn off receiving of phone calls and text messages...

Reason: I want to not receive calls or texts if I'm using a GPS Navigation Program to get somewhere.

Thanks for any help.