add:  var table = $('edit-tilelayers-table'); $('edit-maptype-'+m_i).appendChild(table); 
context: 	"editTilelayer": function(t_i, m_i){		this.cancelEditCopyright();		var t_id = ( t_i != null )?this.Map.tilelayers[t_i].tilelayer_id:null;		var m_id = ( m_i != null )?this.Map.maptypes[m_i].maptype_id:null;		this.editObjectN = t_i;		this._setIndexRef = m_i;		//make menu of copyrights		//Clear all the existing copyrights listed  		var count = this.Map.copyrights.length;		for (n=0; n<count; n++){			if ($("edit-copyrightlink-"+n)){				$('edit-copyright-menu').removeChild($("edit-copyrightlink-"+n));			}		}		$('edit-copyrightlink-new-a').href = "javascript:BitMap.EditSession.editCopyright(null, "+t_i+");";		//for each copyright		for (var n=0; n<count; n++) {			var c = this.Map.copyrights[n];			if (c.tilelayer_id == t_id){				//get the model menu and clone it				newCopyrightMenu = $('edit-copyrightlink').cloneNode(true);				//update the values				newCopyrightMenu.id = "edit-copyrightlink-"+n;				newCopyrightLink = newCopyrightMenu.getElementsByTagName("a").item(0);				newCopyrightLink.href = "javascript:BitMap.EditSession.editCopyright("+n+", "+t_i+")";				newCopyrightLink.innerHTML = c.notice;				//add it to the copyrights menu				$('edit-copyright-menu').appendChild(newCopyrightMenu);				newCopyrightMenu.style.display = "block";			}		}				if (t_i != null){			BitMap.show('edit-tilelayer-actions');		}else{			BitMap.hide('edit-tilelayer-actions');		}			var a = (t_i != null)?'remove':'add';		BitMap.Utl.JSCSS(a, $('edit-tilelayerlink-new'), 'edit-select');		this.toggleMenuOptsStyles( "tilelayerlink", this.Map.tilelayers.length, t_i, 'edit-select' );				//get the edit form		doSimpleXMLHttpRequest("edit_tilelayer.php", {tilelayer_id:t_id, maptype_id:m_id}).addCallback( bind(this.editTilelayerCallback, this) );	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/abb148cb64f85492613e3474ce4942a26489ad33/Edit.js/buggy/templates/Edit.js