As has been already said, definitely get an UPS. I have an APC Smartups1000I I purchased about 1 1/2 years ago, and it has 8 inputs which I hook my Mac, My PC, soundcard, and some synths on to and she cooks with gas. Heaps of headroom.(About 20 minutes uptime) Heres some more points you might want to consider.
- if you are in a rural area, and/or live in an area prone to electrical storms, I would make this a matter of urgency.
- Make sure you "size" your components that you want to protect. I found websites that had a feature where they would help you to size your gear according to things like, How much grunt your CPU has, Number of HDDS etc.
- Do your homework on these things, and learn what they do and how they operate. Learn how to best avoid deep draining the battery which can cost an arm and a leg and a years wages!!!!

(well not really but theyre NOT cheap)....
"But if you aren't there during the power outtage, what if the UPS runs out of power? what will it do then? Will it safely shut of your computer and prevent any damage? Because I want to make sure the whole point of a UPS is to prevent any power surge damage EVER...."
Some UPS' have shutdown software that come with them. You might wanna look carefully at this to ensure compatibility with your system too. To me its not that big of a deal as Im never far from my computer when its on. As such, I havent bothered installing the SW. Your needs look to be different from what you say. An UPS is not gonna do any good at all if, say, youve got 7-10 minutes of uptime, but youre not there to manually shut it down, and with no software to "gracefully" shutdown your computer for you. Thats the main purpose of an UPS, to gracefully shut down your system. Its either done manually OR by software.
- I know as technology gets better and better, things may have considerably improved since I got my UPS. They didnt all have features that may be counted as standard nowadays, so just in case, I would highly recommend one that gives off an audible alarm.
-As was mentioned earlier, a decent UPS can clean up your power from "line noise" and harmonics and such, and these are VERY destructive to the delicate componentry inside our 'puters and the like. Ironically computers themselves are said to exacerbate the problem of the above, so, its worth while getting a decent UPS, but OTH dont oversize either. These things can range greatly in price too. By and large though, you'll get what you pay for.
Just as a matter of interest, as I understand it, its not the actual " hard cycling off" that hurts the computer, its when the power comes back on, that does the damage, as you are more likely to have things like power surges, and these are BAD especially when the power alternates quickly between being on and off, as can sometimes happen.
HTHs and all the best in your decision.
Musical.