",""));
  }
}

function getStatus() {
  makeRequest("get", "a");
}

function makeControl(funID) {
  if(currentStatus[funID] == "1") {
    makeRequest("clr", funID);
  } else {
    makeRequest("set", funID);
  }
}

function setBtnLabel() {
  for( var index in currentStatus) {
    if(currentStatus[index] == "1") {
      document.getElementById("control-" + index).innerHTML = "On";
    } else {
      document.getElementById("control-" + index).innerHTML = "Off";
    }
  }
}

function makeRequest(option, funID)