Salve a tutti stavo cercando di creare uno script per posizionare i miei marker con rispetive finestre info sulla mia mappa ma non riesco a "riempire" le finestre info potreste aiutarmi a capire dove sbaglio?

Codice PHP:

<script type="text/javascript"
function 
load() {
     var 
map = new GMap2(document.getElementById("map2"));
     
map.addControl(new GSmallMapControl());
     var 
geocoder = new GClientGeocoder();
     var 
address "Indirizzo1, citta;Indirizzo2, citta";
     var 
splitted address.split(';');
     var 
i;0;
     for (var 
0splitted.lengthi++)  {
                
                        
geocoder.getLatLngsplitted[i], function(point) {
                              if (!
point) {
                                
alert(splitted[i] + " not found");
                              } else {
                                
map.setCenter(point13);
                                var 
marker = new GMarker(point);
                                    
GEvent.addListener(marker"click", function() { 
                                         var 
myHtml address.split(';')[i];
                                         
marker.openInfoWindow(myHtml);
                                         }
                                     ); 
                                
map.addOverlay(marker);
                               }
                             }
                           );    
                
                    }
                }
</script> 
Grazie