/*SCRIPT VOOR FLOATING POPUP*/
function createPopUp(divId) {
  var overlay = document.getElementById('overlay');
  overlay.style.visibility = 'visible';
  document.body.appendChild(overlay);

  var popup = document.getElementById(divId);
  popup.style.marginTop = '-'+ popup.style.height.substr(0,3) / 2 +'px';
  popup.style.marginLeft = '-'+ popup.style.width.substr(0,3) / 2 +'px';
  popup.style.visibility = 'visible';
  document.body.appendChild(popup);
}
function deletePopUp(divId) {
  var overlay = document.getElementById('overlay');
  overlay.style.visibility = 'hidden';
  document.body.appendChild(overlay);

  var popup = document.getElementById(divId);
  popup.style.visibility = 'hidden';
  document.body.appendChild(popup);
}
function movePopUp(divId) {
  if (document.getElementById('overlay').style.visibility == 'visible') {
    createPopUp(divId);
  }
}