
CssSetData = "default";



function setCookie(theName,theValue) {	/* クッキー生成 */
	if((theName != null) && (theValue != null)) 	{
		/* クッキーに期限を持たせない */
		document.cookie = theName + "=" + escape(theValue) + "; path=/";
		return true;
	}
	return false;
}



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;
}



function cssnormal() {	/* 文字サイズ「小」有効 */
	document.getElementById("default").disabled = false;
	document.getElementById("big").disabled = true;
}



function cssbig() {	/* 文字サイズ「大」有効 */
	document.getElementById("default").disabled = true;
	document.getElementById("big").disabled = false;
}





function normalset() {	/* 文字サイズ「小」セット */
	cssnormal();
	setCookie("csssetting","default");
}



function bigset() {	/* 文字サイズ「大」セット */
	cssbig();
	setCookie("csssetting","big");
}






/* クッキー取得 */
CookieCss = getCookie("csssetting");
if(CookieCss) {
	CssSetData = CookieCss;
} else {
	CssSetData = "default";
}


/* 文字サイズ「大」使用 */
if(CssSetData == "big") {
	cssbig();
}




