function QueryString() {
	this.arg = new Array;
	this.status = false;
	this.clear = Clear;
	this.get = Get;
	this.getAll = GetAll;
	this.getStatus = GetStatus;
	this.read = Read;
	this.set = Set;
	this.write = Write;
	function Clear()
	{	this.arg = new Array;
	}
	function Get(sName)
	{	return this.arg[sName];
	}
	function GetAll()
	{	return this.arg;
	}
	function GetStatus()
	{	return this.status;
	}
	function Read(sUrl) 
	{	var aArgsTemp, aTemp, sQuery;
		if(sUrl)
		{	sQuery = sUrl.substr(sUrl.lastIndexOf("?")+1, sUrl.length);
		}
		else
		{	sQuery = window.location.search.substr(1, window.location.search.length);
		}
		if(sQuery.length < 1) {return;}
		else {this.status = true;}
		aArgsTemp = sQuery.split("&");	
		for (var i=0 ; i<aArgsTemp.length; i++)
		{	aTemp = aArgsTemp[i].split("=");
			this.arg[aTemp[0]] = aTemp[1];
		}
	}
	function Set(sName,sValue)
	{	if (sValue == null) {delete this.arg[sName];}
		else {this.arg[sName] = sValue;}
	}
	function Write()
	{	var sQuery = new String(""); 
		for (var sName in this.arg)
		{	if (sQuery != "") {sQuery += "&";}
			if (this.arg[sName]) {sQuery += sName + "=" + this.arg[sName];}
		}
		if (sQuery.length > 0) {return "?" + sQuery;}
		else {return sQuery;}
	}
}