There was a known software problem with Windows doing just that - can't remember if it was win7 or XP. I had a similar problem on one of my Computers and managed to fix it with a download after a search on the net. Seems to be a not uncommon problem.
Try googling "win xx constant or repeated rebooting".