  function enterperisemaplabel(name,address,phoneNo,liaisong,zipCode,fax,website,description,label,longitude,latitude){ 
     var icon = null;
     icon = new LTIcon();
     label = notBlank(label) ? label : "../../../EbizResourceSet/images/map/BG/dot.gif";
　　 icon.setImageUrl(label);
   
     pt = new LTPoint(longitude, latitude);
     var text = new LTMapText(pt);
　   text.setLabel("<table><tr><td nowrap='nowrap'>"+name+"</td></tr></table>"); 
     maps.addOverLay( text ); 
 
     var marker = new LTMarker( pt,icon );
     maps.addOverLay( marker );
     LTMarker.setInfoWinWidth( 200 );
     LTMarker.setInfoWinHeight( 150 );

     var ctn = generateWinInfolabel(name,address,phoneNo,liaisong,zipCode,fax,website,description) ;
     if (ctn && trim(ctn)!="")           
       LTEvent.addListener( marker , "mouseover" , function(){ marker.openInfoWinHtml(ctn) } );   
  }
  
  // 生成当鼠标移动到marker上时显示的内容
 function generateWinInfolabel(name,address,phoneNo,liaisong,zipCode,fax,website,description) {
    var result = "";
    result += "<table>";
      
  if (name && trim(name!="")) {
    result += "<tr>"+"<td style='word-break:break-all'>";	 
    result += "公司名称:" + name + "<br/>";
    result += "</td>"+"</tr>";
  }
 
  if (address && trim(address!="")) {
   result += "<tr>"+"<td style='word-break:break-all'>";	
   result += "公司地址:" + address + "<br/>";
   result += "</td>"+"</tr>";
  }
  
  if (phoneNo && trim(phoneNo)!="") {
   result += "<tr>"+"<td style='word-break:break-all'>";	
   result += "公司电话:" + phoneNo + "<br/>"; 
   result += "</td>"+"</tr>"; 
  }
  if (liaisong && trim(liaisong)!="") {
   result += "<tr>"+"<td style='word-break:break-all'>";	
   result += "联系人:" + liaisong + "<br/>";
   result += "</td>"+"</tr>";
  }
  
  if (zipCode && trim(zipCode)!="") {
   result += "<tr>"+"<td style='word-break:break-all'>";	
   result += "公司邮编:" + zipCode + "<br/>";
   result += "</td>"+"</tr>";
  }
  
  if (fax && trim(fax)!="") {
   result += "<tr>"+"<td style='word-break:break-all'>";	
   result += "公司传真:" + fax + "<br/>";
   result += "</td>"+"</tr>";
  }
  
  if (website && trim(website)!="") {
   result += "<tr>"+"<td style='word-break:break-all'>";	
   result += "公司网址:" + website + "<br/>"; 
   result += "</td>"+"</tr>";
  }
 
  if (description && trim(description)!="") {
   while(description.search("__")!=-1){
		description=description.replace("__","<br/>");
   }
   result += "<tr>"+"<td style='word-break:break-all'>";	
   result += "其它说明:" + description + "<br/>";
   result += "</td>"+"</tr>";
  }
  
 result += "</table>";	
 return result;
}

 function notBlank(str) {
  return str!=null && trim(str)!="";	
}
  
  function enterperisemapguide(name,description,label,longitude,latitude){ 
    var icon = null;
    icon = new LTIcon();
    label = notBlank(label) ? label : "../../../EbizResourceSet/images/map/BG/bleb.gif";
　　icon.setImageUrl(label);
   
    pt = new LTPoint(longitude, latitude);
    var text = new LTMapText(pt);
　   text.setLabel("<table><tr><td nowrap='nowrap'>"+name+"</td></tr></table>"); 
    maps.addOverLay( text ); 

    var marker = new LTMarker( pt,icon );
    maps.addOverLay( marker );
    LTMarker.setInfoWinWidth( 200 );
    LTMarker.setInfoWinHeight( 150 );
    
    var ctn = generateWinInfoguide(name,description);
    if (ctn && trim(ctn)!="")
    LTEvent.addListener( marker , "mouseover" , function(){ marker.openInfoWinHtml(ctn) } );   
    }
  
     // 生成当鼠标移动到marker上时显示的内容
  function generateWinInfoguide(name,description) {
    var result ="";
    result += "<table>";
 
    if (name && trim(name!="")) {
     result += "<tr>"+"<td style='word-break:break-all'>";	
     result += "指示名称:" + name + "<br/>";
     result += "</td>"+"</tr>";
    }
    
    if (description && trim(description)!="") {
    while(description.search("__")!=-1){
	 description=description.replace("__","<br/>");
     }
     result += "<tr>"+"<td style='word-break:break-all'>";	
     result += "指示说明:" + description + "<br/>"; 
     result += "</td>"+"</tr>";
    }
   return result;
  }  
  
   function maplabel(name,address,phoneNo,liaisong,zipCode,fax,website,description,label,longitude,latitude) {	
     var icon = null;
     icon = new LTIcon();
     label = notBlank(label) ? label : "../../../EbizResourceSet/images/map/BG/dot.gif";
　　 icon.setImageUrl(label);
   
     pt = new LTPoint(longitude, latitude);
     var text = new LTMapText(pt);
　   text.setLabel("<table><tr><td nowrap='nowrap'>"+name+"</td></tr></table>"); 
     maps.addOverLay( text ); 
    
     var marker3 = new LTMarker( pt,icon );
     maps.centerAndZoom( new LTPoint(longitude,latitude) ,6);
     maps.addOverLay( marker3 ); 
     LTMarker.setInfoWinWidth( 200 );
     LTMarker.setInfoWinHeight( 150 );

     var ctn = generateWinInfolabel(name,address,phoneNo,liaisong,zipCode,fax,website,description) ;
     if (ctn && trim(ctn)!="")          
      LTEvent.addListener( marker3 , "mouseover", function(){ marker3.openInfoWinHtml( ctn ) } );
  
     maps.moveToCenter( new LTPoint(longitude,latitude) );    
  }
  
  
  
  function mapguide(name,description,label,longitude,latitude) {	
     var icon = null;
     icon = new LTIcon();
     label = notBlank(label) ? label : "../../../EbizResourceSet/images/map/BG/bleb.gif";
　　 icon.setImageUrl(label);
   
     pt = new LTPoint(longitude, latitude);
     var text = new LTMapText(pt);
　    text.setLabel("<table><tr><td nowrap='nowrap'>"+name+"</td></tr></table>"); 
     maps.addOverLay( text ); 


     var marker3 = new LTMarker( pt,icon );
     maps.centerAndZoom( new LTPoint(longitude,latitude) ,6);
     maps.addOverLay( marker3 ); 
     LTMarker.setInfoWinWidth( 200 );
     LTMarker.setInfoWinHeight( 150 );
     
     var ctn = generateWinInfoguide(name,description);
     if (ctn && trim(ctn)!="")
     LTEvent.addListener( marker3 , "mouseover", function(){ marker3.openInfoWinHtml( ctn ) } );
     maps.moveToCenter( new LTPoint(longitude,latitude) );     
  }

 function changeMapCity() {
	var oSelect = document.getElementById("mapCity");
	var coll = oSelect.options;
	if (coll && coll.length>0) {
		for(i=0;i<coll.length;i++) {
			if (coll[i].selected) {
				var cityName = coll[i].value;
				maps.cityNameAndZoom(cityName,5);
			}		
				
		}	
       }
 }
