var curFontSize = 76;
var minFontSize =  60;
var maxFontSize = 100;

function changeFontSize(sizeDifference){
	curFontSize = parseInt(curFontSize) + parseInt(sizeDifference * 5);

	if(curFontSize > maxFontSize){
		curFontSize = maxFontSize;
	}else if(curFontSize < minFontSize){
		curFontSize = minFontSize;
	}
	setFontSize(curFontSize);
}

function setFontSize(fontSize){
	var stObj = (document.getElementById) ? document.getElementById('content_area') : document.all('content_area');
	document.body.style.fontSize = fontSize + '%';
}

function openPopCenter(url,height,width){
	// Get left and top coordinates so window can be opened centered on the screen
	var screenx = ((screen.availWidth / 2) - (width / 2))
	var screeny = ((screen.availHeight / 2) - (height / 2))

	var features = 'height=' + height + ',width=' + width +
		',toolbar=no,menubar=no,sizeable=yes,scrollbars=1,left=' + screenx + ',top=' + screeny;
	var newWin = window.open( url, "window", features);
	newWin.focus();
}

