        function changePage() {
            var pageNo=document.forma.go.value;
            if(pageNo=="") return false;
            if(pageNo>maxpages) {
                alert("There are only " + maxpages +".");
            }            
            var addy="newmr_"+pageNo+".jsp";
            document.forma.action=addy;
            document.forma.submit();
        }
        function turnPage(number) {
            var addy="newmr_"+number+".jsp";
            location.href=addy;
        }
        function checkIt() {
            var testString="";
            testString=document.forma.go.value;
            var madeString="";
            for(var i=0; i<testString.length; i++) {
                var charCode=testString.charAt(i);
                if(charCode>='0' && charCode<='9') {
                    madeString=madeString+charCode;
                }
            }
            if(madeString>maxpages) {
                madeString="";
                alert("There are only 260 pages in the book.");
            }
            document.forma.go.value=madeString;
            document.forma.action="newmr_" + madeString + ".jsp";
        }
        function xreplace(checkMe){
            var rep="[)";
            var repwith="<";
            var temp = checkMe;
            var i = temp.indexOf(rep);
            while(i > -1){
                temp = temp.replace(rep, repwith);
                i = temp.indexOf(rep);
            }
            return temp;
        } 
        function insertfoot(num) {
            teststr=xreplace(footnotes[num]);
            var myDiv=document.getElementById("footer");
            myDiv.innerHTML=teststr;
        }     
        function insertend(num) {
            teststr=xreplace(endnotes[num]);
            var myDiv=document.getElementById("footer");
            myDiv.innerHTML=teststr;
        }