function load() {
 function createHTML(pname, paddress, pcity, pstate, pzipcode) {
	var pfulladdress = paddress + ', ' + pcity + ', ' + pstate + ' ' + pzipcode;
	var html = '<b>' + pname + '</b><br />' + paddress + '<br />' + pcity + ', ' + pstate + ' ' + pzipcode + '<br /><br />';
	html += '<form action="http://maps.google.com/maps" method="get" target="_blank">';
	html += '<i>Your address</i>: <br /><input type="text" name="saddr" value="" size=20><br />';
	html += '<input type="hidden" name="daddr" value="' + pfulladdress + '" />';
	html += '<input type="submit" value="Directions"/></form><br />';

	return html;
}

var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(37.662795, -121.874379), 13);

// Creates a marker at the given point with the given number label
function createMarker(point,html) {
  var marker = new GMarker(point);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(html);
  });
  return marker;
}

// Add the info window

  var point = new GPoint(-121.874379, 37.662795);
  map.addOverlay(createMarker(point,createHTML('Pilates On Spring','273 Spring St','Pleasanton','CA','94566')));
}