title: create an associative array from two regular arrays
body: <p>I want to bind two regular array into one associative array.
  The values of the first are the keys and the values of the second are the elements.</p>
  
  <pre><code>var array1=new Array("key1","Key2","Key3");
  var array2=new Array("Value1","Value2","Value3");
  
  var associative_array=new Array();
  for(var i=0;i&lt;3;i++){
  
  associative_array[array1[i]]=array2[i];
  }
  </code></pre>
  
  <p>But when i try to get the length of the new associative array, i noticed it's empty:</p>
  
  <pre><code>alert(associative_array.length);//always 0
  </code></pre>
  
  <p>What am doing wrong please? Thanx in advance.</p>