var fontFile = new Array('','font1','font2')

var data = funcGetFontDate();
if (data != false) {
	document.write("<link rel = 'stylesheet' type='text/css' href='http://www.asahi-newstar.com/"+fontFile[data]+".css'>");
} else {
	document.write("<link rel = 'stylesheet' type='text/css' href='font2.css'>");
}

function funcGetFontDate() {
	intFontSize = funcGetCookie("FontSize")
	if (intFontSize) {
		return intFontSize;
	} else {
		return false;
	}
}
function funcSetCookie(strName, strValue) {
	if ((strName != null) && (strValue != null)) {
		document.cookie = strName + "=" + escape(strValue) + ";expires=Web, 01 Jan 2020 23:59:59 GMT";
		return true;
	} else {
		return false;
	}
}
function funcGetCookie(strName) {
	strName += "=";
	strCookie = document.cookie + ";";
	strat = strCookie.indexOf(strName);
	if (strat != -1) {
		end = strCookie.indexOf(";",strat);
		return strCookie.substring(strat + strName.length, end);
	}
	return false;
}
function funcFontChange(size) {
	if (funcSetCookie("FontSize", size)) {
//		alert("クッキーセーブ");
	} else {
//		alert("セーブ失敗");
	}
	location.href = document.location
//	document.f1.submit();
}
function funcViewCookie(strName) {
	intFontSize = funcGetFontDate("FontSize");
	alert(intFontSize);
}


//フレームの同時切り替え

function set2Frame(jpURL1,jpURL2)
{
//	parent.leftFrame.location.href    = jpURL1;
//	parent.mright.location.href = jpURL2;
}
