If you can connect to a wireless network but can't surf then I'd check tcpip settings. Open your network connections. R-click Wireless Network Connection>Properties. Double-click Internet Protocol (TCP/IP). Make sure it's set to 'obtain IP address automatically' and 'obtain DNS address automatically'
Edit: And then do what Big-D said
