rem: newTilelayerLink.innerHTML = m.title; tilelayerLinksList.appendChild(newTilelayerli); 
add: newTilelayerLink.innerHTML = t.tiles_name; tilelayersLinksList.appendChild(newTilelayerli); 
context: 	"editMaptypeTilelayers": function(i){	  this.cancelNewMaptype();	  var a;	  var count = this.Map.maptypes.length;	  for (n=0; n<count; n++){	    a = (n==i)?'add':'remove';	    BitMap.jscss(a, $('edit-maptype-'+n), 'edit-selected');	  }		  this.cancelEditMaptypeOptions();	  var maptype_id = this.Map.maptypes[i].maptype_id;	  var tilelayersTable = $('edit-tilelayers-table');	  //Set the markerset toggle tags to closed	  //Set the markerset toggle tags to open on our selected set	  //Move Tilelayers Table to New Maptype	  $('edit-maptype-'+i).appendChild(tilelayersTable);	  //set some constants	  var tilelayersLinksList = tilelayersTable.getElementsByTagName("ul").item(0);	  var tilelayersLinks = tilelayersTable.getElementsByTagName("li");	  //Clear all the existing tilelayers listed  	  //We leave the first two, the first is the model we clone, the second if for a new tilelayer	  var count = tilelayersLinks.length;	  for (n=count-1; n>1; n--){	    tilelayersLinksList.removeChild(tilelayersLinks.item(n));	  }	  	  $('edit-tilelayerlink-new-a').href = "javascript:BitMap.EditSession.newTilelayer("+i+");";	  //For each tilelayer in our new maptype, add a link	  var firstselected = false;	  for (var n=0; n<this.Map.tilelayers.length; n++) {		var m = this.Map.tilelayers[n];	    if (m.maptype_id == maptype_id){	    	var newTilelayerli = markerLinks.item(0).cloneNode(true);	    	newTilelayerli.id = 'edit-markerlink-'+n;	  		var newTilelayerLink = newTilelayerli.getElementsByTagName("a").item(0);	      	newTilelayerLink.href = "javascript:BitMap.EditSession.editTilelayer("+n+")";	      	newTilelayerLink.innerHTML = m.title;	      	tilelayerLinksList.appendChild(newTilelayerli);	  		newTilelayerli.style.display = "block";			if (firstselected != true){			  this.editTilelayer(n);			  firstselected = true;			}	        	  	}	  }	  if (firstselected == false){	    this.newTilelayer(i);	  }	  //We assume it is not visible and make it so	  BitMap.show('edit-tilelayers-table')	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/65ca0f252dbca8269c9a8956d95003b849140ee2/Edit.js/buggy/templates/Edit.js