﻿function FontSize_GetCookie(sName) {
	var aCookie = document.cookie.split("; ");
	for (var i = 0; i < aCookie.length; i++) {
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]) {
			if (aCrumb.length > 1)
				return aCrumb[1];
			else
				return null;
		}
	}
	return null;
}
EnableFontSize = function() {
	var currentFontSize = FontSize_GetCookie("FontSize");
	if (typeof currentFontSize != 'undefined') {
		window.document.body.style.fontSize = currentFontSize;
	}
}
SetFontSize = function(size) {
	document.cookie = "FontSize=" + size + ";path=/";
	EnableFontSize();
}
EnableFontSize();
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();