function showrecentcomments(json) {
  for (var i = 0; i < numcomments; i++) {
    var entry = json.feed.entry[i];
    var alturl;

    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {
      if (entry.link[k].rel == 'alternate') {
        alturl = entry.link[k].href;
        break;
      }
    }
   
   var postlink = alturl.split("#");
   postlink = postlink[0];
   var linktext = postlink.split("/");
   linktext = linktext[5];
   linktext = linktext.split(".html");
   linktext = linktext[0];
   var posttitle = linktext.replace(/-/g," ");
   posttitle = posttitle.link(postlink);
   var commentdate = entry.published.$t;
   var cdyear = commentdate.substring(0,4);
   var cdmonth = commentdate.substring(5,7);
   var cdday = commentdate.substring(8,10);
   var monthnames = new Array();
   monthnames[1] = "Gen";
   monthnames[2] = "Feb";
   monthnames[3] = "Mar";
   monthnames[4] = "Apr";
   monthnames[5] = "Mag";
   monthnames[6] = "Giu";
   monthnames[7] = "Lug";
   monthnames[8] = "Ago";
   monthnames[9] = "Set";
   monthnames[10] = "Ott";
   monthnames[11] = "Nov";
   monthnames[12] = "Dec";
   var comment = entry.content.$t;
   var re = /<\S[^>]*>/g; 
   comment = comment.replace(re, "");
   document.write('<div id="corpo_commento" class="corpo_commento">');
   if (showposttitle == true) document.write('<div id="titolo_post" class="titolo_post">Su ' + posttitle + '</div>');
   document.write('<div id="autore_commento" class="autore_commento">' + entry.author[0].name.$t + ' scrive:</div>');
   
   document.write('<div id="testo_commento" class="testo_commento">');
   if (comment.length < numchars)
         document.write(comment + '</div>');
   else
         document.write(comment.substring(0, numchars) + '...<a id="link_autore" class="link_autore" href="' + alturl + '">(continua)</a></div>');
    if (showcommentdate == true) document.write('<div id="data_commento" class="data_commento" >Il ' + cdday + ' ' + monthnames[parseInt(cdmonth,10)] + '</div>');
    document.write('</div>');
  }
}