function upFont () {
	tmp = document.getElementById("contentSize")
	tmp2 = tmp.size
	tmp2 = parseInt(tmp2)
	tmp2 = tmp2 + 1
	tmp.size = tmp2
}

function downFont () {
	tmp = document.getElementById("contentSize")
	tmp2 = tmp.size
	tmp2 = parseInt(tmp2)
	tmp2 = tmp2 - 1
	tmp.size = tmp2
}

function goPDF () {
	tmp = document.getElementById("pdfInfo")
	window.open(tmp.title)
}

function emailLink() {
	NL = "%0A"
	SL = window.location.href
	PF = document.getElementById("pdfInfo")
	sPos = SL.indexOf("&")
	ePos = SL.indexOf("/content")
	BG = SL.substring(0, ePos)
	SL = SL.substring(0, sPos) + "%26" + SL.substring(sPos + 1, SL.length)
	tmpStr = document.getElementById("pdfInfo").innerHTML
	theHTML = tmpStr + NL + NL + "   Read the story in HTML format... "
	thePDF = NL + "   Read the story in Adobe PDF format... " + BG + PF.title + NL + "Comment:" + NL
	theFoot = "For more information please visit merckmedicus.com" + NL + "http://www.merckmedicus.com"
	window.open("mailto:?Subject=News story on MerckMedicus.com&Body=" + theHTML + SL + thePDF + NL + NL + theFoot)
}


var min = 8;
var max = 18;
function increaseFontSize() {
	var p = document.getElementsByTagName('p');
	for (i = 0; i < p.length; i++) {
		if (p[i].style.fontSize) {
			var s = parseInt(p[i].style.fontSize.replace("px", ""));
		} else {
			var s = 12;
		}
		if (s != max) {
			s += 1;
		}
		p[i].style.fontSize = s + "px"
	}
}
function decreaseFontSize() {
	var p = document.getElementsByTagName('p');
	for (i = 0; i < p.length; i++) {
		if (p[i].style.fontSize) {
			var s = parseInt(p[i].style.fontSize.replace("px", ""));
		} else {
			var s = 12;
		}
		if (s != min) {
			s -= 1;
		}
		p[i].style.fontSize = s + "px"
	}
}
