function display(imgName, imgUrl) 
  {
    if (document.images && typeof imgUrl != 'undefined')
       document[imgName].src = imgUrl.src; 
  }