First make sure you can ping the router to see whether the wireless network is at fault or something else is set up wrong.
If you can't reach the router, check the wireless encryption settings, IP address assignments, etc etc on the laptops. Also a driver update will often help.
If you can reach the router, it sounds like your default gateway or DNS settings are misconfigured. Use the router IP for both and see if it fixes it. This is when DHCP can be your best friend.
Lastly, do you know if the network uses a proxy server? If so, you may need to enter the correct settings into your web browser.