Parse variables from querystring in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values">How can I get query string values?</a>  </p>
</blockquote>



<p>I have the following querystring:</p>

<pre><code>"active_tab=delivered&amp;active_tab=all&amp;active_tab=delivered&amp;active_tab=outstanding
&amp;active_tab=delivered&amp;active_tab=outstanding&amp;active_tab=all&amp;active_tab=delivered&amp;active_tab=outstanding&amp;title_filter=conformance&amp;title_filter=delivering&amp;title_filter=packaging
&amp;title_filter=delivering&amp;title_filter=all&amp;title_filter=delivering&amp;title_filter=all&amp;title_filter=packaging&amp;title_filter=conformance&amp;title_filter=packaging
&amp;title_filter=delivering&amp;title_filter=packaging&amp;title_filter=ordered"
</code></pre>

<p>How would I parse the final <code>title_filter</code> ("ordered") and <code>active_tab</code> ("delivered") from the above querystring? Also, if that querystring variable doesn't exist, have it = <code>""</code></p>
