﻿ //定义业务层
 var layer1=new CLDLayer();
 layer1.setId("CropInfoLayer");
 layer1.setName("企业信息显示层");
 var specialZoom=null;
 //清除业务层
 function clearalllayer()
 {
    try
    {
    maps.removeAllOverLay("CropInfoLayer");
    maps.removeAllOverLay("m_layerMark");
    maps.removeAllOverLay("m_layerBusLine");
    }
    catch(e)
    {
        //alert(e.message);
    }
 }
//查询按钮触发事件
function goSearchInfoList()
{
var obj=document.getElementById("info_keword");
 
         var keyword=obj.value;
        keyword=keyword.replace("'"," ");
        if(keyword=="请输入查询关键字"||keyword=="")
        {
            alert("请输入关键字!");
            obj.focus();
            obj.select();
            return false;
        }
    getDefaultLeftInfo(keyword);

}
function goSearchInfoListRe()
{
    var obj=document.getElementById("txtSearchText");
    var keyword=obj.value;
  
        keyword=keyword.replace("'"," ");
        if(keyword=="请输入查询关键字"||keyword=="")
        {
            alert("请输入关键字!");
            obj.focus();
            obj.select();
            return false;
        }
    getDefaultLeftInfoReGo(keyword);

        
}
//保存查询条件
function getDefaultLeftInfo(keyword)
{
    keyword=keyword.replace("|","");    
    var selectItem=document.getElementById("info_select_list").options[document.getElementById("info_select_list").selectedIndex].innerText;
    document.getElementById("PagerHiddenHtml").value="QueryInfoList|_______|"+keyword+"|^_^|"+selectItem;
    document.getElementById("txtOldKeworkword").value="";
    goSearchInfoListGo(1,keyword,selectItem);
    setClickOn(null);    
}
//结果再查询按钮触发事件
function BtnResearchCorp()
{    
    var obj=document.getElementById("txtResearchText");
    var keyword=obj.value;
    keyword=keyword.replace("'","");
    if(keyword=="")
    {
        alert("请输入关键字!");
        obj.focus();
        return false;
    }
    keyword=keyword.replace("|","");
    var oldkey=document.getElementById("PagerHiddenHtml");
    if(oldkey.value=="")
    {
       oldkey.value="QueryInfoList|_______|"+keyword+"|^_^|";
    }
    else
    {
        document.getElementById("txtOldKeworkword").value=keyword;
    }
    var str=oldkey.value.split("|_______|");
    if(str[0]=="QueryInfoList")
    {
        var temp=str[1].split("|^_^|");
        goSearchInfoListGo(1,temp[0],"",keyword);
    }
    else if(str[0]=="InfoListAuond")
    {
        goSearchInfoListAuondGo(1,str[1],str[2],str[3],str[4],keyword);
    }
    else if(str[0]=="goSearchInfoListType")
    {
        goSearchInfoListTypeGo(1,str[1],keyword);
    }
    setClickOn(null); 
}
//按分类查询
function goSearchInfoListType(type,go)
{
    if(go==0 || go=='0')
    {
        go=null;
    }
    goSearchInfoListTypeGo(1,type,"",go)
    document.getElementById("PagerHiddenHtml").value="goSearchInfoListType|_______|"+type;
}
//构建周边查询
function goSearchInfoListAuond(type,xyr,atype,id)
{  
    goSearchInfoListAuondGo(1,type,xyr,atype,id);
    document.getElementById("PagerHiddenHtml").value="InfoListAuond|_______|"+type+"|_______|"+xyr+"|_______|"+atype+"|_______|"+id;  
    
}
//去数据库取数据
function goSearchInfoListTypeGo(p,type,key,go)
{
    clearalllayer();
    var html=BAPublicSite_Default.getSearchListHtmlForType(p,type,key,go).value;
    showInfoHtmlToList(html);
}
//周边查询：去数据库去数据
function goSearchInfoListAuondGo(p,type,xyr,atype,id,old)
{
    var strxy=xyr.split("|");
    clearalllayer();
    //画圆   
    var circle=new CLDMarkerCircle(new CLDPoint(strxy[0],strxy[1]));
    circle.setId("myc001");
    circle.setR(strxy[2]);
    maps.addOverLay(circle,m_layerMark); 
    if(strxy[2]=='500')
    {
        specialZoom=6;
    }
    else if(strxy[2]=='800')
    {
        specialZoom=5;
    }
    else if(strxy[2]=='1000')
    {
        specialZoom=5;
    }
      else if(strxy[2]=='2000')
    {
        specialZoom=3;
    }
    
    var html=BAPublicSite_Default.getSearchListHtmlForAuond(p,type,xyr,atype,old).value;
    showInfoHtmlToList(html);
    
    if(document.getElementById("txtQueryAroundCoorY").value=="")
    {
       getCropInfoMarker(id,1);
    }
    else
    {
        maps.removeAllOverLay(m_layerBusLine); 
        var marker1=new CLDMarkerText(new CLDPoint(strxy[0],strxy[1]));//创建对象(参数:X,Y坐标)
        marker1.setId("mark_text_point");//唯一标识
        marker1.setTip('中心点'); //对象
        maps.addOverLay(marker1,m_layerBusLine);
    }
}
//处理按钮
function btnSearchSetOn(flg)
{
    var obj=document.getElementById("info_search");
    if(flg)
    {
        obj.onclick=function(){goSearchInfoList();};
        obj.className="s_inp_s";
    }
    else
    {
        obj.onclick=function(){return false;};
        obj.className="s_inp_s_no";   
            
    }
}
//查询结果处理
function goSearchInfoListGo(p,keyword,selectItem,rekeyword)
{
    btnSearchSetOn(false);
    clearalllayer();
    try
    {
        document.getElementById("leftContent").innerHTML="<p style='text-align:center;'>正在读取数据...<br><img src='images/lod.gif'></p>";
        ShowLefResult();
        window.setTimeout("getDataToHtml("+p+",'"+keyword+"','"+selectItem+"','"+rekeyword+"');",1)        
        btnSearchSetOn(true);
    }
    catch(e)
    {
        document.getElementById("leftContent").innerHTML="数据读取失败，请重新查询！";
        ShowLefResult();
        btnSearchSetOn(true);
    }    
}
//延迟操作
function getDataToHtml(p,keyword,selectItem,rekeyword)
{
    if(rekeyword=="undefined")
    rekeyword=null;
    var html=BAPublicSite_Default.getSearchListHtml(p,keyword,selectItem,rekeyword).value;
    showInfoHtmlToList(html);
}

//往地图上写数据
function showInfoHtmlToList(value)
{  
    var tempStr="";
    
    var html=value.split("|_^_^_^_|");
    document.getElementById("leftContent").innerHTML=html[0];
    //tempStr=html[0];
    ShowLefResult();
    
    document.getElementById("pager").innerHTML=html[1];
    var marker=html[2].split("|");    
    for(var i=0;i<marker.length;i++)
    {
        var m=marker[i].split(",");
        var marker1=new CLDMarker(new CLDPoint(m[1],m[2]));
        marker1.setDefaultImage("images/m"+(i+1)+".gif");
        marker1.setSelectImage("images/s"+(i+1)+".gif");
        marker1.setWarningImage("images/m"+(i+1)+".gif");
        marker1.setWidth(16);
        marker1.setHeight(18);
        marker1.setLeft(-8);
        if(m[3]!="")
        {
            marker1.setClick(m[3]);
        }
        marker1.setTip(null);
        marker1.setId("cropInfo"+m[0]);
        marker1.setTipOnMouse(false); //直接固定显示
        maps.addOverLay(marker1,layer1);
               
        //tempStr+="var marker1=new CLDMarker(new CLDPoint("+m[1]+","+m[2]+"));marker1.setDefaultImage('images/m"+(i+1)+".gif');marker1.setSelectImage('images/s"+(i+1)+".gif');marker1.setWarningImage('images/m"+(i+1)+".gif');marker1.setWidth(16);marker1.setHeight(18);marker1.setLeft(-8);if(m[3]!=''){marker1.setClick(m[3]);}marker1.setTip(null);marker1.setId('cropInfo"+m[0]+"');marker1.setTipOnMouse(false);maps.addOverLay(marker1,layer1);getCropInfoMarker("+m[0]+");"
    }
    if(html.length>3)
    {
       goTo=html[3];
    }if(marker.length>0&&html[2]!="")
    {
        var m=marker[0].split(",");
        eval(m[3]);
    }
    if(html.length>3)
    {
       maps.mapMoveToZoom(new CLDPoint(m[1],m[2]),html[3]);//定位到点
     
       specialZoom=html[3];
    }
    else
    {
//        specialZoom=6;
    }
    //var win=window.open();
    //win.document.write(tempStr);
}
//获取企业信息，标注到地图
function getCropInfoMarker(id,s)
{
    var info=BAPublicSite_Default.getCropInfoById(id).value.split("|^_^|");
    var x=info[1];
    var y=info[2];
    var name=info[0];
    var address=info[3];
    var phone=info[4];
    var url=info[6];
    var title="&nbsp;"+name;
    var html="<ul style='list-style:none; margin:0px; line-height:25px;MARGIN-left:20px;'><li>电话："+phone+"</li><li>地址："+address+"</li><li>网址："+url+"</li><li><span style='MARGIN-RIGHT:20px;cursor:hand;color:#0000ff;' onclick='cCarWinForSearch("+id+",\""+name+"\","+x+","+y+");' onmouseover=\"this.style.color='#ff0000'\" onmouseout=\"this.style.color='#0000ff'\">公交换乘</span><span style='MARGIN-RIGHT:20px;cursor:hand;color:#0000ff;' onclick='cAuonWinForSearch("+id+",\""+name+"\","+x+","+y+");' onmouseover=\"this.style.color='#ff0000'\" onmouseout=\"this.style.color='#0000ff'\">周边查询</span><span style='MARGIN-RIGHT:20px;cursor:hand;color:#0000ff;' onclick='cSiteWinForSearch("+id+",\""+name+"\","+x+","+y+");' onmouseover=\"this.style.color='#ff0000'\" onmouseout=\"this.style.color='#0000ff'\">周边站点</span></li></ul>";
    if(specialZoom==null)
    {
        specialZoom=6;
    }
    maps.mapMoveToZoom(new CLDPoint(x,y),specialZoom);
    new CLDMarkerPopWin(title,html,new CLDPoint(x,y),250,200)
    if(s)
    {
        var marker1=new CLDMarker(new CLDPoint(x,y));
        marker1.setDefaultImage("images/marker.gif");
        marker1.setSelectImage("images/marker.gif");
        marker1.setWarningImage("images/marker.gif");
        marker1.setWidth(20);
        marker1.setHeight(20);
        marker1.setTip(null);
        marker1.setTop(10);
        marker1.setLeft(-10);
        marker1.setClick("getCropInfoMarker("+id+");");
        marker1.setId("cropInfoTempMarker");
        maps.addOverLay(marker1,layer1);      
    }

}
//站点结果列表链接显示
function NaviToBusStationAB(siteID)
{
　　 var strCoord=BAPublicSite_Default.ShowSiteXY(siteID).value;
　　 var strwhere="and BusSiteID='" + siteID + "'";
　　 var strXY=strCoord.split('|');
　　 var XCoord=strXY[0];
　　 var YCoord=strXY[1];
　　 var name=strXY[2];
　　 var Allhtml=BAPublicSite_Default.ShowSiteResultList('1',strwhere).value;
　　 var html=Allhtml.split('：');
　　 var listhtml=html[1].split('|');
　　 var last=listhtml[0].split('；');
　　 var allline="";
　　 for (var i=0;i<last.length;i++)
　　 {
　　     if(i==0)
　　     {
　　       var delbr=last[0].split('<br/>');
　　       allline=allline+delbr[1];
　　     }
　　     else
　　     {
　　     　allline=allline+last[i];
　　     }
　　 }
　　 var title="<div>"+name+"（途经车次）</div>";
　　 var html="<table class=\"tab\"><tr><td><div class=\"bus_list\">"+allline+"</div></td></tr></table>";
    maps.mapMoveToZoom(new CLDPoint(XCoord,YCoord),6);
 　 new CLDMarkerPopWin(title,html,new CLDPoint(XCoord,YCoord),300,220)
}
function cCarWinForSearch(id,name,x,y)
{
 //查找最近站点
 var siteStr=GetAroundBusSite(id,x,y).split(",");
 
 //去数据库查最近站点
 
 //创建窗口
 var siteName=siteStr[0].split("|");
 var showSiteName=siteName[0];
 var read="readonly";
 var readT="true";
 var readF="false"; 
 if(showSiteName=="")
 {
    read="";
    readT="false";
    readF="false";
 }
 var title="公交换乘";
 var html="<table width='100%'border='0'cellspacing='1'cellpadding='4'><tr><td align='right'>起点：</td><td><input name='carInfoGoC'value='"+showSiteName+"'type='hidden'id='carInfoGoC'maxlength='20'/><input name='carInfoGoA'type='text'id='carInfoGoA'class='s_inpC' maxlength='20'/></td></tr><tr><td align='right'>终点：</td><td><input name='carInfoGoB'value='"+showSiteName+"' "+read+" type='text'id='carInfoGoB'class='s_inpC' maxlength='20'/></td></tr><tr><td align='right'>&nbsp;</td><td><input onclick='cCarWinForSearchGo("+id+",document.getElementById(\"carInfoGoA\").value,document.getElementById(\"carInfoGoB\").value,"+x+","+y+");' type='button'name='Submit'value='公交换乘'/></td></tr></table>";
 html="<div style='color:#555;width:260px;'>当前位置："+name+"<span style='MARGIN-left:10px;MARGIN-RIGHT:10px;cursor:hand;color:#0000ff;'onclick='var objA=document.getElementById(\"carInfoGoA\");objB=document.getElementById(\"carInfoGoB\");objB.value=document.getElementById(\"carInfoGoC\").value;objA.readOnly="+readF+";objB.readOnly="+readT+";objA.focus();objA.value=\"\"'onmouseover=\"this.style.color='#ff0000'\"onmouseout=\"this.style.color='#0000ff'\">到此处</span> <span style='cursor:hand;color:#0000ff;' onclick='var objA=document.getElementById(\"carInfoGoA\");objB=document.getElementById(\"carInfoGoB\");objA.value=document.getElementById(\"carInfoGoC\").value;objB.readOnly="+readF+";objA.readOnly="+readT+";objB.focus();objB.value=\"\"' onmouseover=\"this.style.color='#ff0000'\" onmouseout=\"this.style.color='#0000ff'\">从此处出发</span></div>"+html;
 new cldwin_xWin("cCarWinForSearch001",300,170,20,100,title,html); 
 var obj=document.getElementById("carInfoGoA");
 if(obj)
 {
    obj.focus();
 }
}
//公交换乘查询
function cCarWinForSearchGo(id,a,b,x,y)
{
    if(a==""|| b=="")
    {
        alert("请输入起点和终点!");
        var obj1=document.getElementById("carInfoGoA");
        var obj2=document.getElementById("carInfoGoB"); 
        if(obj1.readOnly==false)
        {
           obj1.focus();
        }
        else if(obj2.readOnly==false)
        {
            obj2.focus();
        }       
        return;
    }
    cldwin_cls("cCarWinForSearch001");
    QueryBusHuanChengGo(a,b);
}
//周边查询
function cAuonWinForSearch(id,name,x,y)
{
 var title="周边查询";
 var html="<div style='color:#555;width:260px;'>查询 "+name+" 周边的信息：</div><div class='WinAuondList'>距离：<input type='radio'name='AKewordForAundDis'value='400' checked/>400米<input type='radio'name='AKewordForAundDis'value='600'/>600米<input type='radio'name='AKewordForAundDis'value='800'/>800米<input type='radio'name='AKewordForAundDis'value='1000'/>1000米<br/><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"0\",\"Site\");' >公交</span><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"23\",\"Info\");'>银行</span><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"34\",\"Info\");'>商场</span><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"49\",\"Info\");'>宾馆</span><br /><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"46\",\"Info\");'>大厦</span><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"4\",\"Info\");'>学校</span><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"51\",\"Info\");'>酒店</span><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"12\",\"Info\");'>运动场馆</span><br/>或<input name='AKewordForAund'type='text'id='AKewordForAund'size='15' maxlength='20'/><input type='button'name='Submit'value='搜索' onclick='if(document.getElementById(\"AKewordForAund\").value==\"\"){alert(\"请输入关键字\");document.getElementById(\"AKewordForAund\").focus();return false;}cAuonWinForSearchGo("+id+",\""+name+"\","+x+","+y+",\"|\"+document.getElementById(\"AKewordForAund\").value,\"Info\");' /></div>";
 html+="<div style='color:#555;width:260px;'>提示：选择距离后直接点类型进行查找。</div>";
 new cldwin_xWin("cCarWinForSearch001",300,180,20,100,title,html); 
}

function cAuonWinForSearchGo(id,name,x,y,typ,go)
{
    var len="";
    var a=document.getElementsByName("AKewordForAundDis");
 
    for(var i=0;i<a.length;i++) 
    { 
        if (a[i].checked) 
        {
            len=a[i].value;
        } 
    }
    cldwin_cls("cCarWinForSearch001");
    goSearchInfoListAuond(typ,x+"|"+y+"|"+len,go,id)
}
function cSiteWinForSearch(id,name,x,y)
{
 var siteStr=GetAroundBusSite(id,x,y).split(",");
 var title="周边站点";
 var html="";
 html+="<div style='color:#555;width:260px;'>"+name+" 周边的站点：</div><ul class='WinSiteList'>";
 var tempHtml="";
 for(var i=0;i<siteStr.length;i++)
 {
    var site=siteStr[i].split("|");
    if(site[0]!="")
    {
        tempHtml+="<li><span onmouseover='this.style.color=\"#ff0000\"' onmouseout='this.style.color=\"#0000ff\"' onclick='cSiteWinForSearchGo("+id+",\""+site[0]+"\","+x+","+y+")'>"+site[0]+"</span></li>";
    }
 }
 if(tempHtml=="")
 {
    html="周边500米内没找到站点";
 }
 else
 {
    html+=tempHtml+"<div style='color:#555;width:260px;'>提示：点击站点名称可定位到相应站点</div>";
 }
 html+="</ul>";
 new cldwin_xWin("cCarWinForSearch001",300,170,20,100,title,html); 
}
function cSiteWinForSearchGo(id,n,x,y)
{
    //cldwin_cls("cCarWinForSearch001");
    NaviToStationByName(n);
}
 //生成随机ID
 function getRadeId()
 {
    var s = "ID"+ new Date().getYear()+ (new Date().getMonth()+1)+ new Date().getDate() + new Date().getHours()+ new Date().getMinutes()+ new Date().getSeconds()+ new Date().getMilliseconds();
	return s;
 }
 //换乘再查询
function QueryBusHuanChengGoList(txtStart,txtEnd)
{
    var html="<div style='margin:10px;'>未找完全匹配的站点，请从下面的列表中选择相关站点查询！<br>";
    document.getElementById("pager").innerHTML="";
    if(isSiteListForCar(txtStart))
    {
        if(isSiteListForCar(txtEnd))
        {
            QueryBusHuanChengGoListGo(txtStart,txtEnd);
            return;
        }
        else
        {
            html+="起点：<select id='txtReStart'><option value='"+txtStart+"'>"+txtStart+"</option></select><br>";
            html+="终点：<select id='txtReEnd' onchange='goThisSite(this.options[this.selectedIndex].value);'>"+getSiteListForCar(txtEnd)+"</select><br>"
        }
    }
    else
    {
        html+="起点：<select id='txtReStart'  onchange='goThisSite(this.options[this.selectedIndex].value);'>"+getSiteListForCar(txtStart)+"</select><br>";
        if(isSiteListForCar(txtEnd))
        {
            html+="终点：<select id='txtReEnd'><option value='"+txtEnd+"'>"+txtEnd+"</option></select><br>";
        }
        else
        {
            html+="终点：<select id='txtReEnd'  onchange='goThisSite(this.options[this.selectedIndex].value);'>"+getSiteListForCar(txtEnd)+"</select><br>";
        }        
    }
    html+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' name='Submit' value='' class='s_inp_s' onClick='QueryBusHuanChengRe()' /></div>";
    document.getElementById("leftContent").innerHTML=html;
    ShowLefResult();
}
function QueryBusHuanChengRe()
{
    var txtStart=document.getElementById("txtReStart").options[document.getElementById("txtReStart").selectedIndex].innerText;
    var txtEnd=document.getElementById("txtReEnd").options[document.getElementById("txtReEnd").selectedIndex].innerText;
    if(txtStart=="没有相关站点")
    {
        alert("没有相关站点，请重新输入开始站点名称");
        return;
    }
    if(txtEnd=="没有相关站点")
    {
        alert("没有相关站点，请重新输入终点站点名称");
        return;
    }
    QueryBusHuanChengGoListGo(txtStart,txtEnd);
}

function QueryBusHuanChengGoListGo(txtStart,txtEnd)
{
    var html=BAPublicSite_Default.btnQueryHuan_Click(1,txtStart,txtEnd).value;
    if(html=="")
    {
        html="没匹配的信息，请重新输入起点和终点名称查询。";
    }
    document.getElementById("leftContent").innerHTML=html;
    ShowLefResult();
}

function getSiteListForCar(keyword)
{
      var html="";
      for (intTmp=0;intTmp<ArrSiteList.length;intTmp++)
      {
          for(i=0;i<arrList[intTmp].length;i++)
          { 
            if (ArrSiteList[intTmp].substr(i, keyword.length).toUpperCase()==keyword.toUpperCase())
            {
                var temp=ArrSiteList[intTmp].split(",");
                html+="<option value='"+temp[1]+"'>"+temp[0]+"</option>";
            }
   　     }
 　　 }
 　　 if(html=="")
 　　 {
 　　   //先看看是不是企业名称
 　　   var str=BAPublicSite_Default.getCropInfoByName(keyword,"1").value;
 　　   if(str!=""&&str!=null)
 　　   {
             var strArray=str.split("|");
             for(var i=0;i<strArray.length;i++)
             {
                 crop=strArray[i].split(",");
                 var siteStr=GetAroundBusSite(crop[0],crop[2],crop[3]).split(",");
                 for(var i=0;i<siteStr.length;i++)
                 {
                    var site=siteStr[i].split("|");
                    if(site[0]!="")
                    {
                        html+="<option value='"+site[3]+"'>"+site[0]+"</option>";
                    }
                 }
             }
 　　   }
 　　   else
 　　   {
 　　       html="<option value='没有相关站点'>没有相关站点</option>";
 　　   }
 　　 }
 　　 return html;
}
function isSiteListForCar(keyword)
{
      var flg=false;
      for (intTmp=0;intTmp<arrList.length;intTmp++)
      {
        if (arrList[intTmp].toUpperCase()==keyword.toUpperCase())
        {
            flg=true;
            return flg;
        }
 　　 }
 　　 return flg;
}
function QueryBusHuanChengIsSite(txtStart,txtEnd)
{
    
}
function goThisSite(id)
{
    var html=BAPublicSite_Default.getSiteInfoById(id).value;
    if(html!="")
    {
        var arry=html.split("|^_^|");
        maps.mapMoveToZoom(new CLDPoint(arry[1],arry[2]),maps.thisZoom);//定位到点
        new CLDMarkerTemp(new CLDPoint(arry[1],arry[2]));
        
    }
}
function showSiteListForLine(id,name)
{
    var html=BAPublicSite_Default.getBusSiteList(id).value;
    var str=html.split("|");
    var out="<ul class='WinSiteList'>";
    for(var i=0;i<str.length;i++)
    {
        var site=str[i].split(",");
        out+="<li onmouseover=\"this.style.color='#ff0000'\"onmouseout=\"this.style.color='#0000ff'\" onclick='goThisSite("+site[4]+");return false;'>"+site[0]+"</li>";
    }
    out+="</ul>";
 var title=name+"所有站点";
 var html="<div style='color:#555;'>"+out+"</div>";
 new cldwin_xWin("cCarWinForSearch001",str.length>30?500:300,180,20,100,title,html);     
}
function UrlCropGoToId(id)
{
    try
    {
    var html=BAPublicSite_Default.getSearchListHtmlForId(id).value;
    showInfoHtmlToList(html);
    }
    catch(e)
    {
        //alert(e.message);
    }
}
function UrlCropGoToKey(key)
{
    try
    {
        document.getElementById("info_keword").value=key;
        goSearchInfoList();
    }
    catch(e)
    {
        //alert(e.message);
    }
}