//request.js
//defines a global Request object containing the named arguments from the URL
//needs:
//(c)2001 A.M.C. SoftWorks

HTTP_Request=function(URL)
{
	this.URL=URL
	this.value=new Object()
	var la=this.URL.split("?")
	this.URI=la[0]
	this.query=la[1]
	if (this.query) {
		var ra=this.query.split("&")
		for (var i=0;i<ra.length;i++) {
			var nv=ra[i].split("=")
			var nome=nv[0]
			var valore=nv[1]
			this.value[nv[0]] = unescape(nv[1].replace(/\+/g," "))
		}
	}
}
Request=new HTTP_Request(self.location.href)
