I have a Dell Inspiron E1505 laptop. The past couple days the battery light has been blinking red (when plugged in), and if I unplug it the computer just shuts off. I am assuming the battery is not being charged. Is this a defect with the battery or with the charger/adapter? does it cost a lot to replace these?

thanks!