// JavaScript Document
<!--

new_win = null

function showpopup(path, optWidth, optHeight)
{
  // Pop up a windown in the middle of the screen.
  var width=typeof optWidth!="undefined" ? optWidth : "1024"   //set 800px to default width
  var height=typeof optHeight!="undefined" ? optHeight : "768"   //set 600px to  default height
/* alert( "w: " + width + ", h: " + height);*/
var left = parseInt((screen.availWidth/2) - (width/2));
  var top = parseInt((screen.availHeight/2) - (height/2));
  left = left + 50;
  top = top - 50; 
  var win_params = "width=" + width + ",height=" + height + ",resizeable=1, scrollbars=1";
  new_win = window.open(path,"wnd",win_params);
  new_win.resizeTo(width, height);
  new_win.moveTo(left, top);
  new_win.focus();
}

//-->
