If I am on a page such at
http://somesite.com/somepage.php?param1=asf
in the javascript of that page, I would like to set a variable to the value of the paramater in the GET part of the url
so in javascript:
<script ...>
param1var = ... // ... would be replaced with the code to get asdf from url
</script>
What would "..." be?