scripts/menu.js
/**
 * Check whether the "From" or "To" fields of a New Custom Route contain any invalid characters
 * @param {Object} errorDiv A jQuery encapsulated HTML div tag, containing a set of potential error messages
 * @param {Object} errorDivTxt A jQuery encapsulated HTML div tag, containing the specific error message to display
 */
Check whether the "From" or "To" fields of a New Custom Route contain any invalid characters
@param {Object} errorDiv A jQuery encapsulated HTML div tag, containing a set of potential error messages
@param {Object} errorDivTxt A jQuery encapsulated HTML div tag, containing the specific error message to display
Check whether the " From " or " To " fields of a New Custom Route contain any invalid characters @param { Object } errorDiv A jQuery encapsulated HTML div tag containing a set of potential error messages @param { Object } errorDivTxt A jQuery encapsulated HTML div tag containing the specific error message to display
function checkCustomRouteValidChars(errorDiv, errorDivTxt) {
	var error = false;
	var from = $("#customRouteFrom").val();
	var to = $("#customRouteTo").val();
	var invalidChars = /;/; 
	if(invalidChars.test(from) || invalidChars.test(to)) {
		error = true;
		formErrorStatus = true;
	}
	checkHideShowError(errorDiv, errorDivTxt, error);
}
function checkCustomRouteValidChars ( errorDiv , errorDivTxt ) { var error = false ; var from = $ ( "#customRouteFrom" ) . val ( ) ; var to = $ ( "#customRouteTo" ) . val ( ) ; var invalidChars = / ; / ; if ( invalidChars . test ( from ) || invalidChars . test ( to ) ) { error = true ; formErrorStatus = true ; } checkHideShowError ( errorDiv , errorDivTxt , error ) ; }
Check whether the "From" or "To" fields of a New Custom Route contain any invalid characters
 @param {Object} errorDiv A jQuery encapsulated HTML div tag, containing a set of potential error messages
 @param {Object} errorDivTxt A jQuery encapsulated HTML div tag, containing the specific error message to display
Check whether the " From " or " To " fields of a New Custom Route contain any invalid characters @param { Object } errorDiv A jQuery encapsulated HTML div tag containing a set of potential error messages @param { Object } errorDivTxt A jQuery encapsulated HTML div tag containing the specific error message to display
//A semicolon