|"trying the laptop without the battery but all it did was shut down twice when i lost the power source"|
Doesn't that sound like a failing power supply to you? It sure does to me.
You didn't say the name and model number of your laptop so I guess you can check on e-bay and see how much the adapter is...really cheap anymore.
Some HELP in posting on Computing.net plus free progs and instructions Cheers