Copyright Gottfried Haider, Danja Vasiliev 2010. This source code is licensed under the GNU General Public License. See the file COPYING for more details. convert an associative array to a javascript block<p>
<tr><tdvalign="top"></td><tdvalign="top"><em>array</em> </td><td>$users array of possible users (usernames as keys, password as values) </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>string</em> </td><td>$realm realm (e.g. name of the site) </td></tr>