title: how to close infowindow in google maps v3
body: <p>I have tried to implement the last code at </p>
  
  <p><a href="https://developers.google.com/maps/articles/phpsqlinfo_v3" rel="nofollow">https://developers.google.com/maps/articles/phpsqlinfo_v3</a></p>
  
  <p>I want to have a cancel and close button.
  So, i modified the code and uploaded it to </p>
  
  <p><a href="http://adsany.com/testclose.htm" rel="nofollow">http://adsany.com/testclose.htm</a>
  (view source)</p>
  
  <p>when i click on the map, a marker appears,</p>
  
  <p>when I click on the marker, infowindow appears.</p>
  
  <p>when I click on the cancel and close button, it closes the window, but a new marker appears.</p>
  
  <p>So, i want to close the infowindow without creating a new marker.</p>
  
  <p>Please suggest.</p>
  
  <p>Thanks.</p>