function jsNewWindow(jsTarget, jsWidth, jsHeight)
{
var winWidth = jsWidth;
var winHeight = jsHeight;
var winleft = 0;
var winTop = 0;
if (((winWidth == null) && (winHeight == null)) || ((winWidth == 0) && (winHeight == 0))) {
   if (screen) {
      winWidth = (screen.width - 100);
      winHeight = (screen.height - 150);
      winleft = (screen.width/2)-winWidth/2;
      winTop = (screen.height/2)-(winHeight+50)/2;
   }
}
   window.open(jsTarget,"","top="+winTop+",left="+winleft+",width=" + winWidth + ",height=" + winHeight + ",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

