function OpenImg(url, width, height) {
  var posX = (screen.availWidth  - width)/2;
  var posY = (screen.availHeight - height)/2;
  image = window.open(url, 'image', "status=no, scrollbars=yes, resizable=yes, width="+width+", left=" + posX + ",top=" + posY);
}

