Get into the BIOS, and have the comp boot from the CD. Insert your XP disk, and have the comp boot it. Choose the option to install, not repair.
The OS from the other computer will not work in a different computer. You HAVE to reinstall, period.
The OS from the other computer will not work in a different computer. You HAVE to reinstall, period.