This is my code below. I am trying to match the number var with the name var that is prompted in the browser... for example, if i type in Fran, i want to get Fran's number, but no matter who's name i put in i always get bob's number which is the first number...what am i doing wrong??? It is a simple code, but i dont know what im doing... Thanks

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>


<script type="text/javascript">
// Header
document.write("<h1>Directory Lookup</h1>");
// Variables and Arrays for names and numbers
var name = new Array();
name[0] = "Bob";
name[1] = "Jane";
name[2] = "Billy";
name[3] = "Fran";
name[4] = "Rex";
var number = new Array();
number[0] = "555-308-1232";
number[1] = "453-346-3299";
number[2] = "219-233-9832";
number[3] = "453-282-7628";
number[4] = "324-339-1193";

// Variable for name propmt
var nameS = prompt("Enter the name you are looking for!","Enter Here");

var count = 0;
for (count in name)
if (name[count] == nameS);

// Alert pop up with name and number
alert(nameS + number[count]);
// What appears in HTML browser
document.write("<p>" + nameS + number[count] + "</p>");