

function OpenWindow(url, name, height, width, scrollStatus) {
  var strYes = ",scrollbars=yes"
  var strNo = ",scrollbars=no"
  var strScrl;

  switch(scrollStatus) {
   case "Yes":
    strScrl = strYes
   break;
   case "Yo":
    strScrl = strNo
   break;
   default:
    strScrl = strNo
   break;
  }
 
  var str = "status=Yes,height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width + strScrl
  
  if (window.screen)
  {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;
    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
   }
    return window.open(url, name, str);
  }