function NewWindow(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  w=parseInt(w)+16;
  h=parseInt(h)+16;
  if(document.all) {h+=12; w+=4;}
  else if(!document.all && document.getElementById){
    w+=4;
    h+=8;
  }
  else if(document.layers){
   w+=0;
   h+=0;
  }  
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+'';
  win = window.open(mypage, myname, winprops);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
