// Creates a marker at the given point with the given number label
function createMarker(point, mytext, mytype) {
  
    // Create a base icon for all of our markers that specifies the
    // shadow, icon dimensions, etc.
    var baseIcon = new GIcon();
    baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
    baseIcon.iconSize = new GSize(20, 34);
    //baseIcon.iconSize = new GSize(20, 20);
    baseIcon.shadowSize = new GSize(37, 34);
    baseIcon.iconAnchor = new GPoint(9, 34);
    baseIcon.infoWindowAnchor = new GPoint(9, 34);
    baseIcon.infoShadowAnchor = new GPoint(18, 57);
    
    var icon = new GIcon(baseIcon);
    icon.image = "http://www.google.com/mapfiles/marker.png";
    
    var marker = new GMarker(point, icon);

    GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(mytext);
    });
    return marker;
}
