/*　現在の西暦を取得*/

function fncJudgmentNenshi(){

	strIndex = "index.html";
	strIndexNenga = "index_newyear.html";

	dtNow = new Date();
	intNowY = dtNow.getFullYear();
	intNowM = dtNow.getMonth() + 1;
	intNowD = dtNow.getDate();

	strTmp = location.href;
	aryTmp = strTmp.split("/");
	strNowFileName = aryTmp[aryTmp.length - 1];

//alert(intNowY + "/" + intNowM + "/" + intNowD);
	if(intNowM == 1 && (intNowD >=1 && intNowD <= 9)){
		//strIndexNengaにもfncJudgmentNenshi()を埋め込んだなら以下の判定も必要
//		if(strNowFileName != strIndexNenga){
			location.href = strIndexNenga;
//		}
	}else{
		//strIndexNengaにもfncJudgmentNenshi()を埋め込んだなら以下の判定及びリダイレクトも必要
//		if(strNowFileName != strIndex){
//			location.href = strIndex;
//		}
	}
}

