// javascript:openImage('./files/de_services_vis_coatingchart_big_1.jpg',696,321);
function openImage(popupUrl, w, h){
  var popup_left = (window.screen.width / 2) - (w / 2);
  var popup_top = (window.screen.height / 2) - (h / 2);
  if (document.all) {
    var xyPos = 'left=' + popup_left + ',top=' + popup_top;
  } else {
    var xyPos = 'screenX=' + popup_left + ',screenY=' + popup_top;
  }
  
  var name = popupUrl.replace(/\./g, "_");
  var newName = name.split('/');
  var numb = newName.length-1;
    popupW = window.open('/files/_js/popup.html?thisImg='+popupUrl, newName[numb], "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=yes,width=" + w + ",height=" + h + ",copyhistory=no," + xyPos + "");
    popupW.opener = self;
    popupW.focus();
}
