well, it has nothing to do with you javascript, that looks peachy, surely you could just chage the input type of the text area..... its at the bottom, change <table border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFBD">
<tr>
<td width="100%"><form name="password1"><div align="center"><center><p><strong>Enter password: </strong><input
type="text" name="password2" size="15"><br>
<input type="button" value="Submit" onClick="submitentry()"></p>
</center></div>
</form>
</td>
</tr>
where that is change it to say type="password" that should do it