var today=new Date(); // Initialize Date in raw form
var date=today.getDate(); // Get the numerical date
var year=today.getFullYear(); // Get the year
var day = today.getDay(); // Get the day in number form (0,1,2,3,etc.)
var month=today.getMonth(); // Get the month

// Make day number value correspond to actual day name
var dayName=new Array("日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日");
var monthName= new Array("1","2","3","4","5","6","7","8","9","10","11","12");

var datestring = year + "年" + monthName[month] + "月" + date + "日 " + dayName[day];

function WriteToday()
{
    document.write(datestring);
}

var copyrightstring = "&copy;2002-" + year + " New Tang Dynasty Television. All Rights Reserved.";
function WriteCurrentYear()
{
    document.write(year);
}

function WriteCopyright()
{
    document.write(copyrightstring);
}


