function BrowserInfo()
{
  this.screenWidth = screen.width;
  this.screenHeight = screen.height;
}

var b = new BrowserInfo();
var w90= (b.screenWidth*0.9);
var h90= (b.screenHeight*0.9);







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 - w90) / 2);
  var cnty = y + Math.round((h - h90) / 2);
  
  //window.open(theURL,winName,features + ',left=' + cntx + ',top=' + cnty);
window.open(theURL,winName,features);
}