scripts/menu.js
/**
 * Check a valid URL has been entered for the Custom Model
 * @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 a valid URL has been entered for the Custom Model
@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 a valid URL has been entered for the Custom Model @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 checkCustomModelURL(errorDiv, errorDivTxt) {
	var error = false;
	var urlStartString = /^((http)|(https)|(ftp)):\/\//;
	var url = $("#kmzURL").val();
	if(!urlStartString.test(url) || invalidURLFileExtension(url)) {
		error = true;
		formErrorStatus = true;
	}
	checkHideShowError(errorDiv, errorDivTxt, error);
}
function checkCustomModelURL ( errorDiv , errorDivTxt ) { var error = false ; var urlStartString = / ^((http)|(https)|(ftp)):\/\/ / ; var url = $ ( "#kmzURL" ) . val ( ) ; if ( ! urlStartString . test ( url ) || invalidURLFileExtension ( url ) ) { error = true ; formErrorStatus = true ; } checkHideShowError ( errorDiv , errorDivTxt , error ) ; }
Check a valid URL has been entered for the Custom Model
 @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 a valid URL has been entered for the Custom Model @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
//If the string doesn't start with the urlStartString, or end with a valid file extension, an invalid URL has been entered