function addId2Bag(id,row,parentId,issueType){    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';            document.getElementById('initialIdCount').innerHTML++;        } else {            idArray[idArray.length] = id;            duplicateArray[parentId] = idArray;        }        toggleForm(1);    }    }
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/ba100c9137cec652a2e9891cebfe696c4abd4518/baguploadconfirm.js/buggy/intermine/webapp/main/resources/webapp/js/baguploadconfirm.js