var thisSize = 0;
var sizeMin = -3;
var sizeMax = 3;

function sizeUp() {
    if (thisSize != sizeMax) thisSize += 1;
    sizeUpdate();
}
function sizeDown() {
    if (thisSize != sizeMin) thisSize -= 1;
    sizeUpdate();
}
function sizeUpdate() {
    document.body.style.fontSize = (9 + thisSize) + 'pt';
    document.getElementById('FontSizeValue').innerHTML = thisSize;
    eraseCookie('fontsize');
    createCookie('fontsize', thisSize, 60);
}
function sizeInit() {
    var size = readCookie('fontsize');
    if (size) {
        thisSize = parseInt(size);
        sizeUpdate();
    }
}

