} 
} toggleForm(document.getElementById('matchCount').innerHTML); 
function removeIdFromBag(id,row, parentId, issueType){    if(document.getElementById('rem_'+issueType+'_'+id).className=='fakelink'){        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';            document.getElementById('initialIdCount').innerHTML--;            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/57767d0f35e785aee6ba44e4036cd63344179b8f/baguploadconfirm.js/buggy/intermine/webapp/main/resources/webapp/js/baguploadconfirm.js