Javascript,dont show undefined number
<p>Ive createt an varibale with keys and values, looks like:</p>

<pre><code>var e = new Array();
e[0] = "Bitte";
e[1] = "Danke";
</code></pre>

<p>besides this i added a line in the variable wich showes an text when the number is undefined.</p>

<pre><code>e[NaN] = "Change Settings"; 
</code></pre>

<p>so when the variable e is NAN ("undefined"), i want that he dont displays the Number of the varible e in the input. I tried to achive this like you can see, but it wont function.</p>

<pre><code>if (neuezahl = NaN) {
document.getElementById("saveServer").value="";
 }
else {document.getElementById("saveServer").value=""+neuezahl+""; 
 }
</code></pre>

<p>Thanks for help, greetings from germany! Sorry for my englisch!</p>
