function createMarker(point, number, html1, html2) {
  var marker = new GMarker(point);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(html1,{maxContent: html2, maxTitle: "Opis Obiektu"});
  });
  return marker;
}
