rem: var docHeight = getDocHeight(iframeWin.document); 
add: var docHeight = getDocHeight(iframeWin.document); 
context: function setFocusedIframeDimensions(iframeName, focusHeight, resetToDefaultWidth ) {  try {    passedFrameName = iframeName;    passedFocusHeight = focusHeight;    if (currentHeight == "") {      currentHeight = focusHeight;    }    var iframe_portlet_container_table = document.getElementById('iframe_portlet_container_table');    var iframeWin = window.frames[iframeName];    var iframeEl = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null;      if ( iframeEl && iframeWin && iframe_portlet_container_table) {      var docHeight = getDocHeight(iframeWin.document);  	  if ( resetToDefaultWidth ) {  	    iframe_portlet_container_table.width = "100%";  	  }	  	           if (docHeight > 150) {        //console.log( "iframeEl.contentDocument.documentElement.scrollWidth="+iframeEl.contentDocument.documentElement.scrollWidth        //			+"\niframe_portlet_container_table.width="+iframe_portlet_container_table.width        //			+"\niframe_portlet_container_table.scrollWidth="+iframe_portlet_container_table.scrollWidth );                if ( Math.abs( iframeEl.contentDocument.documentElement.scrollWidth - iframe_portlet_container_table.scrollWidth ) > 30 ) {        	if ( iframeEl.contentDocument.documentElement.scrollWidth > iframe_portlet_container_table.scrollWidth ) {        		iframe_portlet_container_table.width = iframeEl.contentDocument.documentElement.scrollWidth + 30;        	}        }        if ((Math.abs(docHeight - currentHeight)) > 20 ) {          if (safari > -1) {            if ((Math.abs(docHeight - currentHeight)) > 59 ) {              iframeEl.style.height = docHeight + 30 + "px";              currentHeight = getDocHeight(iframeWin.document);            }          } else {             if (parseInt(iframeEl.style.height) < currentHeight || parseInt(iframeEl.style.height) < docHeight) {              iframeEl.style.height = docHeight + 30 + "px";              currentHeight = getDocHeight(iframeWin.document);            } else {              if (docHeight < currentHeight &&  (currentHeight - 150 > docHeight)) {                iframeEl.style.height = docHeight + 30 + "px";                currentHeight = getDocHeight(iframeWin.document);              }            }          }        }      }    }  }  catch(err)  {  	window.status = err.description;  }}
meta: 2093	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2093/e9913977e0ae7905fc5086b58e89d25afdff3fff/my_common.js/buggy/kns/src/test/webapp/kr/scripts/my_common.js