Before you start replacing ram, use a memory test program. There are a few at
http://webattack.com
My computer used to crash all the time when the motherboard was burned out. It overheated a bunch of times and the capacitors started to go south. Replaced the motherboard and it works beautifuly. There's probably a way to test the motherboard but I don't know of any such test.