<p>Is there any way to create the <em>query parameters</em> for doing a <em>GET request</em> in JavaScript?</p>

<p>Just like in Python you have <a href="http://web.archive.org/web/20080926234926/http://docs.python.org:80/lib/module-urllib.html" rel="noreferrer"><code>urllib.urlencode()</code></a>, which takes in a dictionary (or list of two tuples) and creates a string like <code>'var1=value1&amp;var2=value2'</code>.</p>

If you are using
Prototype
there is
Form.serialize
If you are using
jQuery
there is
Ajax/serialize
I do not know of any independent functions to accomplish this, though, but a google search for it turned up some promising options if you aren't currently using a library. If you're not, though, you really should because they are heaven.