document.getElementById('selected_' + type + '_' + index).value=str;  } else { document.getElementById('selected_user_' + type + '_' + index).value=str; } 
document.getElementById('selected_' + type + '_' + index).value=str;  } else { document.getElementById('selected_user_' + type + '_' + index).value=str; } 
    AjaxServices.rename(name,type, (document.getElementById('newName_'+name).value).replace(/^\s*|\s*$/g,""), function(str){        document.getElementById('name_'+name).innerHTML=str;        // coming from mymine        if (document.getElementById('selected_' + type + '_' + index) != null) {	       	document.getElementById('selected_' + type + '_' + index).value=str;	    // coming from bags/templates pages       	} else {       		document.getElementById('selected_user_' + type + '_' + index).value=str;       	}    });
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/a4b3b9d540585bda85da6333cb003a6bb652f10e/imdwr.js/buggy/intermine/webapp/main/resources/webapp/js/imdwr.js