cookiename = "strval";
path="/";

function fontsizeChange(val)
{
    if (document.getElementById && document.createElement) {
        document.getElementById('change').className = val;
        weektime = 60 * 1000 * 60 * 24 * 7;
        expiresdate = addTime(new Date(), weektime);

        document.cookie = cookiename + "=" + val + ";expires=" + expiresdate + ";path=" + path;
	/*100709追加分*/	  
jQuery.noConflict();
			var $ = jQuery;
			var max = 0;
			var max2 = 0;

			$("h5.jisseki").each(function(){
				$(this).css("height",'');
				if ($(this).height() > max)
					max = $(this).height();

			});
			
			$(".point dd").each(function(){
				$(this).css("height",'');
				if ($(this).height() > max2)
					max2 = $(this).height();

			});
			
			$("h5.jisseki").css("height",max);
			$(".point dd").css("height",max2);
					  
/*100709追加分*/
    } else {
        alert('あなたのブラウザは文字サイズ変更未対応です。');
    }
}

function addTime(date, time) {
    date.setTime(date.getTime() + time);
    return date.toGMTString();
}

function getCookieValue(key) {
    key += "=";
    cookie = document.cookie;
    startindex = cookie.indexOf(key);

    if (startindex == -1) {
        return null;
    } else {
        cookie = cookie.substr(startindex + key.length);
    }

    endindex = cookie.indexOf(";");

    if (endindex != -1) {
        cookie.substr(0, endindex);
    }
    return cookie;
}
function getCookie(){
    if (document.cookie) {
        strval = getCookieValue(cookiename);
        if (strval != null) {
            fontsizeChange(strval);
        }
    }
}
