﻿
function checkWeekday(weekday , thisHour, thisMin){

	var today = new Date();
	programTime = thisHour*100 + thisMin;
	nowTime = today.getHours()*100 + today.getMinutes();

	if ( (programTime < 700) && (weekday == (today.getDay()+1)%7 )){
		programTime += 2400;
	}

	if ( (weekday == today.getDay()) || programTime > 2400 ){
		document.write("☆");

		if (nowTime < programTime-100 ){
			document.write("今日！");
		}else if ((programTime-100 <= nowTime) && (nowTime < programTime  ) ){
			document.write("もうすぐ放映!");
		}else if ((programTime <=nowTime) && ( nowTime <= programTime+100) ){
			document.write("放映中!");
		}else if (programTime+100 < nowTime){
			document.write("今日でした");
		}
	}
	//document.write("weekday:" + today + "/" + weekday + "/" + today.getDay());

}


