File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/old-myadmin/library/user.js
// JavaScript Document
function checkAddUserForm()
{
with (window.document.frmAddUser) {
if (isEmpty(txtUserName, 'Enter user name')) {
return;
} else if (isEmpty(txtPassword, 'Enter password')) {
return;
} else {
submit();
}
}
}
function addUser()
{
window.location.href = 'index.php?view=add';
}
function changePassword(userId)
{
window.location.href = 'index.php?view=modify&userId=' + userId;
}
function deleteUser(userId)
{
if (confirm('Delete this user?')) {
window.location.href = 'processUser.php?action=delete&userId=' + userId;
}
}