Thanks for all the posts,I tried unhooking every piece of hardware I didn't need and apparently the one causing the restarts was the dvd drive.
Now that I disconnected it,it has been working fine for 6 hours+
Very interesting.
Just goes to show you, try EVERYTHING and try it one at a time.
I'm glad you seem to have found the solution!