I have a solution that does not require you to unplug your battery and is a little faster. This may seem like a long process but it's actually very quick once you get used to it.. it's basically just clicking through the right options.
Open control panel and go to Network and Sharing Center.
Go to Change your network settings and choose Troubleshoot Problems.
On the page that opens, choosing the first option, Internet Connections. Click Nect on the window that opens.
It will give you a window with two more options, choose Troubleshoot my connection to the Internet.
It will now look for and detect the problem that you need to "Turn on Wireless capability" Choose the option, Apply this fix. This will reconnect your connection so you can use wireless again.
I came across this message base because I to am looking for a better solution to the problem. I realized, my solution was faster than everyone who posted above me and wanted to share it. We really do need a way to turn off this airplane mode function for good
and restore our function keys to normal PC functioning.