Need help with javascript plzzz!
Goal of this program is to accept 30 characters individually from the user and display how many times each of 5 vowels are entered (a,e,i,o,u) and to display it. I made 5 counters and set up everything and have wasted 2 hours fumbling around with it and cant figure out why final screen always reads 0 for each vowel.
This is what i have now... (charin being character in) someone plzz help me!!!
<script>
var charin= new Array(30);
var countA=0;
var countE=0;
var countI=0;
var countO=0;
var countU=0;
var a;
var e;
var i;
var o;
var u;
var x=0;
for(x=0;x<30;++x)
{
charin[x]=prompt("Enter Character:");
charin[x]=eval(charin[x])
{
if(charin[x]=a)
countA=countA+1
}
if (charin[x]=e)
{
countE=countE+1;
}
if (charin[x]=i)
{
countI=countI+1;
}
if (charin[x]=o)
{
countO=countO+1;
}
if (charin[x]=u)
{
countU=countU+1;
}
}
document.write("Number of A:"+countA+"<p>")
document.write("Number of E:"+countE+"<p>")
document.write("Number of I:"+countI+"<p>")
document.write("Number of O:"+countO+"<p>")
document.write("Number of U:"+countU+"<p>")
</script>

