
function changesucc()
{
	document.getElementById('changesucc').onchange = function()
	{
		if (this.value == 2)
		{
			window.location = 'succ_beauce.php'; 
			return;
		}

		if (this.value == 1)
		{
			window.location = 'succ_quebec.php'; 
			return;
		}
	}

	if (document.getElementById('map_canvas'))
		create_gmap("map_canvas", 46.8064, -71.2969, 13);

	if (document.getElementById('map_canvas_beauce'))
		create_gmap("map_canvas_beauce", 46.1750, -70.7110, 11);
}

function create_gmap(_s_containerid, _s_long, _s_lat, _i_level)
{
	var map = new GMap2(document.getElementById(_s_containerid));
	map.addControl(new GSmallMapControl());
	map.setCenter(new GLatLng(_s_long, _s_lat), _i_level);

	// Create our "tiny" marker icon
	var blueIcon = new GIcon(G_DEFAULT_ICON);
	blueIcon.image = "http://premont.hws-u.com/css/images/pointer.png";
	blueIcon.iconSize = new GSize(126, 86);
                
	// Set up our GMarkerOptions object
	markerOptions = { icon:blueIcon };

	var point = new GLatLng(_s_long, _s_lat);
	map.addOverlay(new GMarker(point, null));

}


