/*
***********************************************************************************************
   Name: openWindow()
   Parameters: The name of the file to open.
   Returns: Void
   Purpose: Opens a new window and loads the document specified by a given URL (includes
            query string).
   Author: If this code works, it was written by Alyda Gilmore
***********************************************************************************************
*/
function openWindow(s)
{
  var oWindow;
  var sFeatures = '';
  var iWidth = 440;
  var iHeight = 430;
  var sWin = '';
  sFeatures += 'status=no, toolbar=no, directories=no, menubar=no, location=no, resizable=no';
  if(s == 'privacy.asp?oto=1')
  {
    iWidth = 540;
    iHeight = 490;
    sFeatures += ', scrollbars=yes';
  }
  if(s == 'register.asp?oto=1')
  {
    iWidth = 440;
    iHeight = 490;
    sFeatures += ', scrollbars=no';
  }
  if(s == 'register.asp?oto=1&eml=1')
  {
    iWidth = 440;
    iHeight = 520;
    sFeatures += ', scrollbars=no';
  }
  if(s == 'forgotten.asp?oto=1')
  {
    iWidth = 440;
    iHeight = 360;
    sFeatures += ', scrollbars=no';
  }
  if(s == 'loginHelp.asp?oto=1')
  {
    iWidth = 440;
    iHeight = 420;
    sFeatures += ', scrollbars=no';
  }
  if((s == 'feedback.asp?oto=1') || (s == 'survey.asp?oto=1'))
  {
    iWidth = 670;
    iHeight = 540;
    sFeatures += ', scrollbars=yes';
  }
  if(s == 'guest.asp?oto=1')
  {
    iWidth = 776;
    iHeight = 535;
    sFeatures += ', scrollbars=yes';
  }
  if((s == 'D107') || (s == 'L208') || (s == 'Pool'))
  {
    sWin += 'qtvr.asp?movieID=';
    sWin += s;
    s = sWin;
    iWidth = 350;
    iHeight = 315;
    sFeatures += ', scrollbars=no';
  }
  oWindow = open(s, null, sFeatures);
  oWindow.focus();
  oWindow.resizeTo(iWidth, iHeight);
  return;
}
