﻿function ShowOuterNav(prevLinkUrl, nextLinkUrl, prevLinkTitle, nextLinkTitle) {
        var outerPrevLink = $("#outer-prev-link");
        var outerNextLink = $("#outer-next-link");

        if (prevLinkUrl != "javascript:void(0);")
            $(outerPrevLink).attr("href", prevLinkUrl).attr("title", prevLinkTitle);
        else
            $(outerPrevLink).removeAttr("href");

        if (nextLinkUrl != "javascript:void(0);")
            $(outerNextLink).attr("href", nextLinkUrl).attr("title", nextLinkTitle);
        else
            $(outerNextLink).removeAttr("href");

        $("#outer-nav").show();
    };

String.prototype.endsWith = function(str) { return (this.match(str + "$") == str) }
String.prototype.startsWith = function(str) { return (this.match("^" + str) == str) }
String.prototype.trim = function() { return (this.replace(/^[\s\xA0]+/, "").replace(/[\s\xA0]+$/, "")) }