<!--
// Purpose: To allow client end parsing of query string
//
// Limitations: Not tat is known
//
// Returns a hash of all the strings in the query string
// If no argument is passed in, it uses the default URL
// This script is based on something found on faqts
//
// -howard 26 May 2004
//
function doQueryString(strURL)
{
	// Use the default URL	
	strURL = strURL ? strURL : location.search;
	var strQuery = strURL.charAt(0) == '?' ? strURL.substring(1) : strURL;
	var oArgs = new Object();
	if (strQuery) {
		var oFields = strQuery.split('&');
		// Loop through each pair of args
		for (var nCount = 0; nCount < oFields.length; nCount++)
		{
			oField = oFields[nCount].split('=');
			oArgs[unescape(oField[0].replace(/\+/g, ' '))] = unescape(oField[1].replace(/\+/g, ' '));
		}
	}
	return oArgs;
}
//-->
