
pmsAddLineCounter = 0; // Counts the number of added user lines

function pmsElementExchangeVisible(toShow, toHide) {
  // hide element
  toHide.style.display = "none";

  // show element
  toShow.style.display = "";
}

function pmsSwitchElementStatic(id, revertText) {
  dynamicElement = document.getElementById(id + "_dynamic");
  if (!dynamicElement) {
  alert("ERROR: dynamic variant of " + id + " not found!");
    return;
  }

  staticElement = document.getElementById(id + "_static");
  if (!staticElement) {
    alert("ERROR: static variant of " + id + " not found!");
    return;
  }

  // switch now
  pmsElementExchangeVisible(staticElement, dynamicElement);
}
    
function pmsSwitchElementDynamic(id) {
  dynamicElement = document.getElementById(id + "_dynamic");
  if (!dynamicElement) {
  alert("ERROR: dynamic variant of " + id + " not found!");
    return;
  }

  staticElement = document.getElementById(id + "_static");
  if (!staticElement) {
    alert("ERROR: static variant of " + id + " not found!");
    return;
  }

  // switch now
  pmsElementExchangeVisible(dynamicElement, staticElement);
}

 
