Different messages for dialogs with the same html

Different messages for dialogs with the same html

My code here https://jsfiddle.net/Twisty/mafnxaxq/

It uses the same dialog for both delete and logout. I want to have separate message for delete and logout. I want to use this html for dialog for all messages:

<p><span class="ui-icon ui-icon-alert" style="float:left; margin:12px 12px 20px 0;"></span><span id="messageText"></span></p>

with html above, what changes do I need in jsFiddle code above to output different message for logout and delete?