function setBounds(map,bounds) {
	map.setZoom(map.getBoundsZoomLevel(bounds));
	map.setCenter(bounds.getCenter());
}
function setDirections(num) {
	if (document.getElementById("text_from").value == "") {
		alert('Please enter an Address');
		return;
	}
	else{
		fromAddress = document.getElementById("text_from").value;
	}

	toAddress = "copy from below";
	
	alert(text_from)+"-"+alert(text_to);
	
	var gdirName = "gdir"+num;
	eval(gdirName).load("from: " + fromAddress + " to: " + toAddress);
	
}
function func1() { 
if (GBrowserIsCompatible()) {
									
	var map = new GMap2(document.getElementById("map_canvas"));
    gdir = new GDirections(map, document.getElementById("svmap_directions"));

	var point1 = new GLatLng(-32.926968,151.773157);

	map.setMapType(G_NORMAL_MAP);
	map.setUIToDefault();
	map.setCenter(point1, 17);
	
	var marker1 = new GMarker(point1);
	map.addOverlay(marker1);

	
}
};
window.onload=func1; 