title: JavaScript Array to URLencoded
body: <p>is there any js function to convert an array to urlencoded? 
  i'm totally newbie n JS... thanks!...</p>
  
  <hr>
  
  <p>my array is a key &amp; value array....
  so,</p>
  
  <pre><code>myData=new Array('id'=&gt;'354313','fname'=&gt;'Henry','lname'=&gt;'Ford');
  </code></pre>
  
  <p>is the same as</p>
  
  <pre><code>myData['id']='354313';
  myData['fname']='Henry';
  myData['lname']='Ford';
  myData.join('&amp;'); //returns error, it doesn't work on such array...
  </code></pre>
  
  <p>is there any solution?</p>
  
  <hr>
  
  <p>oh sory...
  i have an array like this</p>
  
  <pre><code>var myData=new Array('id'=&gt;'354313','fname'=&gt;'Henry','lname'=&gt;'Ford');
  </code></pre>
  
  <p>then i need the array converted to be:</p>
  
  <pre><code>id=354313&amp;fname=Henry&amp;lname=Ford
  </code></pre>