function Querystring(a){if(!a){a=top.location.search}if(a.length==0){return}var c=new RegExp(/(?:[\?|\&]){1,1}([^\=\&]+\=?[^\=\&]*)/g);while(match=c.exec(a)){var d=new String(match[1]);if(d.indexOf("=")!=-1){var b=d.split("=");this[unescape(b[0]).toLowerCase()]=unescape(b[1])}else{this[unescape(d).toLowerCase()]=true}}}Querystring.prototype.toString=function(){var b="";for(var a in this){if(typeof(this[a])!="function"){b+=a+"="+this[a]+"&"}}if(b.length==0){return""}return"?"+b};