function Popup(url, winname, width, height, message) {
  if (message != "") height+= 115;
  width+= 40;
  leftVal = (screen.width - width) / 2;
  topVal = (screen.height - height) / 2;
  winref = window.open(url,winname,'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,left='+leftVal+',top='+topVal);

  if (url == "") {
    top.winref.document.writeln('<html><head><title></title></head><body bgcolor="white"><font face="Arial"><center>' + message + '</center></font></body></html>');
  }
  return false;
}

