Before you lent it to your friend were you using DHPC to automatically assign your laptop an IP? If so, you may want to check that the TCP/IP settings in your network adaptor properties are set to "Obtain an IP address automatically". If not, then check that the subnet mask specified in your TCP/IP settings matches the setting in your wired/wireless router (or access point).
Your friend could have also been using a proxy to surf the internet. To check if this is the case and you use Internet Explorer go to Tools > Internet Options > Connections > LAN Settings and uncheck all the options in there. If you use firefox, then you need to go: Tools > Options > Connection Settings and check "Direct Connection to the Internet". Remember, that this step is only valid if you did not use a proxy beforehand. If you did, and you find that your friend changed it, then you need to change the settings back, instead of disabling the proxy as I have described above.