// function updatePwd(idInput) // Check the browser var ie = (document.all)? true:false; var ns4 = (document.layers)? true:false; var ns6 = (document.getElementById)? true:false; function updatePwd(){ var pwdCrypted=''; if (ns6) { pwdCrypted=MD5(document.getElementById('password_lmdb').value); pwdCrypted=pwdCrypted+document.getElementById('timestamp').value; pwdCrypted=MD5(pwdCrypted); document.getElementById('password_lmdb').value=pwdCrypted; } else { if (ns4) { pwdCrypted=MD5(document.password_lmdb.value); pwdCrypted=pwdCrypted+document.document.timestamp.value; pwdCrypted=MD5(pwdCrypted); document.password_lmdb.value=pwdCrypted; } else { pwdCrypted=MD5(document.all.password_lmdb.value); pwdCrypted=pwdCrypted+document.all.document.timestamp.value; pwdCrypted=MD5(pwdCrypted); document.all.password_lmdb.value=pwdCrypted; } } return true; } function updateRegisterPwd() { EncryptField('Password'); EncryptField('ConfPassword'); return true; } function EncryptField(id){ if (ns6) { document.getElementById(id).value=MD5(document.getElementById(id).value); } else { if (ns4) { document.id.value=MD5(document.id.value); } else { document.all.id.value=MD5(document.all.id.value); } } return true; }