function getNextParagraph() {
	if (currentParagraphNo >= lastParagraphNo)
		return;
	getParagraph(currentParagraphNo + 1);
}

function getPrevParagraph() {
	if (currentParagraphNo <= firstParagraphNo)
		return;
	getParagraph(currentParagraphNo - 1);
}

function getParagraph(p) {
	currentParagraphNo = p;
	var descText = descriptionArray[p];
	document.getElementById("itemPara").innerHTML = convertGlossaryText(descText);
	document.getElementById("nextText").style.display = (currentParagraphNo < lastParagraphNo) ? "inline" : "none";
	document.getElementById("prevText").style.display = (currentParagraphNo > firstParagraphNo) ? "inline" : "none";
}