rem: spantmp.innerHTML = displayname.data; 
add: spantmp.type = "button"; spantmp.value = displayname.data; spantmp.title = "TOC Link " + displayname.data; 
context: 	__cb_bind : function( data )	{				var datas = data.getElementsByTagName( 'Child' );		var len = datas.length;		if( len == 0 )		{			return ;		}				var tableEle = document.createElement( "table" );		tableEle.border = '0';		tableEle.cellspacing = '0';		tableEle.cellpadding = '0';		var tbody = document.createElement( "tbody" );		for( i = 0; i < len; i++ )		{			var imgid = this.__nodeid + '_' + i ;			var tr1 = document.createElement( "tr" );			var td1 = document.createElement( "td" );			td1.valign = "top";			td1.id = "td" + imgid ;			var tmp = datas[i];			var isLeafs = tmp.getElementsByTagName( 'IsLeaf' );			var img = document.createElement( "img" );			img.style.backgroundRepeat = 'no-repeat';			img.style.paddingLeft = '0px';			img.style.width = '8px';			img.style.height = '8px';			img.plusMinus = '+';	//default it is collapsed			img.id = imgid;			img.query = '0';		//default it needs to communicate with the server.						if ( isLeafs[0].firstChild.data == "false" )			{				img.src = "birt/images/Expand.gif" ;				img.style.cursor = 'pointer';				Event.observe( img, 'click', this.__neh_img_click_closure, false );			}			else			{				img.src = "birt/images/Leaf.gif" ;				img.style.cursor = 'default';			}			var nodeIds = tmp.getElementsByTagName( 'Id' );			img.nodeId = nodeIds[0].firstChild.data;						var bookmarks = tmp.getElementsByTagName( 'Bookmark' );			img.bookmark = bookmarks[0].firstChild.data;			td1.appendChild( img );			td1.appendChild( document.createTextNode( " " ) );			var spantmp = document.createElement( "span" );			var displaynames = tmp.getElementsByTagName( 'DisplayName' );			var displayname = displaynames[0].firstChild;			spantmp.innerHTML = displayname.data;			spantmp.id =  'span_' + imgid;			spantmp.style.cursor = 'pointer';			spantmp.style.border = "0px";			spantmp.style.fontFamily = "Verdana";			spantmp.style.fontSize = "9pt";			td1.appendChild( spantmp );						tr1.appendChild( td1 );						var tr2 = document.createElement( "tr" );			var td2 = document.createElement( "td" );			td2.id = 'display' + imgid;			td2.style.paddingLeft = '16px';			td2.style.display = 'none';			tr2.appendChild( td2 );						tbody.appendChild( tr1 );			tbody.appendChild( tr2 );						//observe the text so that when click the text ,we can expand or collapse the toc			Event.observe( spantmp , 'mouseover', this.__neh_item_mouse_over, false );			Event.observe( spantmp , 'mouseout', this.__neh_item_mouse_out, false );				Event.observe( spantmp , 'click', this.__neh_item_click, false );					}		tableEle.appendChild( tbody );		var displayid = 'display' + this.__nodeid;		var ele= $( displayid );		var childLength = ele.childNodes.length;		if ( childLength == 0 )		{			ele.appendChild( tableEle );		}		else		{			ele.replaceChild( tableEle, ele.childNodes[0] );		}				this.__neh_resize( ); // hack	},
meta: 855	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/855/f60a4d8ea9a7565569c7fee5e3f718eb051d5915/AbstractBaseToc.js/clean/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/app/AbstractBaseToc.js