If you're REPLACING the motherboard because of technical failures...call Compaq to see if you can buy a new one of the same model, I imagine you can.
If you want to just get a new motherboard thats NOT Compaq, you'll have to get more than that. I did the same thing with my Dell. All the major companies make motherboards that only except their own power supplies, and fit their own case. In other words, if you want a different motherboard, you need to buy another power supply and another case...and *censored*, by that point your halfway there to building a new computer practically so might as well go all the way. The only thing thats in my computer from my old Dell is the processor. And I plan on building a whole brand new one semi-soon.