I would strongly consider retiring the entire frame. If the top tube is rusted through then there is almost certainly rust in some of the other tubes. Unless the frame has significant sentimental value it's hard to imagine it being worth the cost of the rebuild and repaint.