/*
include/jschedule/browserfunc.js (Last Update 2001.02.19)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   ESMPRO/JMSS WebClient (JSchedule) Version 6.0
   Copyright (C) NEC Corporation/NEC Soft, Ltd. 2001
   All rights reserved
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/

function getBrowserType(){
    if (!!document.all){
        return "IE";
    }else if (!!document.layers){
        return "NN";
    }else if (navigator.userAgent.match(/Gecko/i)!=null){
        return "N6"
    }else{
        return null;
//      return "NN";
    }
}

function changeTabColor(id,color){
    var x=getBrowserType();
    if(x=="IE"){
        document.all.tags("DIV")[id].style.backgroundColor=(color?color:"");
    }else if(x=="N6"){
        document.getElementById(id).style.backgroundColor=(color?color:"");
    }else if(x=="NN"){
        document.layers[id].bgColor=color;
    }
}
