hi

What do I need to change in the code to fit my tables?

function displayIconTooltip(rowData, userLCID) {     
    var str = JSON.parse(rowData); 
    var coldata = str.opportunityratingcode_Value; 
    var imgName = ""; 
    var tooltip = ""; 
    switch (parseInt(coldata,10)) {
        case 1: 
            imgName = "new_hotlist_icon_red"; 
            switch (userLCID) { 
                case 1036: 
                    tooltip = "French: Opportunity is Hot"; 
                    break; 
                default: 
                    tooltip = "Opportunity is Hot"; 
                    break; 
            } 
            break; 
        case 2: 
            imgName = "new_Warm"; 
            switch (userLCID) { 
                case 1036: 
                    tooltip = "French: Opportunity is Warm"; 
                    break; 
                default: 
                    tooltip = "Opportunity is Warm"; 
                    break; 
            } 
            break; 
        case 3: 
            imgName = "new_Cold"; 
            switch (userLCID) { 
                case 1036: 
                    tooltip = "French: Opportunity is Cold"; 
                    break; 
                default: 
                    tooltip = "Opportunity is Cold"; 
                    break; 
            } 
            break; 
        default: 
            imgName = ""; 
            tooltip = ""; 
            break; 
    } 
    var resultarray = [imgName, tooltip]; 
    return resultarray;