function fepNav(chapter,page,first_page,last_page)
{
	var prevValue = String(page-1);
	var nextValue = String(page+1);
	var thisValue = String(page);

	document.write('<div id="fepNav">');



	document.write('<center><table><tr>');
	if (first_page==0)
	{
		document.write('<td><a href="'+chapter+prevValue+'.html"><img src="http://www.medrounds.org/global/prev_navarrow.jpg" border="0"></a><td>');
	}
	else
	{
		document.write('<td height="50" width="83">&nbsp;</td>');
	}
	
	document.write('<td>Page '+thisValue+'</td>');
	if (last_page==0)
	{
		document.write('<td><a href="'+chapter+nextValue+'.html"><img src="http://www.medrounds.org/global/next_navarrow.jpg" border="0"></a></td>');
	}
	else
	{
		document.write('<td height="50" width="83">&nbsp;</td>');
	}
	document.write('</tr></table></center></div>');

	if (last_page==1)
	{
		document.write('<CENTER>You have reached the end of the chapter. Please return to the ');
		document.write('<a href="../../index.html">index</a>.</CENTER>');
	}
	else
	{
		document.write('<CENTER>Return to the ');
		document.write('<a href="../../index.html">index</a>.</CENTER>');

	}


}