Eject the CD by holding down the mouse button when you first startup the Mac. Be patient; it will eject the CD before it begins the booting process.
Do you know "fsck -fy"? If so, do it. If not, boot from the OSX installer CD, select "Disk Utility" from the Installer menu, and "fix disk"...