<input name="password1" type="password1" value="" style="width:160px" οnfοcus="clearPass();" οnkeyup="this.value=this.value.replace(/./g,'*');" οnkeypress="hiddenPass();" />
<input name="password" type="hidden" value="" />
<script type="text/javascript">
function hiddenPass(){
var pass=document.getElementById("password1");
var j_pass=document.getElementById("password");
if(event.keyCode==13){
form_submit();
}
var keycode=event.keyCode;
var keychar=String.fromCharCode(keycode);
j_pass.value=j_pass.value+keychar;
j_pass.value=j_pass.value.substring(0,pass.length);
}
function clearPass(){
document.getElementById("password1").value="";
document.getElementById("password").value="";
}
</script>
<input name="password" type="hidden" value="" />
<script type="text/javascript">
function hiddenPass(){
var pass=document.getElementById("password1");
var j_pass=document.getElementById("password");
if(event.keyCode==13){
form_submit();
}
var keycode=event.keyCode;
var keychar=String.fromCharCode(keycode);
j_pass.value=j_pass.value+keychar;
j_pass.value=j_pass.value.substring(0,pass.length);
}
function clearPass(){
document.getElementById("password1").value="";
document.getElementById("password").value="";
}
</script>