/**
* HGRequestObject
*
* Used to build an HGRequestObject
*
* @param request_type the request type
**/
function HGRequestObject( request_type ) { 

	this.request_obj = new Object();
	this.request_obj['request_type'] = request_type;

}

//force the prototype for JS1.1
new HGRequestObject( null );

HGRequestObject.prototype.addRequestElement = function( ename, evalue ) { 
	this.request_obj[ename] = evalue;
	return true;
}

HGRequestObject.prototype.toRequestString = function() { 
	var rstring = "";
	for ( i in this.request_obj ) { 
		rstring += i + "=" + this.request_obj[i] + "&";
	}
	return rstring;
}


