rem: link.href = document.baseURI.replace( /event\/\d+(#.*)?/, 'person/' + select.value ); 
add: link.href = document.URL.replace( /event\/\d+(#.*)?/, 'person/' + select.value ); 
context: function add_event_person( event_person_id, person_id, event_role, event_role_state, remark ) {  table_add_row( 'event_person', event_person_id, person_id, event_role, event_role_state, remark );  var index = table_row_counter['event_person'] - 1;  var select = $('event_person[' + index + '][person_id]');  var link = document.createElement('a');  link.href = document.baseURI.replace( /event\/\d+(#.*)?/, 'person/' + select.value );  link.appendChild( document.createTextNode( select.options[select.selectedIndex].text ) );  select.parentNode.appendChild( link );  replace_select_with_hidden_field( select );}
meta: 2782	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2782/748acc71855cb5f12e9cef91889c16544d45222c/application.js/clean/rails/public/javascripts/application.js