How to simulate Airplane mode?
Just remove your SIM. Then there's no chance of incurring any cellular charges, as you won't be able to connect to any network, but wifi and GPS should still work. (If you have a CDMA phone with no SIM then you can't roam anyway.)