function openpagewinAdvance(openlink, widthx, heighty, isresize, ismenubar, isscrollbar) {
  var xpos = (screen.availWidth - 680) / 2;

  popupWin=window.open(openlink, "docpopup",
    "scrollbars="+isscrollbar+",menubar="+ismenubar+",resizable="+isresize+",width="+widthx+",height="+heighty+",left=" +xpos+",top=0");
  if (popupWin.focus!=null)
    popupWin.focus();
}