

function f_getcookie (key) {
    tmp  = document.cookie+";";
    tmp1 = tmp.indexOf(key, 0);
    if(tmp1 != -1){
        tmp   = tmp.substring(tmp1, tmp.length);
        start = tmp.indexOf("=",0)+1;
        end   = tmp.indexOf(";",start);
        return(unescape(tmp.substring(start, end)));
    }
    return("");
}

function f_setcookie(key,val) {
    tmp = key + "=" + escape(val) + ";";
    document.cookie=tmp;
}

function f_locadcss () {
    styletype = f_getcookie('styletype');
    if (styletype == "") {
        styletype = "normal";
    }

    if (styletype == "normal") {
        document.write('<link rel="stylesheet" type="text/css" href="font_normal.css">');
    } else {
        document.write('<link rel="stylesheet" type="text/css" href="font_large.css">');
    }
}

function f_reload (val) {
  f_setcookie('styletype', val);
  window.location.reload();
}


