function onSearch() {
	var errors = 0;

	var destination = document.getElementById("search_destination").value;
	if (destination == "" || destination == "Destination") errors++;

    var departure_date = document.getElementById('departure_date');
    if(departure_date.selectedIndex == 0) errors++;

	if (errors > 1) alert("Please enter either a destination or the departure date or both");
	else document.getElementById("search_form").submit();

} //onSearch()

