rem: link.onclick = "BitMap.EditSession.editMarker("+n+","+i+")"; 
add: var nn = n; link.onclick = function(){ref.editMarker(nn,i)}; 
context: 	"editMarkers": function(i){		//make sure the new marker set form is closed		this.cancelNewMarkerSet();				this.toggleMenuOptsStyles( "markerset", this.Map.markersets.length, i, 'edit-selected' );				//make sure the marker set options form is closed		this.cancelEditMarkerSet();		//get the set id of markers we are editing				var set_id = this.Map.markersets[i].set_id;    		//set some constants		var markerTable = $('edit-markers-table');		var markerLinksList = $('edit-markers-list');		var markerLinks = markerLinksList.getElementsByTagName("li");				//Clear all the existing markers listed  		//We leave the first two, the first is the model we clone, the second if for a new marker		var count = markerLinks.length;		for (n=count-1; n>1; n--){			markerLinksList.removeChild(markerLinks.item(n));		}		$('edit-markerlink-new-a').onclick = "BitMap.EditSession.editMarker(null, "+i+");";				//For each marker in our set, add a link		var firstselected = false;		for (var n=0; n<this.Map.markers.length; n++) {			var m = this.Map.markers[n];			if (m.set_id == set_id){				var li = markerLinks.item(0).cloneNode(true);				li.id = 'edit-markerlink-'+n;				var link = li.getElementsByTagName("a").item(0);				link.onclick = "BitMap.EditSession.editMarker("+n+","+i+")";				link.innerHTML = m.title;				markerLinksList.appendChild(li);				li.style.display = "block";				if (firstselected != true){					//else ajax up a form with the info from the first marker in the list					this.editMarker(n, i);					firstselected = true;				}			}		}				if (firstselected == false){			//if the list is 0 - ajax up an empty form			this.editMarker(null, i);		}		//We assume it is not visible and make it so		BitMap.show('edit-markers-table');	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/78c46c0ddae20b9410f61f36f11e233fe55fa24b/Edit.js/clean/templates/Edit.js