<script type="text/javascript">
if(isIE)
{
document.getElementById("cvvCode").onpropertychange = MaskPassword();
}
else
{
document.getElementById("cvvCode").addEventListener("input", MaskPassword, false);
}
function MaskPassword(){
var inputPassword = document.getElementById("cvvCode").value;
var plainPassword = document.getElementsByName("test.cvvCode")[0].value;
var encodePassword = '';
if (inputPassword != '') {
for (var i=0; i<inputPassword.length; i++) {
if (inputPassword.charAt(i) == "\u25CF"){
encodePassword += inputPassword.charAt(i);
} else{
plainPassword += document.getElementById("cvvCode").value.charAt(i)
encodePassword += "\u25CF";
}
}
} else{
plainPassword = inputPassword;
}
document.getElementsByName("test.cvvCode")[0].value = plainPassword;
document.getElementById("cvvCode").value = encodePassword;
}
script>