function GetArgs(strDelimiter) {
/*
Gets the Query String and returns the "name=value" pairs as an Associative Array. 

Use as follows:

var oArgs = GetArgs();
document.write("<p> " + oArgs.test1 + "</p>");

*/

var oArgs = new Object();
var strQuery = location.search.substring(1); // remove "?" from query string
var strPairs = strQuery.split(strDelimiter);			 		   // get all the "name=value" strings

// split the pairs apart and store the name as the name of the property and value as the property value
for (var intI=0; intI < strPairs.length; intI++) {

	var intPos = strPairs[intI].indexOf("=");

	if (intPos != -1) { // don't save anything if not a name=value pair
		var strArgName = strPairs[intI].substring(0,intPos);
		var strValue = strPairs[intI].substring(intPos+1);
		oArgs[strArgName]=unescape(strValue);}
}

return oArgs;

} 
