// JavaScript Document

function WriteCookie(theNAME, theValue, theLimitDate){//cookie書き込み
	var thelimit = new Date();
	thelimit.setTime(thelimit.getTime() + (1000*60*60*24*theLimitDate));
	thelimit.toGMTString();
	document.cookie = theNAME +"="+ escape(theValue) +";path=/;"+"expires="+ thelimit +";";
	location.reload();
}
function DeleteCookie(theNAME, theValue){//cookie消去
	var thelimit = new Date();
	thelimit.setTime(thelimit.getTime() - (1000*60*60*24));
	thelimit.toGMTString();
	document.cookie = theNAME +"="+ escape(theValue) +";path=/;"+"expires=Mon,31-Dec-2002 23:59:59;";
	location.reload();

}

