The cost of replacing a furnace or central air conditioning system has climbed steadily over the past few years, leaving many homeowners caught off guard when their aging equipment finally gives out.