In most scenarios it is better to replace windows rather than repair them. This is because there may be pervasive rot, fog between the panels, or the necessary parts may no longer exist, to name a few reasons. This is also a fantastic opportunity to switch to more energy efficient windows.