//TRタグの色を変える1
function tr_over(t){t.style.backgroundColor='#D8EEFC';/*t.style.cursor='hand';*/}
function tr_out(t){t.style.backgroundColor='#ffffff';}

//TRタグの色を変える2
function tr_over_hand(t){t.style.cursor='hand';t.style.cursor='pointer';}
function tr_on(t){
    if(t.style.backgroundColor=='#ffffff'||t.style.backgroundColor==''){
        t.style.backgroundColor='#ddddff';
    }else{
        t.style.backgroundColor='#ffffff';
    }
}
//tr_onと同じ
function t1(t){
    if(t.style.backgroundColor=='#ffffff'||t.style.backgroundColor==''){
        t.style.backgroundColor='#ddddff';
    }else{
        t.style.backgroundColor='#ffffff';
    }
}

//TRタグの色を変える3
function tr_on2(t,color){
    if (t.style.backgroundColor.indexOf("rgb") >= 0){
        var currentColor;
        var rgbStr = t.style.backgroundColor.slice(t.style.backgroundColor.indexOf('(') + 1,t.style.backgroundColor.indexOf(')'));
        var rgbValues = rgbStr.split(",");
        currentColor = "#";
        var hexChars = "0123456789ABCDEF";
        for (var i = 0; i < 3; i++)
        {
            var v = rgbValues[i].valueOf();
            currentColor += hexChars.charAt(v/16) + hexChars.charAt(v%16);
        }
        currentColor=currentColor.toLowerCase();
        if(currentColor==color){
            t.style.backgroundColor='#ffffff';
        }else{
            t.style.backgroundColor=color;
        }
    }else{
        if(t.style.backgroundColor==color){
            t.style.backgroundColor='#ffffff';
        }else{
            t.style.backgroundColor=color;
        }
    }
}
