//submit Transit Line form takes the value from the line dropdown and 
//sends the information to the transit line map page
//use this function to show line maps and incidents as previously shown in popups
//on original trips123 site

function submitTransitLineForm(transitLine, facilityOrgName) {
	if (transitLine == 'bad_selection') {
		alert("Please select a valid facility");
	}
	else {
		//document.main.action = "transitLines.asp?agencyname=" + facilityOrgName + "&facility_LongName=" + transitLine;
		document.main.passedAgencyName.value = facilityOrgName;
		document.main.passedLongName.value = transitLine;
		document.main.frmSubmitted.value = "true";
		document.main.action = "transitLines.asp";
		document.main.submit();
	}
}