function getWindowDimensions(newWindowWidth, newWindowHeight)
{
  var iHeight;
  var iWidth;

  iWidth=(window.screen.width/2) - ((newWindowWidth/2) + 10);
  iHeight=(window.screen.height/2) - ((newWindowHeight/2) + 50);
  
  return "width="    + newWindowWidth 
       + ",height="  + newWindowHeight 
       + ",left="    + iWidth 
       + ",top="     + iHeight 
       + ",screenX=" + iWidth 
       + ",screenY=" + iHeight;
  
}

function openBasic(url)
{
  //alert(url);
  var dimensions = getWindowDimensions(750,650);
  var basic  = window.open(url,"BASIC", dimensions + ",location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=no,status=yes");
  basic.focus();
}
