scripts/menu.js
/**
 * Check whether the "From" or "To" fields of a New Custom Route have been left empty
 * @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
 * @return {boolean} Whether or not an error was encountered
 */
Check whether the "From" or "To" fields of a New Custom Route have been left empty
@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
@return {boolean} Whether or not an error was encountered
Check whether the " From " or " To " fields of a New Custom Route have been left empty @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 @return { boolean } Whether or not an error was encountered
function checkCustomRouteFieldsEmpty(errorDiv, errorDivTxt) {
	var error = false;
	if($("#customRouteFrom").val().length == 0 || $("#customRouteTo").val().length == 0) {
		error = true;
		formErrorStatus = true;
	}
	checkHideShowError(errorDiv, errorDivTxt, error);
	return error;
}
function checkCustomRouteFieldsEmpty ( errorDiv , errorDivTxt ) { var error = false ; if ( $ ( "#customRouteFrom" ) . val ( ) . length == 0 || $ ( "#customRouteTo" ) . val ( ) . length == 0 ) { error = true ; formErrorStatus = true ; } checkHideShowError ( errorDiv , errorDivTxt , error ) ; return error ; }
Check whether the "From" or "To" fields of a New Custom Route have been left empty
 @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
 @return {boolean} Whether or not an error was encountered
Check whether the " From " or " To " fields of a New Custom Route have been left empty @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 @return { boolean } Whether or not an error was encountered