//changes the main paragraph on the page without having to load an entire new page

	function nextText()
		{
		if (currentText < (numTexts-1))
			{
			currentText = currentText + 1;
			changeText(newText[currentText]);
			}
			
		//else go to the next page
		else
			{
			top.location.href = nextPage;
			}
		}
		
	function prevText()
		{
		if (currentText > 0)
			{
			currentText = currentText - 1;
			changeText(newText[currentText]);
			}

		//else go to the previous page
		else
			{
			top.location.href = prevPage;
			}
		}


function changeText(changedText)
    	{
	    if (isIE4)
    	    {
        	document.getElementById("paragraph").innerText = changedText;
	        }
    
	    if (isW3C)
	        {
			var newNode = document.createTextNode(changedText);
			var oldNode = document.getElementById("paragraph").firstChild;
			var removedNode = document.getElementById("paragraph").replaceChild(newNode, oldNode);
			}
	    }
