<!--		
		
		/*Splits any well-formed URI into the following parts (all are optional):
		----------------------
		• source (since the exec() method returns backreference 0 [i.e., the entire match] as key 0, we might as well use it)
		• protocol (scheme)
		• authority (includes both the domain and port)
			• domain (part of the authority; can be an IP address)
			• port (part of the authority)
		• path (includes both the directory path and filename)
			• directoryPath (part of the path; supports directories with periods, and without a trailing backslash)
			• fileName (part of the path)
		• query (does not include the leading question mark)
		• anchor (fragment)
		*/
		function parseURI(sourceURI){
		var uriPartNames = ["source","protocol","authority","domain","port","path","directoryPath","fileName","query","anchor"];
		var uriParts = new RegExp("^(?:([^:/?#.]+):)?(?://)?(([^:/?#]*)(?::(\\d*))?)?((/(?:[^?#](?![^?#/]*\\.[^?#/.]+(?:[\\?#]|$)))*/?)?([^?#/]*))?(?:\\?([^#]*))?(?:#(.*))?").exec(sourceURI);
		var uri = {};
		
		for(var i = 0; i < 10; i++){
			uri[uriPartNames[i]] = (uriParts[i] ? uriParts[i] : "");
		}
    
			// Always end directoryPath with a trailing backslash if a path was present in the source URI
			// Note that a trailing backslash is NOT automatically inserted within or appended to the "path" key
			if(uri.directoryPath.length > 0){
				uri.directoryPath = uri.directoryPath.replace(/\/?$/, "/");
			}
			
			return uri;
		}
		
		/* 
			Extracts parameter value from passed URI. If parameter is not found, returns blank.
		*/
		function getParameterValue(sourceURI, parameter) {
			var query = parseURI(sourceURI)["query"];
			var referrer = "";
			
			if  ( query.indexOf(parameter+"=") != -1 ) {
				referrer = query.substring(query.indexOf(parameter+"=") + parameter.length + 1);
			}
			
			// Strip additional parameter=value pairs if present
			if ( referrer.indexOf('&') != -1 ) {
				referrer = referrer.substring(0, referrer.indexOf('&'));
			}
			
			return referrer;
		}
		
		
		// Activate error message if URL contains Captcha error message
		var captchaErrorCode = parseInt(getParameterValue(document.location, "captchaError"));
			
		if (! isNaN(captchaErrorCode)) {
			document.getElementById("validation_error_message").style.display = 'block';
			document.getElementById("captchapro").style.backgroundColor = errorFormValidationBoxColor;
			
			switch(captchaErrorCode) {
				case 1:
					document.getElementById("error_incorrectcaptchavalue").style.display = 'block';
				break;
				default:
					document.getElementById("error_general").style.display = 'block';	
				break;
			}
		}
//-->	
		
