rem: var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); 
add: var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); 
context: function hop_iwindow_close( id ) {   var win = (id instanceof HTMLElement) ? id : document.getElementById( id );   win.style.display = "none";   /* user event */   if( win.onclose ) win.onclose();}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-iwindow.js/clean/share/hop-iwindow.js