Laptop only turns on when it wants to

my laptop only turns on when it wanst to. sometimes i have to try 10-15 times to get it to start up. sometimes it will start up and freeze on the "vio" screen. my cd drive also only works when it wants to. sometimes it will read the cd, sometimes it wont. could my computer be malfunctioning because of a virus? is there anything i can do to save it?

nope - there is a component on the motherboard (either hard wired or a plug in component) that manages the power supply for the laptop. It also controls the current for the battery charger according to whether it needs charging or not. Given the symptoms, this is the most likely cause. Sorry for the bad news.