function GeneratePassword(targetId) {
  ajaxSend('index.php','action=password&targetId='+targetId,'GET');
}
function showPassword(rValue) {
  document.getElementById(rValue.targetId).value = rValue.newContent;
  document.getElementById(rValue.targetId.replace(/password/,'confirm_password')).value = rValue.newContent;
  showCurrentPassword(rValue.targetId);
}
function showCurrentPassword(targetId) {
  if (document.getElementById(targetId).value.length > 0) {
    showPopup(document.getElementById(targetId).value);
  }
}