         if (should_hide) {
            sentDiv = $('<div>')
		        .append($('<p>').append($('<span>', {'style' : 'color: red;'}).text(tx_datetime + ' sent:'))
		        .append($('<pre id='+commandId+' style="display:inline-block;width:87%;margin-right:10px;">').text('*********'))
		        .append($('<input type=button style="display:inline-block;" onclick="replay(\''+escape(tx_text)+'\')" value="Replay"/>')));
         } else {
             sentDiv = $('<div>')
                    .append($('<p>').ap