var textSize = 16

function changeFont(sign) {
	if (sign == 'inc') {
		if (textSize < 28) {
			textSize = textSize + 2
			applyFont()
			}
		}
	if (sign == 'dec') {
		if (textSize > 10) {
			textSize = textSize - 2
			applyFont()
			}
		}
	}
	
function applyFont() {
	smallTextSize = Math.round(.75 * textSize)
	marginSize = Math.round(.375 * textSize)
	
	var dv = document.getElementsByTagName('DIV')
	for (i = 0; i < dv.length; i++) {
		if (dv[i].className == 'vocab-list-small') {
			dv[i].style.fontSize = smallTextSize + 'px'
			}
		else {
			dv[i].style.fontSize = textSize + 'px'
			dv[i].style.marginTop = marginSize + 'px'
			dv[i].style.marginBottom = marginSize + 'px'
			}
		}
	}
