function getURLParameters(action) {
	var sURL = window.document.URL.toString();
	
	if (sURL.indexOf("?") > 0){
		var qsvs;
		//Split the url at the beginning of the query string.
		var arrParams = sURL.split("?");
		
		//Split the query string into name/value pairs.
		var fullqs = arrParams[1];
		var arrURLParams = fullqs.split("&");
		
		//Create 2 new arays to hold the parameter name and parameter value.
		var paramNames = new Array();
		var paramValues = new Array();
		
		for (var j=0;j<arrURLParams.length;j++) {
			//Split the name/value pairs into name and value.
			var sParam =  arrURLParams[j].split("=");
			
			//Set the value of the parameter name array.
			var arrParamNames = sParam[0];
			//Set the value of the parameter value array.
			var arrParamValues = unescape(sParam[1]);
			
			//Generate the arrays using the parameter names and parameter values.
			paramNames.push(arrParamNames);
			paramValues.push(arrParamValues);
		}
		qsvs = paramValues[0];
	}
	
	else {
		qsvs;
	}
	
	/*******************
	If action equals 'split', we want to return the value of the split query string. Currently, we are only concerned with the value of the position.
	If action does not equal 'split', we want to return the entire query string as one long string to be passed to a Flash movie. 05/03/06
	********************/
	if (action == 'split'){
		return qsvs;
	}
	else {
		return fullqs;
	}
}