
function newWindow(mypage,myname,w,h,features)
 {if(screen.width)
    {var winl = (screen.width-w)/2;
     var wint = (screen.height-h)/2;}
  else
    {winl = 0;wint =0;}
  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();}
  
  



function SymError()
{
  return true;
}

window.onerror = SymError;


function BWC()
{
   // Open the BWC in a new Window
  // location.replace("../bwc/login.asp");
  var nWidth= document.body.clientWidth;
  var nHeight= document.body.clientHeight;
  var s;

   nHeight = "height=" + nHeight;
   nWidth  = "width=" + nWidth;
   s = "toolbar=0,location=0,menubar=0,resizable=1,top=10,left=10,scrollbars=1," + nWidth + "," +  nHeight;

   portfolio = window.open("","",s);
   portfolio.location.href = "../bwc/login.asp";   
   portfolio.focus();
}

function displayHelp(CurrentPage)
{
    helpWin = window.open("/misc/osaHelpWindow.asp?page=" + CurrentPage, "helpWindow", "location=no,status=no,toolbar=no,menubar=no,width=600,height=300,scrollbars=yes,resizable=yes");
    helpWin.focus();
}

