Dialogs, ask before deleting selected records on a ListGrid

Ask before deleting a ticket, this will prompt a message with two choices:

function removeTicket(ListGridIn)
{
        isc.confirm("Are you sure you want to delete the selected tickets?",
                    "okremoveTicket(value ? 'Yes, delete them' : 'Cancel',"+ListGridIn.ID+")");
}
function okremoveTicket(deletethem, ListGridIn)
{
    if (deletethem != "Cancel") ListGridIn.removeSelectedData()
}

<ToolStripButton ID="TSB_delete_ticket" autoDraw="false">
    <title>Delete Ticket</title>
    <click>removeTicket(LG_new_tickets)</click>
</ToolStripButton>