/*
 * Shows the directions form and hides the address
 * information
 *
 * @param is_tohere     boolean value that shows whether
 *						the user wants directions "from"
 *						or "to" this location.
 *
 */
function showDirectionForm()
{
	document.getElementById("dir_form").style.display = '';
	document.getElementById("directions").style.display = 'none';
}

/*
 * Get an address from the user, then
 * open a new window and perform a directions search
 * directly through Google Maps website.
 *
 * @param the_address   the address of the selected marker
 *						on the map.
 *
 */
function getDirections(daddr)
{
//	alert(daddr);
	searchAddress = document.getElementById("saddr").value;
	url = "http://maps.google.com/maps?saddr=" + searchAddress + "&daddr=" + daddr + "&hl=en";

	setCookie("saddr", searchAddress, expires);
	window.open(url);
}