var bagList = document.getElementById('matchIDs').value; if(bagList.indexOf(id) != -1){ bagList = bagList.split(id).join('').split('  ').join(' '); document.getElementById('matchIDs').value = bagList.replace(/^s+/, '').replace(/s+$/, ''); } var bagList = document.getElementById('matchIDs').value; document.getElementById('matchCount').innerHTML--; var idArray = duplicateArray[parentId]; if(idArray.length == 1){ document.getElementById(issueType+'Count').innerHTML++; document.getElementById('td_'+issueType+'_'+parentId).style.backgroundColor = '#FFFFFF'; duplicateArray[parentId] = null; } else { var idArrayCopy = new Array(); for (var i=0;i<idArray.length;i++){ if(id!=idArray[i]){ idArrayCopy[idArrayCopy.length]=idArray[i]; } } duplicateArray[parentId] = idArrayCopy; } 
function removeIdFromBag(id,row, parentId, issueType){    document.getElementById('rem_'+issueType+'_'+id).className = '';    document.getElementById('add_'+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) {            elements.item(i).style.backgroundColor = tdColorArray['row_'+issueType+'_'+row];        }    }    var bagList = document.getElementById('matchIDs').value;    if(bagList.indexOf(id) != -1){        bagList = bagList.split(id).join('').split('  ').join(' ');        document.getElementById('matchIDs').value = bagList.replace(/^s+/, '').replace(/s+$/, '');//Trim    }    var bagList = document.getElementById('matchIDs').value;    document.getElementById('matchCount').innerHTML--;    var idArray = duplicateArray[parentId];    if(idArray.length == 1){        document.getElementById(issueType+'Count').innerHTML++;        document.getElementById('td_'+issueType+'_'+parentId).style.backgroundColor = '#FFFFFF';        duplicateArray[parentId] = null;    } else {        var idArrayCopy = new Array();        for (var i=0;i<idArray.length;i++){            if(id!=idArray[i]){                idArrayCopy[idArrayCopy.length]=idArray[i];            }        }        duplicateArray[parentId] = idArrayCopy;    }}
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