﻿var max = 10
var min = 8
var CurrentSize = 8;
function upSize(Sender) {
	if (CurrentSize != max) {
		if(!CurrentSize) {
			CurrentSize = 8;
		}
		CurrentSize += 2;
	ApplyFontText(CurrentSize);
	}
}

function downSize(Sender) {
	if(!CurrentSize) {
		CurrentSize = 8;
	}
	if (CurrentSize != min) {
		CurrentSize -= 2
		ApplyFontText(CurrentSize);
	}
}
function ApplyFontText(intSize) {
	var objReturn = document.body;
	for(var intI=0;intI<objReturn.all.length;intI++) {
		if(objReturn.all[intI].type!='button' && objReturn.all[intI].type!='submit' && objReturn.all[intI].type!='reset') {
			objReturn.all[intI].style.fontSize = intSize+ "pt";
		}
	}

}