window.onload = function()
{
	GUnload()
	makingGMap(yCenterKey, xCenterKey, html, imgPass);
}

//GoogleMaps生成スクリプト(全画面共通)
function makingGMap(yCenterKey, xCenterKey, html, imgPass)
{
	//GoogleMapsの生成
	var map = new GMap2(document.getElementById("dMaps"));
	var point = new GLatLng(yCenterKey, xCenterKey);
	map.setCenter(point, 17);
	map.addControl(new GScaleControl());
	map.addControl(new GLargeMapControl());
	ctrlObjV = new GOverviewMapControl(new GSize(120, 120));
	map.addControl(ctrlObjV);
	//アイコンオブジェクトの生成
	var iconObj = new GIcon();
	iconObj.image = imgPass;
	iconObj.iconSize = new GSize(18, 18);
	iconObj.iconAnchor = new GPoint(10, 10);

	//情報ウィンドウの表示位置を指定する。
	iconObj.infoWindowAnchor = new GPoint(10, 0);

	var marker = new GMarker(point, iconObj);
	map.addOverlay(marker);
	marker.openInfoWindowHtml(html);
}

