// 8.49.14

function Select(folderName, hRef) {
if (document.layers) {
     document.BUF.src = hRef;
     }
else
     if (document.all && !document.getElementById)
          this.frames.BUF.location.href = hRef;
     else
     if (document.getElementById) {
          nav = document.getElementById('NAV');
          nav.style.cursor = "wait";
          i = 0;
          for (++i; i < document.anchors.length; ++i)
             {
             var anc = document.anchors[i];
             if (anc.name == folderName) {
                 anc.style.cursor = "wait";
                 break;
                 }
             }
          document.getElementById('BUF').src  = hRef;
          }
}

function BufLoaded(folder) {

var ie4= (document.all && !document.getElementById);
if (ie4)
     parent.document.all["NAV"].innerHTML = parent.BUF.document.body.innerHTML;
else
if (!document.layers) {
     var nav = parent.document.getElementById("NAV");
     nav.innerHTML = parent.window.frames['BUF'].document.getElementById('NAVBODY').innerHTML;
     nav.style.cursor = "default";
     }

if (folder == "") {
    if (parent.document.srchnav)
         parent.document.srchnav[0].focus();
    else
         tryFocus(parent.document.anchors[1]);
    }
else
     {
     i = 0;
     for (++i; i < parent.document.anchors.length; ++i)
         {
         var anc = parent.document.anchors[i];
         if (anc.name == folder) {
             tryFocus(anc);
             break;
             }
         }
     }
}

function tryFocus(obj)
{
if (obj && typeof obj.focus != "undefined" && !obj.disabled)
{
   obj.focus();
   return false;
}
return true;
}
function SelectCRefNS4(TgtUrl, SaveWarn, HideNav) {
document.cookie="HideNav=" + HideNav;
top.document.location.href = TgtUrl;
}

function goToAddToFavAnchor(doc,contentFrameName)
{
var anc=null;
i = -1;
for (++i; i < doc.anchors.length; ++i)
{
anc = doc.anchors[i];
if (anc.name == "AddToFavorites")
{
    if (contentFrameName.length>0)
      saveWarning(contentFrameName,null,'_top',anc.href);
    else
      open(anc.href,'_top');
    return;
}
}
}