function showPic(whichpic) {
  var source = whichpic.getAttribute("href");
   var placeholder = document.getElementById("placeholder");
   placeholder.setAttribute("src",source); 
   var text = whichpic.getAttribute("title");
   var centerphoto = document.getElementById("centerphoto"); centerphoto.firstChild.nodeValue = text;

   if(centerphoto)
    if( typeof centerphoto.innerHTML!='undefined' )
     centerphoto.innerHTML=text;
    else 
     centerphoto.firstChild.nodeValue = text.replace(/<br>/ig,' ');
  }
