if($("#reply_message_<%= @jour.id%>").length > 0) {
    $("#reply_message_<%= @jour.id%>").replaceWith("<%= escape_javascript(render :partial => 'issues/issue_reply_ke_form') %>");
    $(function(){
        sd_create_editor_from_data(<%= @jour.id%>, null, "100%", "<%= @jour.class.name %>");
    });
}else if($("#reply_to_message_<%= @jour.id%>").length >0) {
    $("#reply_to_message_<%= @jour.id%>").replaceWith("<p id='reply_message_<%= @jour.id%>'></p>");
}