rem: window.top.img_frame.document.viewed_image.src = image.src; 
add: imageframe.viewed_image.src = image.src;  
context: function updatePage() {  var viewtype = getViewType();  var currentpage = Number(getPage());  getElement("back-button").disabled = (currentpage <= 1);  if (currentpage != getSelectedPage()) {    //getElement("page-select").options[currentpage - 1].selected = true;    getElement("page-select").selectedIndex = currentpage - 1;    }  var lastpage = Number(getValue("last-page"));  getElement("next-button").disabled = (currentpage >= lastpage);  var texttarget=getValue("text-target:"+currentpage);   if (viewtype=="text" || viewtype=="side") {	  var textframe = getElementGlob(window.parent.document, "frames:" + viewtype + "::txt-frame");	  textframe.src = texttarget;	  }  if (viewtype=="image" || viewtype=="side") {	  var imagetarget=getValue("image-target:"+currentpage);	  var imageframe = getElementGlob(window.parent.document, "frames:" + viewtype  + ":img-frame");//  imageframe.viewed_image.src = imagetarget;	  var image = new Image();	  image.src = imagetarget;//	  alert("imagetarget: " + imagetarget);	  window.top.img_frame.document.viewed_image.src = image.src;	  }}
meta: 6542	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6542/39484502fc860543b58cd2736475219893b52c14/nav-frame.js/buggy/src/webapp/content/javascript/nav-frame.js