function BrowserInfo()
{
  this.screenWidth = screen.width;
  this.screenHeight = screen.height;
}

var b = new BrowserInfo();
var h80= (b.screenHeight*0.8);
var h90= (b.screenHeight*0.8);







function openWin(theURL,winName,features) { //v2.0



if (document.all)
      {
      var x = window.screenLeft;
      var y = window.screenTop;
      var w = window.document.body.offsetWidth;
      var h = window.document.body.offsetHeight;
      }
  else
   {
   var x = window.screenX;
   var y = window.screenY;
   var w = window.outerWidth;
   var h = window.outerHeight;
   }
  var cntx = x + Math.round((w - 770) / 2);
  var cnty = y + Math.round((h - h80) / 2);
  
  features +=',left=' + cntx + ',top=50';
  
 // window.open(theURL,winName,features + ',left=' + cntx + ',top=' + cnty);
  window.open(theURL,winName,features);

}
