The examples I\'ve seen online seem much more complex than I expected (manually parsing &/?/= into pairs, using regular expressions, etc). We\'re using asp.net
Take a look at my post, as it tells you exactly how to do this:
http://seattlesoftware.wordpress.com/2008/01/16/javascript-query-string/