// CWS April 2006 - lyle [at] cws [dot] net
// Resize text for entire page proportionally by adjusting the
// font-size CSS attribute of the BODY node.

function resize_text(amount) {
	var html_body = document.getElementsByTagName('body')[0];
	if (html_body) {
		with (html_body) {
			if (!style.fontSize) {
				var int_size = 75;
			} else {
				var int_size = parseInt(style.fontSize);
			}
			int_size += amount;
			html_body.style.fontSize = int_size + "%";
		}
	}
}