﻿function refnextpage()
{
    document.location = document.location.pathname+"?pjid="+ pjid + "&fid=" + nextfid;
}

function refpage()
{
    document.location = document.location.pathname+"?fid="+fid;
}

function reftree()
{
    InitSync();	
    zonel1.TabSel(zonel1.document.all.tab1);
}

function InitSync()
{
  if(typeof(treeobj) == "object")
  {
    //treeobj.ScrollXml="/xmlasp/TreeScrollXml.asp?fid="+top.fid;
    //treeobj.ScrollByXML();
    
    treeobj.ScrollIdStrs = ScrollIds;
    treeobj.DecomposeIdsStr();
    treeobj.ScrollByIds();
  }
}

function SetTreeWidth(doc){
    var w = Cookie.Read(treewidthckname);		    
    if(w!=null && w!=""){
        if(w=="1")
            //frames.fraRightFrame.frames.fraContentBar.document.all("showtoc").style.display = "block";
            doc.all("showtoc").style.display = "block";
        document.getElementById("fstMain").cols=w+",*";
    }    	
}

function dotreeresize(obj)
{
    Cookie.Write(treewidthckname, obj.width, true);
}

var strColumns_Current = "215,*";

function hidetoc()
{
  strColumns_Current = top.framesetMain.cols;
  
  top.framesetMain.cols = "1,*";
  top.zoner1.document.all("showtoc").style.display = "block";
}

function showtoc()
{
  top.framesetMain.cols = strColumns_Current;
  top.zoner1.document.all("showtoc").style.display = "none";
}