<!--
var strNextUrl = "top.html"
var nExpTime = 10*24*60*60*1000;
function GetCookie(strName)
{
	var nReturn = 0;
	var nLoop = 0;
	var nLength = 0;
	var strNameEx = strName + "=";
	var strTemp = "";
	while (nLoop < document.cookie.length)
	{
		nLength = nLoop + strNameEx.length;
		if (document.cookie.substring(nLoop, nLength) == strNameEx)
		{
			strTemp = document.cookie.indexOf(";", nLength);
			if (strTemp == -1)
			{
				nReturn = document.cookie.substring(nLength, document.cookie.length);
			}
			else
			{
				nReturn = document.cookie.substring(nLength, strTemp);
			}
			break;
		}
		nLoop = document.cookie.indexOf(" ", nLoop) + 1;
		if (nLoop == 0)
		{
			break;
		}
	}
	return nReturn;
}
function SetCookie(strName, strValue)
{
	var dtExpire = new Date();
	dtExpire.setTime(dtExpire.getTime() + nExpTime);
	document.cookie = strName + "=" + strValue + "; expires=" + dtExpire.toGMTString();
}
function GetValue()
{
	var strCount;
	strCount = GetCookie("VisitCount");
	SetCookie("VisitCount", parseInt(strCount) + 1);
	return (parseInt(strCount) + 1);
}
function CheckPage()
{
	//もしも、訪問回数が3回目以降であれば、別のページへ移動する
	if (GetValue() > 2)
	{
		location.href=strNextUrl;
	}
}
//-->