document.getElementById('add_'+issueType+'_'+id).className = ''; document.getElementById('rem_'+issueType+'_'+id).className = "fakelink"; var elements = document.getElementsByTagName('td'); for (var i = 0; i < elements.length; i++) { var idtd = elements.item(i).id; if(idtd == 'row_'+issueType+'_' + row) { tdColorArray['row_'+issueType+'_'+row] = elements.item(i).style.backgroundColor; elements.item(i).style.backgroundColor = "#CCCCCC"; 
if(document.getElementById('add_'+issueType+'_'+id).className=='fakelink'){ document.getElementById('add_'+issueType+'_'+id).className = ''; document.getElementById('rem_'+issueType+'_'+id).className = "fakelink"; var elements = document.getElementsByTagName('td'); for (var i = 0; i < elements.length; i++) { var idtd = elements.item(i).id; if(idtd == 'row_'+issueType+'_' + row) { tdColorArray['row_'+issueType+'_'+row] = elements.item(i).style.backgroundColor; elements.item(i).style.backgroundColor = "#CCCCCC"; } } var bagList = document.getElementById('matchIDs').value; if(bagList.indexOf(id) == -1){ if (bagList.length != 0 ) { bagList += " "; } document.getElementById('matchIDs').value = bagList + id; } document.getElementById('matchCount').innerHTML++; var idArray = duplicateArray[parentId]; if(idArray == null) { duplicateArray[parentId] = new Array(id); document.getElementById(issueType+'Count').innerHTML--; document.getElementById('td_'+issueType+'_'+parentId).style.backgroundColor = '#CCCCCC'; } else { idArray[idArray.length] = id; duplicateArray[parentId] = idArray; 
function addId2Bag(id,row,parentId,issueType){    document.getElementById('add_'+issueType+'_'+id).className = '';    document.getElementById('rem_'+issueType+'_'+id).className = "fakelink";    var elements = document.getElementsByTagName('td');    for (var i = 0; i < elements.length; i++) {        var idtd = elements.item(i).id;        if(idtd == 'row_'+issueType+'_' + row) {            tdColorArray['row_'+issueType+'_'+row] = elements.item(i).style.backgroundColor;            elements.item(i).style.backgroundColor = "#CCCCCC";        }    }    var bagList = document.getElementById('matchIDs').value;    if(bagList.indexOf(id) == -1){        if (bagList.length != 0 ) {            bagList += " ";        }        document.getElementById('matchIDs').value = bagList + id;    }    document.getElementById('matchCount').innerHTML++;    var idArray = duplicateArray[parentId];    if(idArray == null) {        duplicateArray[parentId] = new Array(id);        document.getElementById(issueType+'Count').innerHTML--;        document.getElementById('td_'+issueType+'_'+parentId).style.backgroundColor = '#CCCCCC';    } else {        idArray[idArray.length] = id;        duplicateArray[parentId] = idArray;    }}
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/99cf751eac3f1de0485a9420a5c3c1ad15eed20b/baguploadconfirm.js/clean/intermine/webapp/main/resources/webapp/js/baguploadconfirm.js