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