When you turn it on keep hitting F8 once the BIOS and memory screens have passed but BEFORE it loads up the Starting XP logo.
This'll give you a list. Select 'Safe Mode' from the list then when the machine starts use System Restore to restore the PC back to a time when it was last working.