Javascript Beginer
<p>I'm trying to get this code to say "hello" to normal people, but if your name is Nick, I want it to say, "Hello Master, You Have Pressed (whatever button you pressed)." But it is not working, I'm not sure whats wrong, here's the code that I'm trying to use.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;

&lt;script type="text/javascript"&gt;

function Name(button)
{
    ame = prompt("Whats Your Name?", "Visitor")
    var ame = "Nick"
    if(ame == "Nick"){
        alert("Hello Master, You Have Pressed, " + button)
    }else(ame != "Nick")
        alert("Hello " + ame + ", You Pressed " + button)
    }

&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;a href="javascript:Name('1')"&gt;&lt;img src="1.gif"&gt;&lt;/a&gt;
&lt;a href="javascript:Name('2')"&gt;&lt;img src="2.gif"&gt;&lt;/a&gt;
&lt;a href="javascript:Name('3')"&gt;&lt;img src="3.gif"&gt;&lt;/a&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
