
var Params=Class.create();Params.prototype={initialize:function(){Object.extend(this,location.search.toQueryParams());},update:function(){if(typeof arguments[0]=="object"){Object.extend(this,arguments[0]);}else{if(arguments[1]){eval("this."+arguments[0]+"='"+arguments[1]+"'");}}},toQueryString:function(){var qs=[];for(var property in this){if(typeof this[property]!="function"&&this[property]){qs.push(property+"="+escape(this[property]));}}
return"?"+qs.join("&");},populateInputs:function(){var inputs=[];for(var property in this){if(typeof this[property]!="function"&&this[property]){var el=$(property);if(el&&typeof el.value!="undefined"){inputs.push(el);el.value=this[property];}}}
return inputs;},toString:function(){return this.toQueryString().split("&").join("\n");}}
var params=new Params();