function showTOC(divId) {
	document.getElementById("dir_"+divId).style.display="block";
	document.getElementById("link_"+divId).href="javascript:hideTOC('"+divId+"')";
	document.getElementById("link_"+divId).innerHTML="[-] Book Contents";
}

function hideTOC(divId) {
	document.getElementById("dir_"+divId).style.display="none";
	document.getElementById("link_"+divId).href="javascript:showTOC('"+divId+"')";
	document.getElementById("link_"+divId).innerHTML="[+] Book Contents";
}


function SiConvert(InputValueEntered, MultiplyByValue, OutputID){

var Product = InputValueEntered*MultiplyByValue;
var Product = Product.toFixed(2);
var FormElementTarget = "output_"+OutputID;
var ReturnFormElementTarget = "input_"+OutputID;

if (InputValueEntered == "")
{
alert("Please enter a value in the required field");
document.SiConvertForm[ReturnFormElementTarget].style.background="#ff0000";
}
else if (isNaN(InputValueEntered ))
{
alert("Please enter a number only");
document.SiConvertForm[ReturnFormElementTarget].style.background="#ff0000";
}

else
{
document.SiConvertForm[FormElementTarget].value=Product;
document.SiConvertForm[FormElementTarget].style.background="#99FF99";
//SiConvertForm[FormElementTarget].style.fontWeight="bold";
}

}




function show(divId) {
	document.getElementById("dir_"+divId).style.display="block";
	document.getElementById("link_"+divId).href="javascript:hide('"+divId+"')";
	document.getElementById("link_"+divId).innerHTML="[-]";
}

function hide(divId) {
	document.getElementById("dir_"+divId).style.display="none";
	document.getElementById("link_"+divId).href="javascript:show('"+divId+"')";
	document.getElementById("link_"+divId).innerHTML="[+]";
}


function SectionNameLink()
{
var URLValue = document.location.href;
var URLHost = window.location.hostname;


	if (URLHost == "amamos-stage.prov.ingenta.com")
		{
		URLValuePageNumber = URLValue.substring(77,80);
		//alert("amamos-stage.prov.ingenta.com");
		}
	else if (URLHost == "www.amamanualofstyle.com")
		{
		URLValuePageNumber = URLValue.substring(72,75);	
		//alert("http://www.oxfordscholarship.com:8080");
		}
	else    {
		URLValuePageNumber = URLValue.substring(78,81);	
		//alert("http://www.amamanualofstyle.com");
		}


//URLValuePageNumber = URLValue.substring(77,80);
//alert(URLValuePageNumber);

	if ((URLValuePageNumber >= "014") && (URLValuePageNumber <= "067"))
		{
		return ("<a href=\"/oso/public/jama/toc_section1.html\" class=\"trail-link\">Section 1. Preparing an Article for Publication</a>");
		}
	else if ((URLValuePageNumber >= "068") && (URLValuePageNumber <= "117"))
		{
		return ("<a href=\"/oso/public/jama/toc_section2.html\" class=\"trail-link\">Section 2. Style</a>");
		}
	else if ((URLValuePageNumber >= "118") && (URLValuePageNumber <= "154"))
		{
		return ("<a href=\"/oso/public/jama/toc_section3.html\" class=\"trail-link\">Section 3. Terminology</a>");
		}
	else if ((URLValuePageNumber >= "155") && (URLValuePageNumber <= "186"))
		{
		return ("<a href=\"/oso/public/jama/toc_section4.html\" class=\"trail-link\">Section 4. Measurement and Quantitation</a>");
		}
	else if ((URLValuePageNumber >= "187") && (URLValuePageNumber <= "206"))
		{
		return ("<a href=\"/oso/public/jama/toc_section5.html\" class=\"trail-link\">Section 5. Technical Information</a>");
		}


	else if ((URLValuePageNumber >= "207") && (URLValuePageNumber <= "240"))
		{
		return ("Index");
		}

	else
        {
	return ("Front Matter");
	}

}



function AZ_JAMA_LIST()
{

var URLValue = document.location.href;
var URLHost = window.location.hostname;


	if (URLHost == "amamos-stage.prov.ingenta.com")
		{
		URLValuePageNumber = URLValue.substring(77,80);
		//alert("amamos-stage.prov.ingenta.com");
		}
	else if (URLHost == "www.amamanualofstyle.com")
		{
		URLValuePageNumber = URLValue.substring(72,75);	
		//alert("http://www.oxfordscholarship.com:8080");
		}
	else    {
		URLValuePageNumber = URLValue.substring(78,81);	
		//alert("http://www.amamanualofstyle.com");
		}

var URLA = 207;
var URLA_COUNT = parseFloat(URLA);

var URLA = "p"+URLA+".html";

var URLB = URLA_COUNT+3;
var URLB = "p"+URLB+".html#xref-jama-9780195176339-div1-119";

var URLC = URLA_COUNT+4;
var URLC = "p"+URLC+".html#xref-jama-9780195176339-div1-117";

var URLD = URLA_COUNT+8;
var URLD = "p"+URLD+".html#jama-9780195176339-indexItem1-343";

var URLE = URLA_COUNT+9;
var URLE = "p"+URLE+".html#jama-9780195176339-indexItem1-451";

var URLF = URLA_COUNT+11;
var URLF = "p"+URLF+".html#jama-9780195176339-indexItem1-542";

var URLG = URLA_COUNT+12;
var URLG = "p"+URLG+".html#jama-9780195176339-indexItem1-595";

var URLH = URLA_COUNT+13;
var URLH = "p"+URLH+".html#jama-9780195176339-indexItem1-632";

var URLI = URLA_COUNT+14;
var URLI = "p"+URLI+".html#jama-9780195176339-indexItem1-689";

var URLJ = URLA_COUNT+16;
var URLJ = "p"+URLJ+".html#jama-9780195176339-indexItem1-814";

var URLK = URLA_COUNT+17;
var URLK = "p"+URLK+".html#jama-9780195176339-indexItem1-826";

var URLL = URLA_COUNT+17;
var URLL = "p"+URLL+".html#jama-9780195176339-indexItem1-838";

var URLM = URLA_COUNT+18;
var URLM = "p"+URLM+".html#jama-9780195176339-indexItem1-897";

var URLN = URLA_COUNT+19;
var URLN = "p"+URLN+".html#jama-9780195176339-indexItem1-989";

var URLO = URLA_COUNT+20;
var URLO = "p"+URLO+".html#jama-9780195176339-indexItem1-1052";

var URLP = URLA_COUNT+21;
var URLP = "p"+URLP+".html#jama-9780195176339-indexItem1-1095";

var URLQ = URLA_COUNT+24;
var URLQ = "p"+URLQ+".html#jama-9780195176339-indexItem1-1243";

var URLR = URLA_COUNT+25;
var URLR = "p"+URLR+".html#jama-9780195176339-indexItem1-1258";

var URLS = URLA_COUNT+27;
var URLS = "p"+URLS+".html#jama-9780195176339-indexItem1-1354";

var URLT = URLA_COUNT+30;
var URLT = "p"+URLT+".html#jama-9780195176339-indexItem1-1498";

var URLU = URLA_COUNT+31;
var URLU = "p"+URLU+".html#jama-9780195176339-indexItem1-1569";

var URLV = URLA_COUNT+32;
var URLV = "p"+URLV+".html#jama-9780195176339-indexItem1-1598";

var URLW = URLA_COUNT+32;
var URLW = "p"+URLW+".html#jama-9780195176339-indexItem1-1632";

var URLX = URLA_COUNT+33;
var URLX = "p"+URLX+".html#jama-9780195176339-indexItem1-1650";

var URLY = URLA_COUNT+33;
var URLY = "p"+URLY+".html#jama-9780195176339-indexItem1-1653";

var URLZ = URLA_COUNT+33;
var URLZ = "p"+URLZ+".html#jama-9780195176339-indexItem1-1658";

if (URLValuePageNumber >= "207")
		{
		return ("<br/><a href=\""+URLA+"\" class=\"jama-index-link\">A</a><a href=\""+URLB+"\" class=\"jama-index-link\">B</a><a href=\""+URLC+"\" class=\"jama-index-link\">C</a><a href=\""+URLD+"\" class=\"jama-index-link\">D</a><a href=\""+URLE+"\" class=\"jama-index-link\">E</a><a href=\""+URLF+"\" class=\"jama-index-link\">F</a><a href=\""+URLG+"\" class=\"jama-index-link\">G</a><a href=\""+URLH+"\" class=\"jama-index-link\">H</a><a href=\""+URLI+"\" class=\"jama-index-link\">I</a><a href=\""+URLJ+"\" class=\"jama-index-link\">J</a><a href=\""+URLK+"\" class=\"jama-index-link\">K</a><a href=\""+URLL+"\" class=\"jama-index-link\">L</a><a href=\""+URLM+"\" class=\"jama-index-link\">M</a><a href=\""+URLN+"\" class=\"jama-index-link\">N</a><a href=\""+URLO+"\" class=\"jama-index-link\">O</a><a href=\""+URLP+"\" class=\"jama-index-link\">P</a><a href=\""+URLQ+"\" class=\"jama-index-link\">Q</a><a href=\""+URLR+"\" class=\"jama-index-link\">R</a><a href=\""+URLS+"\" class=\"jama-index-link\">S</a><a href=\""+URLT+"\" class=\"jama-index-link\">T</a><a href=\""+URLU+"\" class=\"jama-index-link\">U</a><a href=\""+URLV+"\" class=\"jama-index-link\">V</a><a href=\""+URLW+"\" class=\"jama-index-link\">W</a><a href=\""+URLX+"\" class=\"jama-index-link\">X</a><a href=\""+URLY+"\" class=\"jama-index-link\">Y</a><a href=\""+URLZ+"\" class=\"jama-index-link\">Z</a>");

}

	else
	{
	return("");	
	}


}