function onInit()
{
	var highlight = _GET("highlight");
	if (highlight)
	{
		x = document.getElementById("contentDiv");
		highlightText(highlight, "highlighted", x);
	}
}

function onLoadForm(widget)
{
	widget.addEventListener("submitted", function()
	{
		widget.showStatistics();
	});
}

function onLoadLocation(widget)
{
	var map = widget.gmap;

	map.setMapType(G_PHYSICAL_MAP);
	map.addControl(new GSmallMapControl());
	map.addMapType(G_PHYSICAL_MAP);
	
	var icon = new GIcon(null, './images/arrow.png');
	icon.shadow = 'http://www.google.com/mapfiles/shadow50.png';
	icon.iconSize = new GSize(30, 42);
	icon.shadowSize = new GSize(30, 42);
	icon.iconAnchor = new GPoint(15, 42);
	icon.infoWindowAnchor = new GPoint(3, 41);
	icon.infoShadowAnchor = new GPoint(3, 41);

	var array = mapLocation.split(';');
	var marker = new GMarker(new GLatLng(array[0], array[1]), {
		title: "Lokatie",
		icon: icon ? icon : G_DEFAULT_ICON,
		clickable: false,
		draggable: false
	});
	map.addOverlay(marker);
	map.setCenter(marker.getPoint());
}