This can be software or hardware, and is difficult, even impossible, to diagnose from a distance.
The best thing to do:
1. Set the BIOS to default values.
2. Remove all hardware you added yourself.
3. Reload the HP recovery CD.
If machine hangs with default BIOS and initial software and hardware, have it repaired by HP. You should have done this a few years ago when you still had warranty on the machine. Now it might cost you more than the machine is worth at eBay (in a pessimistic situation).
If the machine works flawlessly now, gradually add hardware and software to see where things go wrong.
Hope this helps.
Kees
Ever since I bought this HP Pavilion (8700?) a couple of years ago it has hung up continually. Now that I've upgraded from Me to XP Pro it's even worse. Any body else experienced the same thing. Fixed it?
It seems to happen more when browsing but now happens with apps as well (still not as frequent as browsing).
HELP!!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic