﻿var min = 80;
var max = 180;
function increaseFontSize() {
    var p = document.getElementsByTagName('body');
    for (i = 0; i < p.length; i++) {
        if (p[i].style.fontSize) {
            var s = parseInt(p[i].style.fontSize.replace("%", ""));
        } else {
            var s = 100;
        }
        if (s != max) {
            s += 10;
        }
        p[i].style.fontSize = s + "%"
    }
}
function decreaseFontSize() {
    var p = document.getElementsByTagName('body');
    for (i = 0; i < p.length; i++) {
        if (p[i].style.fontSize) {
            var s = parseInt(p[i].style.fontSize.replace("%", ""));
        } else {
            var s = 100;
        }
        if (s != min) {
            s -= 10;
        }
        p[i].style.fontSize = s + "%"
    }
}

function resetFontSize() {
    var p = document.getElementsByTagName('body');
    for (i = 0; i < p.length; i++) {
        if (p[i].style.fontSize) {
            var s = 100;
        } else {
            var s = 100;
        }
        if (s != min) {
            s = 100;
        }
        p[i].style.fontSize = s + "%"
    }
}


