///////////////////////////////////////////////////////////////////////////////
//   GLOBAL FUNCTIONS
///////////////////////////////////////////////////////////////////////////////
if(top.location != window.location)
   top.location.replace(window.location);

///////////////////////////////////////////////////////////////////////////////
//   IE_Init()
//      Initialized the login page
//
//   Requires: Nothing.
//   Returns: Nothing.
//   Created:
//      [2003-10-03] Sven Batalla - Initial Version
///////////////////////////////////////////////////////////////////////////////
function IE_Init()
{
   try
   {
      with(form)
      {
         //If there is error text to display, do so now...
         if(eError.value.length > 0)
         {
            alert(eError.value);
            top.location.replace(String(window.location).split("?")[0]);
         }//if
         
         //Focus the username textbox
         Username.focus();
         Username.select();
      }//with
   }//try
   catch(Err)
   {}//catch
}//IE_Init()
///////////////////////////////////////////////////////////////////////////////
//   IE_Show_ForgotPassword()
//      Displays the forgotten password dialog
//
//   Requires: Nothing.
//   Returns: Nothing.
//   Created:
//      [2003-12-15] Sven Batalla - Initial Version
///////////////////////////////////////////////////////////////////////////////
function IE_Show_ForgotPassword(sUsername)
{
   try
   { window.showModalDialog('/login/ie-wizard-forgotpassword.aspx', sUsername, 'dialogWidth:400px; dialogHeight:170px; center:1; status:0; help:0; scroll:0;'); }
   catch(Err)
   {}//catch
}//IE_Show_ForgotPassword()

///////////////////////////////////////////////////////////////////////////////
//   IE_Show_SystemRequirements()
//      Displays the security settings for the site
//
//   Requires: Nothing.
//   Returns: Nothing.
//   Created:
//      [2003-12-15] Sven Batalla - Initial Version
///////////////////////////////////////////////////////////////////////////////
function IE_Show_SystemRequirements()
{
   try
   { window.showModelessDialog('/login/ie-wizard-requirements.aspx', null, 'dialogWidth:497px; dialogHeight:383px; center:1; status:0; help:0; scroll:0; resizable:1;'); }
   catch(Err)
   {}//catch
}//IE_Show_SystemRequirements()
