//centered popup 
//http://javascript.internet.com/navigation/centered-pop-up-window.html
var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}
// force the pop-up window to the front when the user clicks
function MM_openBrWindow(theURL,winName,features) { //v2.0
    var newWindow = window.open(theURL,winName,features);
    newWindow.focus();
}


