If you hold the mouse down while you power the Mac on (as in, hold it in while you press the power button) it will eject the CD drive. On some Macs the F12, Eject or Shift key can be held down instead.
Then, to boot from a CD, hold the "C" button down while you power the Mac on.