// JavaScript Document
var url="";
var num="";
var detailURL="";
function wopen(num)
{ 
 url="http://maps.sz-map.com/emap/topicmaps/sztest/indexdetail.jsp?functionID=locate&featureID="+num;
 window.open(url,'_blank','channelmode=0,directories =0,screenX=0,screenY=0,left=0,top=0,width=1020,height=625,resizable=yes,titlebar=yes,toolbar=0,menubar=0,status =1,location=0');
}
function openMap(bm,name){
    document.body.scrollTop=50;
	var url="http://bit.sz-map.com/emap/bitmap/entermaps/index.jsp?feaId="+bm+"&feaName="+name;
	window.open(url,'_blank','left=250,top=150,width=570,height=420');
} 	
function dwopen(name)
{  //url="http://maps.sz-map.com/emap/topicmaps/sztest/index.htm#?functionID=locate&featureID=32500235&imgWidth=728&imgHeight=450&forward=post.jsp";
//detailURL = "http://maps.sz-map.com/emap/topicmaps/sztest/map?functionID=queryDetail&featureID=32500235&imgWidth=728&imgHeight=450&forward=detailsim.jsp";
  var id;
  if(name=='gjqcc') id=1070132;
  if(name=='gsxdz') id=31003609;
  if(name=='dtzx') id=32500235;
  
   url="http://maps.sz-map.com/emap/topicmaps/sztest/indexdetail.jsp?functionID=locate&featureID="+id;

  // window.open(detailURL,'rightFrame2','channelmode=1,directories =0,screenX=0,screenY=0,left=1,top=58,width=223,height=260,resizable=no,titlebar=no,toolbar=0,menubar=0,status=0,location=0,scrollbars=0');
if(name=='tz') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040013&imgWidth=728&imgHeight=450&forward=post.jsp";

  if(name=='fqsa') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040015&imgWidth=728&imgHeight=450&forward=post.jsp";
 
if(name=='dhdj') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040017&imgWidth=728&imgHeight=450&forward=post.jsp";
  if(name=='hptc') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040019&imgWidth=728&imgHeight=450&forward=post.jsp";
  if(name=='ty') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040022&imgWidth=728&imgHeight=450&forward=post.jsp";
   if(name=='gfh') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040024&imgWidth=728&imgHeight=450&forward=post.jsp";
  if(name=='jdmy') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040030&imgWidth=728&imgHeight=450&forward=post.jsp";
 if(name=='slypj') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040034&imgWidth=728&imgHeight=450&forward=post.jsp";
if(name=='jh') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040041&imgWidth=728&imgHeight=450&forward=post.jsp";//
    if(name=='csbs') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040049&imgWidth=728&imgHeight=450&forward=post.jsp";//金帝城市别墅

  if(name=='sjjh') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040051&imgWidth=728&imgHeight=450&forward=post.jsp";//四季晶华
  if(name=='tchy') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040052&imgWidth=728&imgHeight=450&forward=post.jsp";//天辰
if(name=='xjht') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040484&imgWidth=728&imgHeight=450&forward=post.jsp";//胥江花庭
if(name=='dcsj') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040485&imgWidth=728&imgHeight=450&forward=post.jsp";//东城世纪广场
if(name=='fxxc') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040486&imgWidth=728&imgHeight=450&forward=post.jsp";//福星

if(name=='hfhy') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040487&imgWidth=728&imgHeight=450&forward=post.jsp"; //惠丰

if(name=='sdg') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040488&imgWidth=728&imgHeight=450&forward=post.jsp";//圣地哥
if(name=='thy') url="http://maps.sz-map.com/emap/topicmaps/szfcmap/index.htm#?functionID=locate&featureID=1040489&imgWidth=728&imgHeight=450&forward=post.jsp";//太湖缘
window.open(url,'_blank','channelmode=0,directories =0,screenX=0,screenY=0,left=0,top=0,width=1020,height=625,resizable=yes,titlebar=yes,toolbar=0,menubar=0,status =1,location=0');

}

function xopen(id,name,x,y)
{
     url="http://maps.sz-map.com/emap/topicmaps/szframe/index.jsp?functionID=locate&featureID="+id+"&poName="+name+"&poX="+x+"&poY="+y;
 //alert(url);
 window.open(url,'_blank','channelmode=0,directories=0,screenX=0,screenY=0,left=0,top=0,width=798,height=510,resizable=0,titlebar=0,toolbar=0,menubar=0,status=1,location=0');
     }

function xopen2(id,name,x,y)
{
     url="http://maps.sz-map.com/emap/topicmaps/szframe2/index.jsp?functionID=locate&featureID="+id+"&poName="+name+"&poX="+x+"&poY="+y;
 //alert(url);
 window.open(url,'_blank','channelmode=0,directories=0,screenX=0,screenY=0,left=0,top=0,width=798,height=510,resizable=0,titlebar=0,toolbar=0,menubar=0,status=1,location=0');
     }

function xopen3(id,name,x,y)
{
     url="http://maps.sz-map.com/emap/topicmaps/mdframe/index.jsp?functionID=locate&featureID="+id+"&poName="+name+"&poX="+x+"&poY="+y;
 //alert(url);
 window.open(url,'_blank','channelmode=0,directories=0,screenX=0,screenY=0,left=0,top=0,width=798,height=510,resizable=0,titlebar=0,toolbar=0,menubar=0,status=1,location=0');
     }
     
function xopen4(id,name,x,y)
{
     url="http://maps.sz-map.com/emap/topicmaps/hqframe/index.jsp?functionID=locate&featureID="+id+"&poName="+name+"&poX="+x+"&poY="+y;
 //alert(url);
 window.open(url,'_blank','channelmode=0,directories=0,screenX=0,screenY=0,left=0,top=0,width=798,height=510,resizable=0,titlebar=0,toolbar=0,menubar=0,status=1,location=0');
     }
          
function webopen(a)
{var id,name,xy,url;
if(a=='yqgjblzx'){
id="1070127";
name="园区国际博览中心";
x="120.70103658934148";
y="31.325697043098174";
url="http://maps.sz-map.com/emap/topicmaps/szframe/index.jsp?functionID=locate&featureID="+id+"&poName="+name+"&poX="+x+"&poY="+y;
}
if(a=='glf'){
id="1170020";
name="格兰富水泵";
x="120.8068509812265";
y="31.31355621405363";
url="http://maps.sz-map.com/emap/topicmaps/szframe2/index.jsp?functionID=locate&featureID="+id+"&poName="+name+"&poX="+x+"&poY="+y;
}
 //alert(url);
 window.open(url,'_blank','channelmode=0,directories=0,screenX=0,screenY=0,left=0,top=0,width=798,height=510,resizable=0,titlebar=0,toolbar=0,menubar=0,status=1,location=0');
     }

function openweb(id)
{  
 var  url="http://maps.sz-map.com/emap/topicmaps/sztest/indexdetail.jsp?functionID=locate&featureID="+id;
window.open(url,'mapweb','channelmode=0,directories =0,screenX=0,screenY=0,left=0,top=0,width=1020,height=625,resizable=yes,titlebar=yes,toolbar=0,menubar=0,status =1,location=0');
  // window.open(detailURL,'rightFrame2','channelmode=1,directories =0,screenX=0,screenY=0,left=1,top=58,width=223,height=260,resizable=no,titlebar=no,toolbar=0,menubar=0,status=0,location=0,scrollbars=0');

}
function openwebroad(id)
{  
window.open('http://maps.sz-map.com/emap/topicmaps/sztest/index.htm?functionID=roadQuery&bufferName='+id+'&isLocate=true&bufferLayerName=道路中心线2','mapweb','channelmode=0,directories=0,screenX=0,screenY=0,left=100,top=100,width=1000,height=600,resizable=1,titlebar=no,toolbar=0,menubar=0,status=0,location=0,scrollbars=yes');
}
