function makeHeaderFunc(index) { return function(data) { return data[index]; } 
var headerText; if(rows[0].length == 2){ headerText = '<tr><th>Value</th><th>Count</th></tr>'; } else { headerText = '<tr><th>Min</th><th>Max</th><th>Sample Mean</th><th>Standard Deviation</th></tr>'; 
    AjaxServices.getColumnSummary(columnName, function(str){        var rows = str[0];        var cellFuncs = new Array();        var headerFuncs = new Array();        var summaryColumnNameElement = document.getElementById('summary_column_name');        var summaryColumnNameElement = document.getElementById('summary_column_name');        if (summaryColumnNameElement.innerText == null) {            // normal browsers            summaryColumnNameElement.textContent = columnDisplayName;        } else {            // IE            summaryColumnNameElement.innerText = columnDisplayName;        }        function makeCellFunc(index) {            return function(data) {                var cell = data[index];                if (cell==null) {                    return "[no value]" ;                } if (! isNaN(cell)) {                    var rf = roundToSignificantDecimal(cell+0);                    return Math.round(cell*rf)/rf;                } else {                    return cell;                }            }        }        function makeHeaderFunc(index) {            return function(data) {                return data[index];            }        }        for (var i=0;i<rows[0].length;i++){            cellFuncs[i] = makeCellFunc(i);            headerFuncs[i] = makeHeaderFunc(i);        }        var headerCreator = function(options) {            return document.createElement("th");        }        var headers;        if(cellFuncs.length == 2){            headers = ['Value', 'Count'];        } else if (cellFuncs.length == 4){            headers = ['Min', 'Max', 'Sample Mean', 'Standard Deviation'];        }        DWRUtil.addRows('summary_head', [headers], headerFuncs, {cellCreator:headerCreator});        DWRUtil.addRows("summary_table", rows, cellFuncs);        document.getElementById('summary_loading').style.display = "none";        document.getElementById('summary_loaded').style.display = "block";        setTimeout("updateCountInColumnSummary()", 10000);        var qid = str[1];        setTimeout("updateUniqueCountInColumnSummary("+qid+")", 10000);    });
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/805414df55957af22e281e4056d2fcce33c66b76/imdwr.js/clean/intermine/webapp/main/resources/webapp/js/imdwr.js