Draw a big rectangle to enclose the two polylines. Use the BPOLY command and select a point inside the rectangle but outside the polylines. The command will create two new polylines: une superposed with the rectangle and one more that suit your needs. Just delete the initial polylines and the rectangles.