
// クッキーの書き込み

function SetCookie(theValue)
{	
theName = "TAKAGICSS";
theDay = "30";
setDay = new Date();
setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
expDay = setDay.toGMTString();
document.cookie = theName + "="+escape(theValue)+";expires="+expDay+ ";path=/";
}

// クッキーの読み込み
function GetCookie()
{
theData = "";
theName = "TAKAGICSS=";
theCookie = document.cookie+";";
//alert("cookie : " + theCookie);
str = theCookie.indexOf(theName);
	if(str != -1)
	{
	end = theCookie.indexOf(";",str);
	theData = unescape(theCookie.substring(str + theName.length, end));
	}
	if(!theData){
	theData = "m";
	}
return theData;
}

//ボタンアクション
function changeFontSize(n)	{
	
	SetCookie(n);
	window.location.reload();

}

csstype = GetCookie();
document.write('<link rel="stylesheet" href="/common/css/style_' + csstype + '.css" type="text/css">');
//alert(csstype);
