Like ShawnD1 was saying, when your computer starts rebooting, if you haven't changed any hardware recently, the first thing you need to look at is the capacitors on the board. Any capacitors that aren't perfectly flat on top need replaced. This is a very common problem with motherboards made in 1999-2002 because there were a lot of faulty capacitors used on motherboards from several vendors then, but it can be a problem on any board.
I have a Shuttle SV-24 (their first generation SFF machine) that I was about to throw away, but after a quick soldering job it works fine.