text: var map = null;
      var markerArray = [];
      function submit(){
  
      var val = $("#id_one").val();
      var xhr = new XMLHttpRequest();
      xhr.open('POST', "http://35.193.225.166:80, true);
      data = new FormData();
      data.append("type", val);
      if(val != "cancer")
        {console.log("Here");
         console.log(data);
      data.append("img", $("#file_").prop('files')[0]);}
      xhr.onreadystatechange = function(){
  
        var obj = JSON.parse(this.responseText)[0];
        if(!obj["empty"])
        {
          $("prediction-id").html(obj["tumor"]);
          $("prediction-id").html(obj["normal"]);
          if(parseInt(obj["pred_val"]) != 0){
            plotMap(obj["places"]);
            addPlaces(obj["places"]);
          }
          $("#status").html("<b>"+obj["tumor"]+"</b>")
          $("#status1").html("<b>"+obj["normal"]+"</b>")
          document.getElementById("demo").innerHTML = "Analysis Report";
          clear();
          $("#result").html("<b>"+obj["pred_val"]+"</b>")
  
        }
      };
      xhr.send(data);
    }
    function addPlaces(obj){  
      $.each(obj, function(index, obj_){
        console.log(obj_);
        $("#hospital").append("<div><b>"+obj_["name"]+"</b><br>"+obj_["address"]+"</div><br><br><br>");
      });
    }
    function initMap(){
        var  kolkata= {lat: 22.567627, lng: 88.347444};
    // The map, centered at Uluru
      map = new google.maps.Map(
        document.getElementById('map'), {zoom: 10, center: kolkata});
    }
    function clear()
    {
      for(var i=markerArray.length-1; i>=0; i--){
        markerArray[i].setMap(null);
        markerArray.pop();
      }
      $("#hospital").html("");
    }
    function plotMap(places){
      
      $.each(places, function(index,obj){
        if(map != null){
          markerArray.push(new google.maps.Marker({"position": obj["location"], map: map}));
        }
      });
    }
    function changeText(button, text, textToChangeBackTo) {
    buttonId = document.getElementById(button);
    buttonId.textContent = text;
    setTimeout(function() { back(buttonId, textToChangeBackTo); }, 10000);
    function back(button, textToChangeBackTo){ button.textContent = textToChangeBackTo; }
  }
  function show_hide_cancer(){
    if($("#id_one").val() == "cancer")
      {$("#myDIV").show();
      $("#file_").hide();}
      else{
        $("#myDIV").hide();
      $("#file_").show();
      }
  }
  