/**  
 * @fileoverview This file contains functions for the travel panel.
 * @author Mark Hendrickson <mhendric@bowdoin.edu>
 * @version 1.0
 */

/**
 * Submits directions entered into panel.
 */
function submitDirections()
{
	var start_address = $('start_address').value;
	var end_address = $('end_address').value;

	if(!start_address || !end_address)
		alert('Please provide both a start and end address.');
	else
		window.location = 'directions.php?start_address='+start_address+'&end_address='+end_address;

	return false;
}