Ok, so you're randomly losing your connection. Here's one way to fix that, which will hopefully help. Turn off the computer and disconnect the power cable going to both, the router and the modem. Leave power off for 15-30 seconds. Plug-in the modem, and let it configure itself for about 25 seconds. Now, restore power to the router, and give it about the same amount of time to configure. You cay now turn on the computer and see if this helps. I know sometimes my modem acts funny, and it will make the internet slow, or randomly disconnect, etc. Sometimes if you just power it off and restart it everything works fine.
Flame