Javascript Data Type How to - Transform form to array key value


We would like to know how to transform form to array key value.


<!DOCTYPE html>
<script type='text/javascript'>
<!--  ww  w .j a  va  2  s  .  c  o  m-->
    var sAux={};
    var frm = document.getElementById("formUsuario");
    for (i = 0; i < frm.length; i++) {

        sAux[frm[i].name] = frm[i].value;

  <form id=formUsuario>
    <input name=ll value=iop>

The code above is rendered as follows: