function sendPopUp(newLocation) {
  var w = 580;
  var h = 430;
  
  /* increase size because status bar is always visible on Windows XP */
  var Ergebnis = navigator.userAgent.match(/Windows NT ([5-9]).([0-9])/);
  if (navigator.userAgent.match(/ MSIE/) && Ergebnis && Ergebnis[2] && Ergebnis[1] && ((Ergebnis[2] >= 1) || (Ergebnis[2] > 5))) 
    h = h+10;
	
  var popUpWindow = window.open(newLocation, 'popup', 'resizable=yes, status=no, toolbar=no, scrollbars, width='+w+', height='+h);
  popUpWindow.resizeTo(w, h);
  popUpWindow.focus();
}

function printPopUp(newLocation) {
  var w = 700;
  var h = 500;
  var popUpWindow = window.open(newLocation, 'popup', 'resizable=yes, status=no, toolbar=no, scrollbars, width='+w+', height='+h);
  popUpWindow.resizeTo(w, h);
  popUpWindow.focus();
}

function glossaryPopUp(newLocation) {
  var h = 350;
  var w = 500;

  /* increase size because status bar is always visible on Windows XP */
  var Ergebnis = navigator.userAgent.match(/Windows NT ([5-9]).([0-9])/);
  if (navigator.userAgent.match(/ MSIE/) && Ergebnis && Ergebnis[2] && Ergebnis[1] && ((Ergebnis[2] >= 1) || (Ergebnis[2] > 5))) 
    h = h+10;

  var popUpWindow = window.open(newLocation, 'glossary', 'resizable=yes, status=no, toolbar=no, scrollbars, width='+w+', height='+h);
  popUpWindow.resizeTo(w, h);
  popUpWindow.focus();  
}


function tablePopUp(newLocation, preferedWidth) {

  var w = (preferedWidth && !isNaN(preferedWidth))? preferedWidth : 850;
  var h = 600;

  var Ergebnis = navigator.userAgent.match(/Windows NT ([5-9]).([0-9])/);
  if (Ergebnis && Ergebnis[2] && Ergebnis[1] && ((Ergebnis[2] >= 1) || (Ergebnis[2] > 5))) 
      h = h+xpSizePlus;

  var popUpWindow = window.open(newLocation, 'tablePopUp', 'scrollbars,resizable=yes,location=no,status=no,toolbar=no,width='+w+', height='+h);

  // get the first image in the new popup
  popUpWindow.resizeTo(w, h);
  popUpWindow.focus();
}

function imagePopUp(newLocation, w, h) {

  w += 15;
  h += 32;

  var Ergebnis = navigator.userAgent.match(/Windows NT ([5-9]).([0-9])/);
  if (Ergebnis && Ergebnis[2] && Ergebnis[1] && ((Ergebnis[2] >= 1) || (Ergebnis[2] > 5))) 
      h = h+xpSizePlus;

  var popUpWindow = window.open(newLocation, 'imagePopUp', 'resizable=yes,location=no,status=no,toolbar=no,width='+w+', height='+h);

  // get the first image in the new popup
  popUpWindow.resizeTo(w, h);
  popUpWindow.focus();
}