Let $S_1$ and $S_2$ be two surfaces with compact boundary and the same number of boundary components. Let $M_1$ and $M_2$ be the surfaces obtained by glueing closed disks to the boundary of $S_1$ and $S_2$, respectively. Is there a direct proof that if $M_1$ and $M_2$ are homeomorphic then $S_1$ and $S_2$ are also homeomorphic? I know that this can be done in the compact case using normal forms, as in Massey's book. And if the surfaces are nonot compact?