From what I see, in v2 of GMaps API there was a property \"buttons\" of the InfoWindow object that one could define in a way that given InfoWindow has no close button:
My solution:
google.maps.event.addListener(marker, 'click', function() { var wnd = new google.maps.InfoWindow({ content: "..." }); google.maps.event.addListener(wnd, 'domready', function(){ $("#viewObject").parent().parent().next().remove(); }); wnd.open(map, marker); });