Ok so i was trying to fix a friends computer and here is the situation.
When you try and boot up the computer it will start to boot and as it starts to power up it restarts. It keeps doing this and wont stop. The configuration of the machine hasn't changed it just started doing it one day. My first guess was the power supply was going so i replaced it but it continued to do it. My next thought is that it the motherboard but i dont know so i figured that i would let u guys give a crack at it. Thank you for your input in advance.

My other thought is that the outlet is being overloaded but it never had a problem before.