Having a button open an alert window, create a new button, and then open a new alert window
<p>This is my basic code without the html header and ending. I am trying to do a javascript button push to help people realize the dangers of clicking on random links or buttons from within a web page. I have been able to get everything but the show_alert2 function to work. I am very new to javascript so I might just be missing something but I can not figure out what it is. Any help would be most appreciated.</p>

<pre><code>&lt;head&gt;
//&lt;script type="text/javascript"&gt;
function show_alert()
{
alert("You really just clicked on a random button?");
document.write("&lt;h1&gt;Hi there. You have just been hacked.&lt;/h1&gt;");
document.write("&lt;p&gt;It is a very bad Idea to click on links that you don't know where they
lead too.&lt;/br&gt;Click on the button below to fix the damgaes to your computer.&lt;/p&gt;")
document.write('&lt;input type="button" id="delta" onmouseup="show_alert2()" value="Save your
System." /&gt;');
}
function show_alert2()
{
alert("Some People never Learn do they....");
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;input type="button" onclick="show_alert()" value="Show alert box" /&gt;
&lt;/body&gt;
</code></pre>
