Buying a foreclosed house can be a great way to find a bargain on real estate, but it can also be a great way to lose a lot of money in a hurry.