It depends. Why are you replacing the doors? If the only thing that is wrong is that the glass is fogged up then you can just replace the panels. It is definitely easiest to leave the frames in place if possible, assuming that there is no problem with them and that you can find new doors to match. Maybe you could fill us in with a few more details and others will chime in with their thoughts.