|If you can enter your BIOS without freezing, set your CD as first in boot order before trying to install XP. If you cannot do either, check your RAM for damage using Memtest (use another machine to download and create a bootable floppy or CD) since even your BIOS needs RAM to operate (if you have more than one stick, retest them one at a time), replace as needed. If your RAM is ok, you can test your hard drive similarly with a utility from your hard drive manufacturer's site. If hardware is OK, then you should reset your BIOS using the jumper on your motherboard <unplug power completely first> following instructions for your motherboard. If that does not help you can try a BIOS flash to repair your BIOS and get any updates. If that doesn't help, you might have a fried motherboard.|
I always use and recommend using a UPS (Uninterruptable Power Supply) for my computers, they are not too expensive these days, and they can save you alot of power related problems (power failure, power drop outs, as well as power spikes) and will give you critical minutes to shut down properly, and often have software to shut down safely for you.