function GetCustCount(id) {  
  $.ajax(
  {
  type: "POST", 
  url: g_WebPath + "/TooltipData.asmx/GetCustomerCount", 
  contentType: "application/json; charset=utf-8",
  data: "{'MapID':" + id + "}",
  dataType: "json",
  success: function(result) {
        $("#StateCount").html(result.d); //? fills in the innerHTML with the result
     },
  error: function(r, status) {
       if (status === "error") {
          var errorMessage = $.parseJSON(r.responseText); 
          alert(errorMessage.Message);
       }
     } 
  });
}

