Laptop Battery is not charging properly.

My Dell Inspiron powered by i5 is around 1.5 years old and it has started to show some problems. Of the many problems, one of the most annoying problem is that the battery is not charging. My laptop works fine until it is connected to the power supply but goes dark after power outbreak. What can be done in order to fix this?
