      
      function writeSpotInfo(spot,spotNum) {
        var myHtml = "<div style=\"margin: 10px; padding: 10px; color: #333333; font-size: 13px; font-family: Helvetica, Arial, sans-serif; border: solid 1px #dddddd;\"><table><tr>";
        myHtml += "<td style=\"padding-right: 10px; border-right: solid 1px #dddddd;\"><img src=\"./furnitures/"+ spot.furniture +".gif\" style=\"width: 150px; height: 150px;\" /></td>";
        myHtml += "<td style=\"padding: 0px 10px 0px 10px;\">";
        myHtml += "<b style=\"color: #999999; font-size: 15px;\">Spot "+ spotNum +"</b><br /><br />";
        myHtml += "interaction :<br /><b style=\"font-size: 18px; font-variant: small-caps;\">"+ spot.interactiontype +"</b><br /><br />";
        lat = ""+spot.lat;
        lng = ""+spot.lng;
        myHtml += "<i style=\"color: #999999; font-size: 11px;\">(N : "+ lat.substr(0,6) +",<br /> E : "+ lng.substr(0,6) +")</i>";
        myHtml += "</td>";
        myHtml += "</tr></table></div>";
        return myHtml;
      }
      
      function writeLine(spots) {
        var latlngsLine = new Array();
        latlngsLine.push(new GLatLng(spots[0].lat, spots[0].lng),new GLatLng(spots[1].lat, spots[1].lng));
        var polyOptions = {geodesic:true};
        var polyline = new GPolyline(latlngsLine, "#fe7569", 4, 0.75, polyOptions);
        return polyline;      }
