//Copyright (C) Kazuhide Senda. All Rights Reserved.
//JavaScript program
//js_name: dayco.js
//The copyright of this program maintains by Kazuhide Senda and does not abandon the right.
//Browser which can be inspected and the version.
//Netscape Communicator 4 later and Internet Explorer 4 later.
//However, it is not in the one to necessarily guarantee operation by the above-mentioned browser and the version.

//====== NO! ERROR SCRIPT MESSAGE (Netscape Communicator 3 later and Internet Explorer 4 later.) ======
//====== web_error off / local_error off ======
//if (document.URL!=null) onerror = new Function("return true");
//====== web_error off / local_error on ======
var L=location+"";
if ((L.indexOf("file://")<0) && (document.URL!=null))onerror = new Function("return true");

//曜日別カラー表示
var today = new Date();
var week = today.getDay();
var todayColor
if (week == 0) { //Sunday_color
    todayColor = "red";
}
if (week == 1) { //Monday color
    todayColor = "lime";
}
if (week == 2) { //Tuesday color
    todayColor = "darkcyan";
}
if (week == 3) { //Wednesday color
    todayColor = "blue";
}
if (week == 4) { //Thursday color
    todayColor = "deeppink";
}
if (week == 5) { //Friday color
    todayColor = "darkturquoise";
}
if (week == 6) { //Saturday color
    todayColor = "deepskyblue";
}

function setColor() {
         document.body.style.borderLeftColor = todayColor;
         document.body.style.borderTopColor = todayColor;
         var HRcol = document.all.tags("HR");
         if (HRcol != null) {
             for(var i=0; i<HRcol.length; i++) {
                 HRcol[i].style.color = todayColor;
             }
         area1.style.color = todayColor; //AREA設定（必要数分だけ、設定すること）
         area2.style.color = todayColor;
         area3.style.color = todayColor;
         area4.style.color = todayColor;
         area5.style.color = todayColor;
         area6.style.color = todayColor;
         area7.style.color = todayColor;
         area8.style.color = todayColor;
         }
}

