// JavaScript Document

var i = 1;
function changeFontSize(action)
{
	if(document.body.style.fontSize == "")
	{
		document.body.style.fontSize = "0.8em";
	}
	
	var size = parseFloat(document.body.style.fontSize);

	if(action == 'increase')
	{
		if(i <= 2)
		{
			document.body.style.fontSize = size + 0.2 + "em";
			i++;
		}
	}
	else if (action == 'reset')
	{
	document.body.style.fontSize = "0.8em";
	i=1;
	}
}