// JavaScript Document
function openNewWin(URL,theWidth,theHeight) {
var day = new Date();
var id = day.getTime();
var midW = screen.width/2;
var midH = screen.height/2;
var myW = theWidth;
var myH = theHeight;
var myWindow;

  var width=theWidth;
  var height=theHeight;
  var from_top=midH - myH/2;
  var from_left=midW - myW/2;
  var toolbar='no';
  var location='no';
  var directories='no';
  var status='no';
  var menubar='no';
  var scrollbars='yes';
  var resizable='yes';
  var atts='width='+width+',height='+height+',top='+from_top+',screenY=';
  atts+= from_top+',left='+from_left+',screenX='+from_left+',toolbar='+toolbar;
  atts+=',location='+location+',directories='+directories+',status='+status;
  atts+=',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;

myWindow=window.open(URL,'mynewwindow',atts);
//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=no,location=yes,statusbar=yes,menubar=no,resizable=no,width=winWidth,height=winHeight,left=midW,top=midH');");
}
