Friends computer keeps restarting, HELP!

My friends computer restarts after the windows XP "Welcome" logo comes up. It will keep repeating this unless shutoff. Now, if i run the computer without the cdrom drive installed, the computer starts up fine. However, the computer did run normally for a few days before with the cdrom installed. Any ideas?