function showimage(imgpos) {
  var html = "";
  var img = "";
  for(var i=0;i<images.length;i++) {
    var fileName = images[i].substring(images[i].lastIndexOf('/')+1);
    if(html != null && html.length > 0) {
      html += " - ";
    }
    if(imgpos == i) {
      html += "<b>&lt;" + fileName + "&gt</b>";
      img = "<p><img border='0' src='" + images[i] + "'><br>" + text[i];
    } else {
      html += "<a onclick='showimage(" + i + ")' style='cursor:pointer;'><font color='#FF0000'>&lt;<u>" + fileName + "</u>&gt;</font></a>";
    }
  }
  var d_c = document.getElementById("content");
  d_c.innerHTML = html + img;
}

