diff --git a/js/functions.js b/js/functions.js
index e49d809a53376c025d7b8f18b8e5fb48cd61450a..6b300d9facc2a0f56fd432095981091e8583a62f 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -44,6 +44,7 @@ function getQueryParams() {
  * @returns {undefined}
  */
 function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
+    var contentid=id+"-content";
     clog("getPageItem('"+id+"', '"+sMoreData+"')");
     // $('#'+id).html('reading ...');
     if (!$('#' + id).hasClass('active')) {
@@ -64,11 +65,11 @@ function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
         type: "GET",
         success: function (data) {
             $('#' + id).css('opacity', '1');
-            $('#' + id).html(data);
+            $('#' + contentid).html(data);
         },
         error: function () {
             $('#' + id).css('opacity', false);
-            $('#' + id).html('Failed :-/');
+            $('#' + contentid).html('Failed :-/');
             $('#errorlog').html(
                     $('#errorlog').html('AJAX error: <a href="' + phpscript + '?' + sData + '">' + phpscript + '?' + sData + '</a>')
                     );