function QueryStringUtil()
{
	this.queryString = (window.location.search) ? window.location.search.substring(1) : null;//removes "?"	
	if(this.queryString)
	{
		this.keyValueArray = new Array();
		this.valuePairArray = this.queryString.split("&");
		for(var i=0; i < this.valuePairArray.length; i++)
		{
			var tempArray = this.valuePairArray[i].split("=");
			var tempObject = new Object();
			tempObject.key = tempArray[0];
			tempObject.value = tempArray[1];
			this.keyValueArray.push(tempObject);
		}
	}
}

QueryStringUtil.prototype.getValues = function(key)
{
	if(this.keyValueArray)
	{
		var valuesArray = new Array(); 
		for(var i=0; i < this.keyValueArray.length;i++)
		{
			if(this.keyValueArray[i].key == key) valuesArray.push(this.keyValueArray[i].value);
		}
		if(valuesArray.length == 0)	return null;
		if(valuesArray.length == 1)	return valuesArray[0];
		if(valuesArray.length > 1)	return valuesArray;
	}
}