<!--
function memlog()
{
	if(document.mem_log.id.value != "fairness"){
		alert("ＩＤが違います。\n入力し直してください");
	}
	else{
		setCookie("KID","fairness");
		self.location.href = "/fairwind/fairwind.html";
	}
}

function setCookie(theName,theValue)
{
	setDay = new Date();
	setDay.setFullYear(setDay.getFullYear() + 1);
	expDay = setDay.toGMTString();
	document.cookie = theName + "=" + escape(theValue) + ";expires=" + expDay;
	return true;
}

function getCookie(theName)
{
	theName += "=";
	theCookie = document.cookie + ";";

	start = theCookie.indexOf(theName);
	if (start != -1)
	{
		end = theCookie.indexOf(";",start);
		return unescape(theCookie.substring(start + theName.length,end));
	}
	return false;
}
//-->
