Presumably you mean a 5800?
Basically what Jolsa said – some wifi you pay for, some you don’t. When I was in Portugal at easter about half the places were free, the rest were cheap hourly rates (in the hotel, for example). If you need to stick a password in the phone pops up a screen for you to do so. Once registered you don’t need to introduce the password again.
The GPS is free to use, but as Jolsa said the maps aren’t. And if you’re driving in a foreign country the price would be pretty horrendous… While we’re at it, the 5800 takes ages to lock on to a signal, it’s pretty much useless if you want to drive across town to a friend’s new house, by the time it’s locked on you’ll have got there! It’s fine over longer distances, though.