is there any keyword 'capital' in javascript?
<p>I am calling a funtion named 'capital()' but it is not working and 'capita' is working.
is it a keyword in js or wht is this ?</p>

<p>here is the code see it, test it</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;HTML Select Element&lt;/title&gt;
&lt;script type="text/javascript"&gt;
function capita(){
alert('yes');
c = new Array("Islamabad", "Tehran", "Bejing", "New Delhi", "Kabul");

var i;
i = document.f1.country.selectedIndex;
document.f1.capital.value=c[i];
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h3&gt;Countries and Capital&lt;/h3&gt;
&lt;form name="f1" method="post"&gt;
The capital of 
&lt;select name="country" id="country" onChange="capita();"&gt;
&lt;option selected&gt;Pakistan
&lt;option&gt;Iran
&lt;option&gt;China
&lt;option&gt;India
&lt;option&gt;Afghanistan 
&lt;/select&gt;
is &lt;input type="text" name="capital" value="Islamabad"/&gt; 
&lt;/form&gt; 
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
