rem: if (j==2) { 
add: if (j==1) { 
context: function AssetManager_Write() {	var open_div = "";	var close_div =	"";		//added drag image	document.write('<div id="dragImage" class="dragImage"></div>');		document.write('<form method="post" name="assetManagerForm"><input type="hidden" name="func" /><input type="hidden" name="proceed" />');	document.write('<table class="am-table">');	document.write('<thead><tr class="am-headers">');	for (var i=0; i<this.Columns.length; i++) {		var title = (this.Columns[i].type == "form") ? this.Columns[i].name : '<a class="sort" href="javascript:AssetManager_SortRows(assetManager,'+i+');">'+this.Columns[i].name+'</a>';		document.write('<td class="am-header">'+title+'</td>');	}	document.write('</tr><tbody>');	for (var i=0; i<this.Lines.length; i++) {		document.write('<tr class="am-row">');				for (var j=0; j<this.Columns.length; j++) {			var div_name = "d"+this.name+"-"+i+"-"+j;				if (this.Columns[j].align != '') {					var align = ' class="am-'+this.Columns[j].align+'"';					}				else {					var align = "";					}				open_div = "<div id=\""+div_name+"\" "+align+" style='width:100%;'>";				close_div= "</div>";								document.write("<td "+this.Columns[j].td+">"+open_div+this.Lines[i][j].text+close_div+"</td>");								//added for dragging to map draggable objects and meta data objects				if (j==2) {					this.draggableObjects[i] = document.getElementById(div_name);					if (this.metaData && this.metaData[i]) {						this.draggableObjects[i].metaData = this.metaData[i];					}								}				//end added for dragging		}		document.write("</tr>");	}	document.write('</tbody></table>');	for (var j=0; j<this.Buttons.length; j++) {		document.write('<input type="button" onclick="this.form.func.value=\''+this.Buttons[j].func+'\';this.form.proceed.value=\''+this.Buttons[j].proceed+'\';this.form.submit();" value="'+this.Buttons[j].label+'" />');	}	document.write('</form>');}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/ee28c051e9b24d5602bfa046c5e4bdb12202055d/assetManager.js/clean/www/extras/assetManager/assetManager.js