function load()
{
  if (GBrowserIsCompatible())
  {
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(50.6284, -4.3705), 16, G_HYBRID_MAP);
    var marker = new GMarker(new GLatLng(50.6284, -4.3705));
    GEvent.addListener(marker, "click", function()
      {
        marker.openInfoWindowHtml("<b>Lowley Engineering Ltd</b><br>B3 Pennygillam Way<br>Pennygillam Ind Est<br>Launceston<br>Cornwall<br>PL15 7ED");
      });
    map.addOverlay(marker);
  }
}

function getDirections()
{
  // Check if address entered
  if (document.addressForm.from.value == "")
  {
    alert ("Please fill in the box with your postcode.");
    return false;
  }

  //Open popup window with directions
  var win = open("", "directions", "width=650, height=600, scrollbars=yes, resizable=yes");
  document.addressForm.target = "directions";
  document.addressForm.action = "directions.htm";
  win.focus();
  return true;
}