i think you have a problem with the battery, the adapter, or the loading circuits in the laptop.
try to eliminate each, by using another one
you don't loose data with a system restore :
http://www.microsoft.com/windowsxp/using/helpandsupport/learnmore/systemrestore.mspx