﻿/////////////////////////////////////////////
//////模块的界面类////////////////////////
/////////////////////////////////////////////
//地名查询客户端界面操作
JQuedm = Class.create(); 
JQuedm.prototype = {
   //初始化
    initialize: function(){
        
    },
     //创建地名查找div
    createdmczdiv:function(){
        ClearResult();
         G_Responser.Docxml=null;
         G_Responser.ParseXml=null; 
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null; 
        G_Responser.LJxml=null;
        G_Responser.zjssxml=null;
        G_Responser.ZJLxml=null;
         var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";
        var s_div=document.getElementById("s_menu");
        s_div.innerHTML="";
        var dmdiv = Util.createDiv("dmczdiv",null,null,210,141,null,null,null);
        opdiv.appendChild(dmdiv);
        var rdiv=document.getElementById("dmrdiv");
        if(rdiv!=null)
        {
            rdiv.innerHTML="";
            opdiv.removeChild(rdiv);
        }
        var xml=Util.GetXmlObj("config/LayerControl.xml");
       
        var tab=createQuetab("地名查找",xml);
        var dmtitlediv=Util.createDiv("dmtitlediv",null,null,210,41,null,null,null); 
        var titleimg=document.createElement("img");
        titleimg.alt="";
        titleimg.src="images/button/地名查找.PNG";   
        titleimg.style.cursor="hand";
        titleimg.onclick=DmTitleClick;  
        dmtitlediv.appendChild(titleimg); 
        dmdiv.innerHTML='';
        dmdiv.appendChild(dmtitlediv); 
        dmdiv.appendChild(tab);
        var strhtml='<hr/>说明：<br/>选择所查找的地名类型，输入要查找的地名关键词，点击“查询”，列出查找结果。点击查找的地名，高亮显示。';
        createRemarkDiv(strhtml);
    },
    ParseResult:function(strxml){
        Parsexmldm(strxml,"地名");
    }
    
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//设施查询界面操作
JQuess=Class.create();
JQuess.prototype = {
    //初始化
    initialize: function(){
        
    },
    //创建服务设施查询二级菜单
    createfwssdiv:function(){
        var s_div=document.getElementById("s_menu");
        s_div.innerHTML="";
        var s_table=document.createElement("table");
        s_table.style.height="26px";
        s_table.cellPadding="0";
        s_table.cellSpacing="0";
        var newR0=s_table.insertRow();
        var newC0=newR0.insertCell();  
        newC0.innerHTML="&nbsp;&nbsp;"

        var newR00 = s_table.insertRow();
        var newC00 = newR00.insertCell();
        newC00.id = "fwsscx";
        newC00.innerHTML = '<img id="spanfwss" src="images/button/服务设施查询.png" style="cursor: hand;"   onmousedown="mousedownPics2(this.id)" />'; //&nbsp;&nbsp;<span id="spansscx" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics2(this.id)">市政设施查询</span>';
        var newRD0 = s_table.insertRow();
        var newCD0 = newRD0.insertCell();
        var ssdiv0 = Util.createDiv("fwssdiv", null, null, 210, 100, null, null, null);

        ssdiv0.style.display = "none";
        newCD0.appendChild(ssdiv0);

        var newR = s_table.insertRow();
        var newC=newR.insertCell();
        newC.id="szsscx";
        newC.innerHTML='<img id="spansscx" src="images/button/市政设施查询.png" style="cursor: hand;"   onmousedown="mousedownPics2(this.id)" />';//&nbsp;&nbsp;<span id="spansscx" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics2(this.id)">市政设施查询</span>';
        var newRD=s_table.insertRow();  
        var newCD=newRD.insertCell();
        var ssdiv=Util.createDiv("szssdiv",null,null,210,100,null,null,null); 

        ssdiv.style.display="none";
        newCD.appendChild(ssdiv);  
          
       
         
        var newR1=s_table.insertRow();
        var newC1=newR1.insertCell();
        newC1.id="zjszss";
        newC1.style.textAlign="left";
        newC1.innerHTML='<img id="spanzjss" src="images/button/最近市政设施查询.png" style="cursor: hand;" onmousedown="mousedownPics2(this.id)" />';//&nbsp;&nbsp;<span id="spanzjss" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;" onmousedown="mousedownPics2(this.id)">最近市政设施查找</span>';
        var newR2=s_table.insertRow();
        var newC2=newR2.insertCell();
        var zjssdiv= Util.createDiv("zjssdiv",null,null,210,100,null,null,null);
       zjssdiv.style.display="none";
       newC2.appendChild(zjssdiv); 
           
        s_div.appendChild(s_table);
        var seconddiv=document.createElement("div");
        seconddiv.id="seconddiv";
        seconddiv.style.width="210px";
        seconddiv.style.height="28px";
        seconddiv.style.verticalAlign="bottom";
        var secondspan=document.createElement('<span id="secondspan" style="font-family: 宋体; font-size: 13pt;">');
        seconddiv.appendChild(secondspan);
        seconddiv.style.display="none";
        s_div.appendChild(seconddiv);
    },
    createfwsscxdiv:function(){
        ClearResult();
        G_Responser.Docxml = null;
        G_Responser.ParseXml = null;
        G_Responser.LLxml = null;
        G_Responser.SKxml = null;
        G_Responser.naxml = null;
        G_Responser.Diwuxml = null;
        G_Responser.LJxml = null;
        G_Responser.zjssxml = null;
        G_Responser.ZJLxml = null;
        var seconddiv = document.getElementById("seconddiv");
        seconddiv.style.display = "block";
        var opdiv = document.getElementById("divOp");
        opdiv.innerHTML = "";
        var fwssdiv = document.getElementById("fwssdiv");
        fwssdiv.style.display = "block";
        fwssdiv.style.height = "100px";
        var ssdiv = document.getElementById("szssdiv");
        ssdiv.style.display = "none";
        ssdiv.style.height = "100px";
        var zjssdiv = document.getElementById("zjssdiv");
        zjssdiv.style.display = "none";
        zjssdiv.style.height = "100px";
        var xml = Util.GetXmlObj("config/LayerControl.xml");

        var tab = createQuetab("服务设施查询", xml);
        fwssdiv.innerHTML = '';
        fwssdiv.appendChild(tab);
        var strhtml = '<hr/>说明：<br/>选择所查找的设施类型，输入要查找的关键词，点击“查询”，列出查找结果。点击查找的设施高亮显示。';
        createRemarkDiv(strhtml);
    },
    createsscxdiv:function(){
        ClearResult();
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null; 
        G_Responser.LJxml=null;
        G_Responser.zjssxml=null;
        G_Responser.ZJLxml=null;
        var seconddiv=document.getElementById("seconddiv");
        seconddiv.style.display="block";
        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML = "";
        var fwssdiv = document.getElementById("fwssdiv");
        fwssdiv.style.display = "none";
        fwssdiv.style.height = "100px";
        var ssdiv=document.getElementById("szssdiv");
        ssdiv.style.display="block"; 
        ssdiv.style.height="100px"; 
        var zjssdiv=document.getElementById("zjssdiv");
        zjssdiv.style.display="none"; 
        zjssdiv.style.height="100px"; 
        var xml=Util.GetXmlObj("config/LayerControl.xml");
       
        var tab=createQuetab("设施查询",xml);
        ssdiv.innerHTML='';
        ssdiv.appendChild(tab);
        var strhtml='<hr/>说明：<br/>选择所查找的设施类型，输入要查找的关键词，点击“查询”，列出查找结果。点击查找的设施，显示设施详情并高亮显示。';
        createRemarkDiv(strhtml);
    },
    createzjssdiv:function(){
        ClearResult();
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null; 
        G_Responser.LJxml=null;
        G_Responser.zjssxml=null;
        G_Responser.ZJLxml=null;
        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";
        var seconddiv=document.getElementById("seconddiv");
        seconddiv.style.display = "block";
        var fwssdiv = document.getElementById("fwssdiv");
        fwssdiv.style.display = "none";
        fwssdiv.style.height = "100px";
        var ssdiv=document.getElementById("szssdiv");
        ssdiv.style.display="none"; 
        ssdiv.style.height="100px"; 
        var zjssdiv=document.getElementById("zjssdiv");
        zjssdiv.style.display="block";
        zjssdiv.style.height="110px"; 
        var xml=Util.GetXmlObj("config/LayerControl.xml");
       
        var tab=createQuetab("最近设施查询",xml);
        zjssdiv.innerHTML='';
        var tabletitle=createlisttitle("查询中点设置",2);
         zjssdiv.appendChild(tabletitle);
        zjssdiv.appendChild(tab);
         var strhtml='<hr/>说明：<br/>点击中点设置按钮，在地图上设置查询中心点，选择要查找的设施的类型，输入半径（米），点击“查询”，弹出查询结果。';
        createRemarkDiv(strhtml);
        
        //清除当前工具状态
//        toolbar.clearCurrentToolStatus();
//        map.mapControl.mapDiv.style.cursor="default";
//        map.mapControl.mapDiv.onclick=ZJSSmapClick;
    },
    ParseResult:function(strxml){
        Parsexmldm(strxml,"设施");
    },
    ParseFWResult:function(strxml) {
        Parsexmldm(strxml, "服务设施");
    },
    ParseZJss:function(xmlDoc){
        map.highControl.highDiv.innerHTML="";
        var x=parseFloat(StartPoint.split(",")[0]);
        var y=parseFloat(StartPoint.split(",")[1]);
        SetPointLab(x,y,0);   
        var lyelement=xmlDoc.documentElement.childNodes.item(0);
        var feature0= lyelement.childNodes.item(0);
        var displayfield=feature0.getAttribute("displayfield");
        var k; 
        for(var q=1;q<feature0.childNodes.length;q++)
       {
            childnode=feature0.childNodes.item(q);
            if(displayfield==childnode.getAttribute("Name"))
           {
                k=q;
                break;
           }  
       }
       var olddiv=document.getElementById("Remarkdiv");
        var opdiv=document.getElementById("divOp");
        if(olddiv!=null)
        {
            opdiv.removeChild(olddiv);
        }  
       var Opdiv=document.getElementById("divOp");
       var olddiv=document.getElementById("dmrdiv");
       if(olddiv!=null)
       {
            olddiv.innerHTML=""; 
            var pdiv=olddiv.parentNode; 
            pdiv.removeChild(olddiv);
       }
       var rdiv=document.createElement("div");
       rdiv.id="dmrdiv";
       rdiv.style.width="210px";
      
       var thirddiv=document.createElement("div");
        thirddiv.id="thirddiv";
        thirddiv.style.width="210px";
        thirddiv.style.height="28px";
        thirddiv.style.backgroundColor="#98c7e5";
        thirddiv.style.verticalAlign="bottom";
        rdiv.appendChild(thirddiv);
       
       var table=document.createElement("table");
       table.style.width="210px";
       table.style.height="28px";
       table.cellPadding="0";
       table.cellSpacing="0";
       var newR=table.insertRow();
       var newC1=newR.insertCell();
       newC1.style.textAlign="center";
       newC1.innerHTML='<span style="font-family: 宋体; font-size: 13pt;">查询结果</span>';
       var newC2=newR.insertCell();
       newC2.style.textAlign="center";
       newC2.innerHTML='<span style="font-family: 宋体; font-size: 10pt; cursor:pointer; color:#0000ff;" onclick="PrintNA(\'最近设施\');">打印</span>'
       thirddiv.appendChild(table); 
       
       var opheight=Opdiv.style.height;
       opheight=opheight.substring(0,opheight.length-2);
       var h=parseInt(opheight);
       var cdiv=document.createElement("div");
       cdiv.id="m_resultdiv";
       cdiv.style.height=(h-128)+"px";
       cdiv.style.overflowY="auto";
       
       var clickfunction="ZJssitemClick";
       
       var table1=document.createElement("table");
       table1.id="zjsstable"; 
       table1.style.width="210px";
       table1.cellPadding="6";
       table1.cellSpacing="6";
       for(var j=0;j<lyelement.childNodes.length;j++)
       {
            featurenode=lyelement.childNodes.item(j);
            var newRow=table1.insertRow();
            var newCell=newRow.insertCell();
            newCell.style.textAlign="left";
            var distext=featurenode.childNodes.item(k).text;
            if(distext==""||distext==null)
        	    distext="未命名";
            newCell.innerHTML='<span style="font-size:9pt; font-family: 宋体;"><a href="#hover" onclick="'+clickfunction+'('+j+')">'+(j+1)+'、'+distext+'</a></span>';
            var strp= featurenode.childNodes.item(0).text;
            var px=strp.split(",")[0];
            var py=strp.split(",")[1];
            var idnum= featurenode.childNodes.length-4;
            var fid= featurenode.childNodes.item(idnum).text;
            LabelZJssPoint(px,py,fid,j+1,featurenode.childNodes.item(k).text);
       }
       cdiv.appendChild(table1);
       rdiv.appendChild(cdiv);
       var zjssdiv=document.getElementById("zjssdiv");
        zjssdiv.style.height="280px";
        zjssdiv.appendChild(rdiv);  
//       Opdiv.appendChild(rdiv);
       if(table1.rows.length>0)  
      {
            var page_dodiv=document.createElement("div");
           page_dodiv.style.width="210px";
           page_dodiv.style.textAlign="center";
           page_dodiv.innerHTML="<span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">第</span><span id=\"ncurrentpage0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">/</span><span id=\"nPagescount0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">页，</span><span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"FrontPage1('zjsstable','ncurrentpage0');\">上一页</span>&nbsp;&nbsp;<span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"NextPage1('zjsstable','ncurrentpage0');\">下一页</span>";
           cdiv.appendChild(page_dodiv); 
          initTableParameter1("zjsstable","ncurrentpage0","nPagescount0");  
      } 
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var Popwinjxx;//路段禁限行显示窗口
JQueNA=Class.create();
JQueNA.prototype = {
    //初始化
    initialize: function(){
        
    },
    //创建路径查找二级菜单
    createljczdiv:function(){
        var s_div=document.getElementById("s_menu");
        s_div.innerHTML="";
        var s_table=document.createElement("table");
        s_table.style.height="26px";
        s_table.cellPadding="0";
        s_table.cellSpacing="0";
        var newR0=s_table.insertRow();
        var newC0=newR0.insertCell();   
        newC0.innerHTML="&nbsp;&nbsp;"  
        var newR=s_table.insertRow();
        var newC=newR.insertCell();
        newC.id="ldjxx";
        newC.style.textAlign="left";
        newC.innerHTML='<img id="spanjxx" src="images/button/路段禁限行.png" style="cursor: hand;"  onmousedown="mousedownPics3(this.id)" />';//&nbsp;&nbsp;<span id="spanjxx" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics3(this.id)">路段禁限行</span>';
        var newRD=s_table.insertRow();
        var newCD=newRD.insertCell();
        var ldjxxdiv=Util.createDiv("ldjxxdiv",null,null,210,100,null,null,null); 
        ldjxxdiv.style.display="none";
        newCD.appendChild(ldjxxdiv);
          
        var newR1=s_table.insertRow();
        var newC1=newR1.insertCell();
        newC1.id="zyljcx";
        newC1.style.textAlign="left";
        newC1.innerHTML='<img id="spanlj" src="images/button/最优路径查找.png" style="cursor: hand;" onmousedown="mousedownPics3(this.id)" />';//&nbsp;&nbsp;<span id="spanlj" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics3(this.id)">最佳路径查找</span>';
        var newR2=s_table.insertRow();
        var newC2=newR2.insertCell();
        var zyljdiv=Util.createDiv("zyljdiv",null,null,210,400,null,null,null);  
        zyljdiv.style.display="none";
        newC2.appendChild(zyljdiv);  
        s_div.appendChild(s_table);
        var seconddiv=document.createElement("div");
        seconddiv.id="seconddiv";
        seconddiv.style.width="210px";
        seconddiv.style.height="28px";
//        seconddiv.style.backgroundColor="#98c7e5";
        seconddiv.style.verticalAlign="bottom";
        seconddiv.style.display="none";
        var secondspan=document.createElement('<span id="secondspan" style="font-family: 宋体; font-size: 13pt;">');
        secondspan.innerText="";
        seconddiv.appendChild(secondspan);
        s_div.appendChild(seconddiv);
    },
    //创建路段禁限行操作界面
    createldjxdiv:function(){
        ClearResult();
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
         G_Responser.LLxml=null;
         G_Responser.SKxml=null; 
         G_Responser.naxml=null; 
         G_Responser.Diwuxml=null; 
         G_Responser.LJxml=null; 
         G_Responser.zjssxml=null; 
         G_Responser.ZJLxml=null; 
        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";

        var seconddiv=document.getElementById("seconddiv");
        seconddiv.style.display="block";

        var ldjxxdiv=document.getElementById("ldjxxdiv");
        ldjxxdiv.style.display="block";
        var zyljdiv=document.getElementById("zyljdiv"); 
        zyljdiv.style.display="none"; 

        ldjxxdiv.innerHTML="<br/>"; 
        var tabremark=document.createElement("table");
        var rnew=tabremark.insertRow();
        var cnew=rnew.insertCell();
        cnew.style.textAlign="left";
        var span=document.createElement("span");
        span.style.fontFamily="宋体";
        span.style.fontSize="9pt";
        span.style.color="blue";
        span.innerText="点击选择按钮，在地图上单击选择要查询的道路。";
        cnew.appendChild(span);
        
        var hr=document.createElement("hr");
        hr.style.height="1px";
        cnew.appendChild(hr);
        ldjxxdiv.appendChild(tabremark);
        
        var btn=document.createElement("button");
        btn.className='btn_2k3';
        btn.value="选择";
        btn.onclick=selectRoad;
        
        ldjxxdiv.appendChild(btn);
    },
    //创建最优路径分析操作界面
    createzyljdiv:function(){
        ClearResult();
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null; 
        G_Responser.LJxml=null;
        G_Responser.zjssxml=null;
        G_Responser.ZJLxml=null;
        var winheight=getWinHeight()-130;
        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";
        opdiv.style.height=winheight-77-122;
        opdiv.style.overflowY="auto";
        var seconddiv=document.getElementById("seconddiv");
        seconddiv.style.display="block";
         var ldjxxdiv=document.getElementById("ldjxxdiv");
        ldjxxdiv.style.display="none";
        var zyljdiv=document.getElementById("zyljdiv"); 
        zyljdiv.style.display="block"; 
        zyljdiv.innerHTML=""; 

        var nadiv=CreateNAQueDiv();
        zyljdiv.appendChild(nadiv);
    },
    //路段禁限行结果解析
    extshowwindow:function(str){
        var xmlDoc = loadFromXml(str);        
	    G_Responser.Diwuxml=xmlDoc;
    	
	    var tagName=xmlDoc.documentElement.childNodes.item(0).tagName;
	    if(tagName=="LayerNull" || tagName=="Nullnode")
	    {
	        alert("该路段没有禁限行信息！");
	        return; 
	    }
    	
        var center = new Ext.TabPanel({
	    id : "queryresult_center_id",
	    region : 'center',
	    margins : '3 3 3 1',
	    activeTab : 0,
	    defaults : {
		    autoScroll : true
	    }
        });
        var start=gettable(xmlDoc,0);
        var titlestr=xmlDoc.documentElement.childNodes.item(0).getAttribute("Roadname");
        center.add({
		    id : "detail_result_id",
		    layout : "fit",
		    title : "起点到终点",
		    html : start
	    }).show();
	    if(xmlDoc.documentElement.childNodes.item(0).childNodes.item(1)!=null)
	    {
	        var end=gettable(xmlDoc,1);
            center.add({
	            id : "detail_result_id2",
	            layout : "fit",
	            title : "终点到起点",
	            html : end
            }).show();
	    }
        
        Popwinjxx=Ext.get("popwindowjxx");
        if(Popwinjxx==null)
        {
              
             Popwinjxx=new Ext.Window({id:"popwindowjxx",title:"查询结果",width:350,height:230,layout:"fit",items:[center]});
             Popwinjxx.show();
        }  
        else
        {
             Popwinjxx.remove("queryresult_center_id",true);
             Popwinjxx=null; 
             Popwinjxx=new Ext.Window({id:"popwindowjxx",title:"查询结果",width:350,height:230,layout:"fit",items:[center]});
             Popwinjxx.show();
        }  
    },
    //最优路径地名查询结果解析
    ParseNaDmxml:function(xmlDoc){
        var quediv=document.getElementById("dmczdiv");
        quediv.style.display="none";

        var resultDiv=Util.createDiv("nadmxmldiv",null,null,210,197,null,null,null);
        var startnode=xmlDoc.documentElement.childNodes.item(0);
        var endnode=xmlDoc.documentElement.childNodes.item(1);
        var startdiv=Util.createDiv("",null,null,210,120,null,null,null);
        var enddiv=Util.createDiv("",null,null,210,120,null,null,null);
        resultDiv.appendChild(startdiv);
        resultDiv.appendChild(enddiv);
        var span=document.createElement("span");
        span.style.fontSize="9pt";
        span.style.color="#000000";
        span.style.fontFamily="宋体";
        span.innerText="起点选择";
        startdiv.appendChild(span);
        var span1=document.createElement("span");
        span1.style.fontSize="9pt";
        span1.style.color="#000000";
        span1.style.fontFamily="宋体";
        span1.innerText="终点选择";
        enddiv.appendChild(span1); 
        var srtable=GetNalist(0,startnode);
        startdiv.appendChild(srtable);
        var ertable=GetNalist(1,endnode);
        enddiv.appendChild(ertable);
//        var opdiv=document.getElementById("divOp");
//        opdiv.appendChild(resultDiv);
        var zyljdiv=document.getElementById("zyljdiv"); 
        zyljdiv.style.display="block"; 
        zyljdiv.appendChild(resultDiv); 
        var qdiv=Util.createDiv("",null,null,209,20,null,null,null);
        qdiv.innerHTML='<input id="Button1" class="btn_2k3" type="button" value="路径分析" onclick="NaClick()" />';
        resultDiv.appendChild(qdiv);
       var page_dodiv=document.createElement("div");
       page_dodiv.style.width="209px";
       page_dodiv.style.textAlign="center";
       page_dodiv.innerHTML="<span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">第</span><span id=\"ncurrentpage0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">/</span><span id=\"nPagescount0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">页，</span><span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"FrontPage2('natable0','ncurrentpage0');\">上一页</span>&nbsp;&nbsp;<span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"NextPage2('natable0','ncurrentpage0');\">下一页</span>";
        srtable.appendChild(page_dodiv); 
        if(document.getElementById("natable0")!=null && document.getElementById("natable0").rows.length>0)
        {
            initTableParameter2("natable0","ncurrentpage0","nPagescount0"); 
        }
        else
        {
            srtable.removeChild(page_dodiv); 
        }   
      var page_dodiv1=document.createElement("div");
       page_dodiv1.style.width="209px";
       page_dodiv1.style.textAlign="center";
       page_dodiv1.innerHTML="<span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">第</span><span id=\"ncurrentpage1\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">/</span><span id=\"nPagescount1\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">页，</span><span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"FrontPage3('natable1','ncurrentpage1');\">上一页</span>&nbsp;&nbsp;<span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"NextPage3('natable1','ncurrentpage1');\">下一页</span>";
        ertable.appendChild(page_dodiv1); 
        if(document.getElementById("natable1")!=null && document.getElementById("natable1").rows.length>0)
        {
            initTableParameter3("natable1","ncurrentpage1","nPagescount1"); 
        }
        else
        {
            ertable.removeChild(page_dodiv1); 
        }
    },
    //最优路径结果解析（地图标注部分）
    ParseNaXml:function(xmlDoc,win,highdiv){
        var xnode= xmlDoc.documentElement.childNodes.item(0);
        var ynode= xmlDoc.documentElement.childNodes.item(1);
        var vect=new VectorObjects(highdiv); 
        var xarr=xnode.text.split(",");
        var yarr=ynode.text.split(",");
        
        var sx=xarr[0];
        var ex=xarr[xarr.length-1];
        var sy=yarr[0];
        var ey=yarr[yarr.length-1];
        
        var xyarr=new Array();
        for(var k=0;k<xarr.length;k++)
        {
            var spoint=Util.getScreenPixel(new Coordinate(parseFloat(xarr[k])*1e16,parseFloat(yarr[k])*1e16), map.model.getZoom());
            var xz=(spoint.x+" ").split(".")[0];
            var yz=(spoint.y+" ").split(".")[0];
            xyarr[k]=xz+" "+yz; 
        }
        vect.IE_CreateHightLine(Util.createUniqueID(),xyarr);
        vect.DrawObjects(); 
        
        if(G_Responser.naxml!=null)
        {
            var rootnode=G_Responser.naxml.documentElement.childNodes.item(0);
            var pathnode=rootnode.childNodes.item(0); 
            for(q=0;q<pathnode.childNodes.length;q++)
            {
                var pointnode=pathnode.childNodes.item(q);
                var x=pointnode.childNodes.item(1).getAttribute("x"); 
                var y=pointnode.childNodes.item(1).getAttribute("y"); 
                var fid=pointnode.childNodes.item(1).getAttribute("name"); 
                fid+="_"+(q+1);
                var strqiao=pointnode.childNodes.item(2).childNodes.item(0).getAttribute("text");
                LaelDirectionPoint(win,map.highControl.highDiv,x,y,fid,q+1,strqiao);
            }   
        }
        
        SetPointLab(sx,sy,0);
        SetPointLab(ex,ey,1); 
    },
    //最优路径分析结果解析（列表部分）
    ParseNaListxml:function(xmlDoc){
        var t_distancediv=Util.createDiv("distancediv",null,null,197,20,null,null,null);
        var rootnode=xmlDoc.documentElement.childNodes.item(0);
        var totalnode=rootnode.childNodes.item(1);
        var totaldistance=totalnode.childNodes.item(1).childNodes.item(0).getAttribute("text");
        var totaltable=document.createElement("table");
        totaltable.cellPadding="0";
        totaltable.cellSpacing="0";
        totaltable.style.width="196px";
        var nRow=totaltable.insertRow();
        var nCell1=nRow.insertCell();
        nCell1.style.textAlign="left";
        nCell1.style.fontFamily="宋体";
        nCell1.style.fontSize="9pt";
        nCell1.innerText=totaldistance;
        var nCell2=nRow.insertCell();
        nCell2.innerHTML="<span style=\"font-family: 宋体; font-size: 9pt; color:blue; cursor:hand;\" onclick=\"PrintNA('路径分析');\">打  印</span>";
        t_distancediv.appendChild(totaltable);
        t_distancediv.innerHTML+="<hr/>";
        
       var pathnode= rootnode.childNodes.item(0);
       var path_table=document.createElement("table");
       path_table.id="NaListtable" 
       path_table.style.width="197px";
       path_table.cellPadding="6";
       path_table.cellSpacing="6";
       for(var j=0;j<pathnode.childNodes.length;j++)
       {
            itemnode=pathnode.childNodes.item(j);
            var newRow=path_table.insertRow();
            var newCell=newRow.insertCell();
            newCell.style.textAlign="left";
            if(j==0)
            {
                 newCell.innerHTML='<span style="font-size:9pt; color:blue; font-family: 宋体;">'+(j+1)+'、起点</span>';
            }
           else if(j==pathnode.childNodes.length-1) 
           {
                newCell.innerHTML='<span style="font-size:9pt; color:blue; font-family: 宋体;">'+(j+1)+'、终点</span>';
           } 
          else
          {
              var strqiao= itemnode.childNodes.item(2).childNodes.item(0).getAttribute("text");
                 if(strqiao.indexOf("立交桥")!=-1)
                {
                    var s_index;
                    if(strqiao.indexOf("在")!=-1)
                    {
                       s_index= strqiao.indexOf("在")+1;
                    }
                    else if(strqiao.indexOf("从")!=-1)
                    {
                        s_index= strqiao.indexOf("从")+1;
                    }
                    var q_name=strqiao.substring(s_index, strqiao.indexOf("-"));
                    newCell.innerHTML='<a href="#hover" onclick="LJitemClick(\''+q_name+'\')"><span style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;">'+(j+1)+'、'+itemnode.childNodes.item(2).childNodes.item(0).getAttribute("text")+'</span></a>';
                    //img=document.createElement('<img id ="'+id+'" src="images/nagif/'+num+'.gif" style="position:absolute; cursor:pointer; top:'+iy+'px; left:'+ix+'px;" onclick="LJitemClick(\''+q_name+'\')" />'); 
                } 
                else
               {
                    newCell.innerHTML='<span style="font-size:9pt; color:blue; font-family: 宋体;">'+(j+1)+'、'+itemnode.childNodes.item(2).childNodes.item(0).getAttribute("text");+'</span>';
               }          
          } 
       }
       //分页显示按钮div
       var page_dodiv=document.createElement("div");
       page_dodiv.style.width="197px";
       page_dodiv.style.textAlign="center";
       page_dodiv.innerHTML="<span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">第</span><span id=\"ncurrentpage\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">/</span><span id=\"nPagescount\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">页，</span><span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"FrontPage1('NaListtable','ncurrentpage');\">上一页</span>&nbsp;&nbsp;<span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"NextPage1('NaListtable','ncurrentpage');\">下一页</span>";

        var zyljdiv=document.getElementById("zyljdiv"); 
        zyljdiv.style.display="block"; 
       var dmczdiv=document.getElementById("dmczdiv");
       dmczdiv.style.display="none";
       var dmlistdiv=document.getElementById("nadmxmldiv");
       if(dmlistdiv!=null)
       {
            dmlistdiv.innerHTML="";
            zyljdiv.removeChild(dmlistdiv);  
       }    
      
       var buttondiv=Util.createDiv("buttondiv",null,null,197,20,null,null,null);
       buttondiv.innerHTML='<hr/><input id="Button1" class="btn_2k3" type="button" value="返    回" onclick="NaBack()" />' ;
       
       var narediv=Util.createDiv("distancediv",null,null,197,null,null,null,null); 
       narediv.innerHTML="<br/>";
       narediv.appendChild(t_distancediv);
       narediv.appendChild(path_table);
       narediv.appendChild(page_dodiv);
       narediv.appendChild(buttondiv); 
      
       zyljdiv.appendChild(narediv);
       initTableParameter1("NaListtable","ncurrentpage","nPagescount");      
    }
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//立交桥查询
JQueLJQ=Class.create();
JQueLJQ.prototype = {
    //初始化
    initialize: function(){
        
    },
    //创建立交查询二级菜单
    createLjcxseconddiv:function(){
        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";
        var s_div=document.getElementById("s_menu");
        s_div.innerHTML="";
        var s_table=document.createElement("table");
        s_table.style.height="26px";
        s_table.cellPadding="10";
        s_table.cellSpacing="6";
       var newR0=s_table.insertRow();
        var newC0=newR0.insertCell();  
       newC0.innerHTML="&nbsp;&nbsp;"   
        var newR=s_table.insertRow();

        var newC=newR.insertCell();
        newC.id="ljcx_scx";
        newC.style.textAlign="left";
        newC.innerHTML='<img id="spansscx" src="images/button/立交桥走向查询.png" style="cursor: hand;"  onmousedown="mousedownPics5(this.id)" />';//&nbsp;&nbsp;<span id="spansscx" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics5(this.id)">立交桥查询</span>';
       var newR1=s_table.insertRow();
       var newC1=newR1.insertCell();
       var ljzxdiv=Util.createDiv("ljzxdiv",null,null,210,210,null,null,null); 
       newC1.appendChild(ljzxdiv);
        s_div.appendChild(s_table);
        

        ljzxdiv.style.display="none";  
    },
    //创建立交查询div
    createljcxdiv:function()
    {
        ClearResult();
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null; 
        G_Responser.LJxml=null;
        G_Responser.zjssxml=null;
        G_Responser.ZJLxml=null;
        
        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";
       
        var ljzxdiv=document.getElementById("ljzxdiv");
        ljzxdiv.style.display="block"; 

        G_Requester.ReqLJCX();
        
    },
    //立交查询解析
    ParseLjcx:function(xmlDoc){   
        var lyelement=xmlDoc.documentElement.childNodes.item(0);
        var feature0= lyelement.childNodes.item(0);
        var displayfield=feature0.getAttribute("displayfield");
        var k; 
        for(var q=1;q<feature0.childNodes.length;q++)
       {
            childnode=feature0.childNodes.item(q);
            if(displayfield==childnode.getAttribute("Name"))
           {
                k=q;
                break;
           }  
       }
       var Opdiv=document.getElementById("divOp");
       var ljzxdiv=document.getElementById("ljzxdiv");
       ljzxdiv.innerHTML="";
       
       var opheight=Opdiv.style.height;
       opheight=opheight.substring(0,opheight.length-2);
       var h=parseInt(opheight);
       var cdiv=document.createElement("div");
       cdiv.id="m_resultdiv";
       cdiv.style.height="150px";
       cdiv.style.overflowY="auto";
       
       var clickfunction="LJitemClick";
       
       var table1=document.createElement("table");
       table1.id="ljqtable"; 
       table1.style.width="200px";
       table1.cellPadding="6";
       table1.cellSpacing="6";
       for(var j=0;j<lyelement.childNodes.length;j++)
       {
            featurenode=lyelement.childNodes.item(j);
            var newRow=table1.insertRow();
            var newCell=newRow.insertCell();
            newCell.style.textAlign="left";
            newCell.innerHTML='<span style="font-size:10pt; font-family: 宋体;">'+(j+1)+'、<a href="#hover" onclick="'+clickfunction+'(\''+featurenode.childNodes.item(k).text+'\')">'+featurenode.childNodes.item(k).text+'</a></span>';
            var strp= featurenode.childNodes.item(0).text;
            var px=strp.split(",")[0];
            var py=strp.split(",")[1];
            var idnum= featurenode.childNodes.length-4;
            var fid= featurenode.childNodes.item(idnum).text;
            LabelLJQPoint(px,py,fid,j+1,featurenode.childNodes.item(k).text);
       }
       cdiv.appendChild(table1);
       var printtable=document.createElement("table");
       printtable.style.width="210px";
       var prow=printtable.insertRow();
       var pcell=prow.insertCell();
       pcell.innerHTML='<input id="Buttonprt" class="btn_2k3" type="button" value="打  印" onclick="PrintNA(\'立交桥\');" />';
       ljzxdiv.appendChild(cdiv);
       ljzxdiv.appendChild(printtable);
      if(table1.rows.length>0) 
      {
            var page_dodiv=document.createElement("div");
           page_dodiv.style.width="210px";
           page_dodiv.style.textAlign="center";
           page_dodiv.innerHTML="<span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">第</span><span id=\"ncurrentpage0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">/</span><span id=\"nPagescount0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">页，</span><span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"FrontPage1('ljqtable','ncurrentpage0');\">上一页</span>&nbsp;&nbsp;<span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"NextPage1('ljqtable','ncurrentpage0');\">下一页</span>";
           cdiv.appendChild(page_dodiv);  
          initTableParameter1("ljqtable","ncurrentpage0","nPagescount0");   
      }
      var strhtml='<hr/>说明：<br/>点击左侧立交桥名称或在图上点击桥序号，打开立交桥flash图，在右侧“立交桥行车导向”中点击行车起止点，图上显示行车走向。';
      createRemarkDiv(strhtml);      
    }
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//路况信息查询
JQueLK=Class.create();
JQueLK.prototype = {
    //初始化
    initialize: function(){
        
    },
    //创建路况信息二级菜单
    createlkxxdiv:function(){
        var s_div=document.getElementById("s_menu");
        s_div.innerHTML="";
        var s_table=document.createElement("table");
        s_table.style.height="26px";
        s_table.cellPadding="10";
        s_table.cellSpacing="6";
       var newR0=s_table.insertRow();
        var newC0=newR0.insertCell(); 
        newC0.innerHTML="&nbsp;&nbsp;"    
        var newR=s_table.insertRow();
        var newC4=newR.insertCell();
        newC4.id="glskcx";
        newC4.style.textAlign="left";
        newC4.innerHTML='<img id="spanglsk" src="images/button/公路实况.png" style="cursor: hand;"  onmousedown="mousedownPics4(this.id)" />';//&nbsp;&nbsp;<span id="spanglsk" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics4(this.id)">公路实况</span>';
       var newR5=s_table.insertRow();
       var newC5=newR5.insertCell();
       var glskdiv=Util.createDiv("glskdiv",null,null,210,230,null,null,null); 
       newC5.appendChild(glskdiv);
       glskdiv.style.display="none";
        
        var newR1=s_table.insertRow();
        var newC1=newR1.insertCell();
        newC1.id="jtllcx";
        newC1.style.textAlign="left";
        newC1.innerHTML='<img id="spanjtll" src="images/button/交通流量信息.png" style="cursor: hand;"  onmousedown="mousedownPics4(this.id)" />';//&nbsp;&nbsp;<span id="spanjtll" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics4(this.id)">交通流量信息</span>';
        var newR3=s_table.insertRow();
        var newC3=newR3.insertCell();
         
        
        var newR2=s_table.insertRow();
        var newC=newR2.insertCell();
        newC.id="zjlxx";
        newC.style.textAlign="left";
        newC.innerHTML='<img id="spanzjl" src="images/button/占掘路信息.png" style="cursor: hand;"  onmousedown="mousedownPics4(this.id)" />';//&nbsp;&nbsp;<span id="spanzjl" style="font-size:9pt; color:blue; font-family: 宋体; cursor:pointer;"  onmousedown="mousedownPics4(this.id)">占掘路信息</span>';
        var newRz=s_table.insertRow();
        var newCz=newRz.insertCell();
        var zjldiv=Util.createDiv("zjldiv",null,null,210,230,null,null,null);
        newCz.appendChild(zjldiv);
        zjldiv.style.display="none";  
        
        s_div.appendChild(s_table);

        
    },
    //创建公路实况div
    createglskdiv:function()
    {
        ClearResult();
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null;
        G_Responser.LJxml=null;
        G_Responser.zjssxml=null; 
        G_Responser.ZJLxml=null;

        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";

        var glskdiv=document.getElementById("glskdiv");
        glskdiv.innerHTML="";
        glskdiv.style.display="block"; 
        var zjldiv=document.getElementById("zjldiv");
        zjldiv.style.display="none";  

        G_Requester.ReqGLSK();
    },
    //创建占掘路信息div
    createzjlxxdiv:function(){
        ClearResult();
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null; 
        G_Responser.LJxml=null;
        G_Responser.zjssxml=null;
        G_Responser.ZJLxml=null;
        var opdiv=document.getElementById("divOp");
        opdiv.innerHTML="";
        var glskdiv=document.getElementById("glskdiv");
        glskdiv.innerHTML="";
        glskdiv.style.display="none"; 
        var zjldiv=document.getElementById("zjldiv");
        zjldiv.style.display="block";   

        G_Requester.ReqTFSJPoint();
    },
    //创建交通流量div
    createjtlldiv:function()
    {
        G_Responser.Docxml=null;
        G_Responser.ParseXml=null;  
        G_Responser.LLxml=null;
        G_Responser.SKxml=null; 
        G_Responser.naxml=null; 
        G_Responser.Diwuxml=null;
        G_Responser.LJxml=null; 
        G_Responser.zjssxml=null;
        G_Responser.ZJLxml=null;
        var newwin=window.open("page/jtll.aspx");
        newwin.focus(); 
    },
    //公路实况解析
    ParseGLsk:function(xmlDoc)
    {   
        var lyelement=xmlDoc.documentElement.childNodes.item(0);
        var feature0= lyelement.childNodes.item(0);
        var displayfield=feature0.getAttribute("displayfield");
        var k; 
        for(var q=1;q<feature0.childNodes.length;q++)
       {
            childnode=feature0.childNodes.item(q);
            if(displayfield==childnode.getAttribute("Name"))
           {
                k=q;
                break;
           }  
       }
       var Opdiv=document.getElementById("divOp");
       var glskdiv=document.getElementById("glskdiv");
       glskdiv.innerHTML="";    
       var opheight=Opdiv.style.height;
       opheight=opheight.substring(0,opheight.length-2);
       var h=parseInt(opheight);       
       var clickfunction="SKClick";
       
       var table1=document.createElement("table");
       table1.id="glsktable"; 
       table1.style.width="200px";
       table1.cellPadding="6";
       table1.cellSpacing="6";

       for(var j=0;j<lyelement.childNodes.length;j++)
       {
            featurenode=lyelement.childNodes.item(j);
            var newRow=table1.insertRow();
            var newCell=newRow.insertCell();

            newCell.style.textAlign="left";
            newCell.innerHTML='<span style="font-size:10pt; font-family: 宋体;">&nbsp;&nbsp;'+(j+1)+'、<a href="#hover" onclick="'+clickfunction+'()">'+featurenode.childNodes.item(k).text+'</a></span>';
            var strp= featurenode.childNodes.item(0).text;
            var px=strp.split(",")[0];
            var py=strp.split(",")[1];
            var idnum= featurenode.childNodes.length-4;
            var fid= "monitor"+(j+1);
            LabelmonitorPoint(px,py,fid,j+1);
       }
       glskdiv.appendChild(table1);

      if(table1.rows.length>0) 
      {
           var page_dodiv=document.createElement("div");
           page_dodiv.style.width="210px";
           page_dodiv.style.textAlign="center";
           page_dodiv.innerHTML="<span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">第</span><span id=\"ncurrentpage0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">/</span><span id=\"nPagescount0\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">页，</span><span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"FrontPage1('glsktable','ncurrentpage0');\">上一页</span>&nbsp;&nbsp;<span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"NextPage1('glsktable','ncurrentpage0');\">下一页</span>";
           glskdiv.appendChild(page_dodiv);   
          initTableParameter1("glsktable","ncurrentpage0","nPagescount0");    
      } 
    var printtable=document.createElement("table");
    printtable.style.width="210px";
    var prow=printtable.insertRow();
    var pcell=prow.insertCell();
    pcell.innerHTML='<br/><input id="Buttonprt" class="btn_2k3" type="button" value="打  印"  onclick="PrintNA(\'公路实况\');" />'; 
    glskdiv.appendChild(printtable);
     var strhtml='<hr/>说明：<br/>在列表点击要查看路况的公路，或在地图上点击代表此公路的图标数字，弹出此公路的实时路况信息。';
     createRemarkDiv(strhtml);
    },
    //占掘路查询解析
    ParseTfsjxml:function(xmlDoc)
    {
       G_Responser.ZJLxml=xmlDoc;
       var lyelement=xmlDoc.documentElement.childNodes.item(0);
       var Opdiv=document.getElementById("divOp");
       var zjldiv=document.getElementById("zjldiv");
       zjldiv.innerHTML="";
       var opheight=Opdiv.style.height;
       opheight=opheight.substring(0,opheight.length-2);
       var h=parseInt(opheight);
       var clickfunction="ParseTfsjPosition";

       var table1=document.createElement("table");
       table1.id="tftable"; 
       table1.style.width="200px";
       table1.cellPadding="6";
       table1.cellSpacing="6";
       for(var j=0;j<lyelement.childNodes.length;j++)
       {
            featurenode=lyelement.childNodes.item(j);
            var newRow=table1.insertRow();
            var newCell=newRow.insertCell();
            newCell.style.textAlign="left";
            newCell.innerHTML='<span style="font-size:10pt; font-family: 宋体;">&nbsp;&nbsp;<a href="#hover" onclick="'+clickfunction+'('+j+')">'+featurenode.childNodes.item(1).text+'</a></span>';
       }
      if(table1.rows.length>0) 
      {
         //分页显示按钮div
       var page_dodiv=document.createElement("div");
       page_dodiv.style.width="210px";
       page_dodiv.style.textAlign="center";
       page_dodiv.innerHTML="<span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">第</span><span id=\"ncurrentpage1\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">/</span><span id=\"nPagescount1\" style=\"font-family: 宋体; color:red; font-size: 8pt; cursor:hand;\"></span><span style=\"font-family: 宋体; font-size: 8pt; cursor:hand;\">页，</span><span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"FrontPage1('tftable','ncurrentpage1');\">上一页</span>&nbsp;&nbsp;<span style=\"font-family: 宋体; color:blue; font-size: 8pt; cursor:hand;\" onclick=\"NextPage1('tftable','ncurrentpage1');\">下一页</span>"; 
       zjldiv.appendChild(table1);
       zjldiv.appendChild(page_dodiv); 
       initTableParameter1("tftable","ncurrentpage1","nPagescount1");  
      } 
    var printtable=document.createElement("table");
    printtable.style.width="210px";
    var prow=printtable.insertRow();
    var pcell=prow.insertCell();
    pcell.innerHTML='<br/><input id="Buttonprt" class="btn_2k3" type="button" value="打  印"  onclick="PrintNA(\'占掘路\');" />'; 
    zjldiv.appendChild(printtable); 
      var strhtml='<hr/>说明：<br/>点击左侧列出的有占掘路状态的道路，弹出占掘路原因，并在地图上显示此道路的占掘路位置。';
      createRemarkDiv(strhtml);
    }
}


