Here you should use class="UndoClosePopup" like in AgentTicketMove, for example. Then you can just place the URL with the right parameters.