function PopUp2(image,xb,yb,scrollbars) {
  if (xb < 510) {
    width = xb+40;
  } else {
    width = 550;
    scrollbars=1;
  }

  if (yb < 343) {
    height = yb+50;
  } else {
    height = 440;
    scrollbars=1;
  }

  var win_para = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + scrollbars + ",resizable=0,top=10,left=10,width=" + width + ",height=" + height;
  popup = window.open(image, "PopUp2", win_para);
  popup.focus()
}  