
function doNext(farg,edId) {
  var errStr;
  errStr = "";
  if (farg=="HOME") {

  } else if (farg=="CHANGE_PW") {

  } else if (farg=="SHOW_REG") {

  } else if (farg=="SHOW_FULL") {

  } else if (farg=="RESET_USER") {
    confStr = "Clear all 'USER "+ edId + "' Activity & Feedback data from database?";
    confStr += "\n(User registration & access will not be affected)";
    if (!confirm (confStr)) {
      errStr = "User Reset action Cancelled";
    }

  } else if (farg=="ALLOW_USER") {
    if (eval("document.ADMIN.FM_ALLOWED_"+edId).checked) {
      confStr = "Allow 'USER "+ edId + "' to log-in?";
      wasChecked = false; // was false before they clicked it true
    } else {
      confStr = "Do not allow 'USER "+ edId + "' to log-in?";
      wasChecked = true;
    }
    if (!confirm (confStr)) {
      errStr = "User log-in rights change Cancelled";
      if (wasChecked) {
        eval("document.ADMIN.FM_ALLOWED_"+edId).checked = true;
      } else {
        eval("document.ADMIN.FM_ALLOWED_"+edId).checked = false;
      }
    }

  } else if (farg=="DELETE_USER") {
    confStr = "Delete 'USER "+ edId + "' Registration & Activity & Feedback from database?";
    if (!confirm (confStr)) {
      errStr = "User Delete action Cancelled";
    }
  
  } else if (farg=="SHOW_EVENTS") {
  
  } else if (farg=="ADD_EVENT") {
  
  } else if (farg=="DELETE_EVENT") {
    var strName = eval("document.forms[0].name_short_"+edId+".value");
    confStr = "DELETE event ["+ strName + "...]\nfrom the website?";
    if (!confirm (confStr)) {
      errStr = "User Delete action Cancelled";
    }
  
  } else if (farg=="EDIT_EVENT") {
  
  } else if (farg=="UPDATE_EVENT") {
  
  } else if (farg=="INSERT_EVENT") {

  } else if (farg=="SHOW_RELEASES") {
  
  } else if (farg=="ADD_RELEASE") {
  
  } else if (farg=="DELETE_RELEASE") {
    var strName = eval("document.forms[0].name_short_"+edId+".value");
    confStr = "DELETE release ["+ strName + "...]\nfrom the website?";
    if (!confirm (confStr)) {
      errStr = "User Delete action Cancelled";
    }
  
  } else if (farg=="EDIT_RELEASE") {
  
  } else if (farg=="UPDATE_RELEASE") {
  
  } else if (farg=="INSERT_RELEASE") {

  } else if (farg=="SHOW_COMMON") {
  
  } else if (farg=="EDIT_COMMON") {
  
  } else if (farg=="UPDATE_COMMON") {
  
  } else if (farg=="GO_DEMO") {

  } else if (farg=="GO_COMMON") {

  } else if (farg=="GO_RELEASES") {

  } else if (farg=="GO_EVENTS") {
  }
  
  if (errStr == "") {
//alert ("["+farg+"]["+edId+"]");
    subIt(farg,edId);
  } else {
    alert(errStr);
  }
}


function subIt(farg,edId) {
  document.ADMIN.TODO.value = farg;
  document.ADMIN.EDITSOURCE.value = edId;
  document.ADMIN.submit();
}
