rem: var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); 
add: var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); 
context: function hop_notepad_inline( notepad, tab ) {   var found = 0;   var np = (notepad instanceof HTMLElement) ? notepad :      document.getElementById( notepad );   var ta = (tab instanceof HTMLElement) ? tab :      document.getElementById( tab );   var i;   for( i = 0; i < np.childNodes.length; i++ ) {      var c = np.childNodes[ i ];      var c2;      if( c.className == "hop-notepad-tabs" ) {	 for( j = 0; j < c.childNodes.length; j++ ) {	    c2 = c.childNodes[ j ];	    if( c2 == ta ) {	       c2.className = "hop-nptab-active";	       found = j;	    } else {	       c2.className = "hop-nptab-inactive";	    }	 }      }	          if( c.className == "hop-notepad-body" ) {	 for( j = 0; j < c.childNodes.length; j++ ) {	    c2 = c.childNodes[ j ];	    if( j == found ) {	       c2.style.display = "block";	    } else {	       c2.style.display = "none";	    }	 }      }   }}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-notepad.js/clean/share/hop-notepad.js