`;
}
// Generate random password
function generatePassword() {
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%";
let password = "";
for (let i = 0; i < 12; i++) {
password += chars.charAt(Math.floor(Math.random() * chars.length));
}
return password;
}
// Reset form function
window.resetForm = function() {
document.getElementById("userForm").reset();
document.getElementById("userType").value = "";
document.getElementById("password").value = generatePassword();
};
// Handle button clicks
window.chooseItem = function(label) {
if (label === "User Management") {
createPanel("userManagement", "CC", "ctc", 400, 500, {
noFooter: true,
title: "User Management System",
resizeAble: true,
bodyContent: renderUserManagementPanel()
});
} else {
alert("You chose: " + label);
}
};
});