Yes you have to pay your car off. If it is totalled, insurance will give you what they value the car at. You can use that money to pay off the car. If they don't value it at more than what you owe, then you are upside down. If you have gap insurance, that will cover what is left between what they value it, and what you owe.
example: you owe 5000, but insurance values car at 4500. They give you 4500, and you use that to pay off the car, but then you still owe 500. If you have gap insurance, it covers the remainder of the value (the 500 dollars), so you aren't out 500 dollars on a car that you no longer own.
link to gap insurance in case you are wondering what that is: http://personalinsure.about.com/od/policyb...aa021405a_2.htm