If your window frames are rotting or fogging up between the panes, simple repairs usually won't last. In most cases, a full-frame replacement is more cost-effective in the long run. I found a lot of helpful info on the process at https://www.windowreplacementcontractor.com, and they can help you decide if you need a pocket installation or a complete tear-out.