<!-- begin script

function doLogout()
{
  if ( confirm("Are you sure you want to exit the College Application Tracking System?") ) {
    top.collegeContainer.location.href = '../admin/logout.php';
  }
}

function enterSystem( schoolRoot )
{
  //var cookieEnabled = navigator.cookieEnabled;
  var cookieEnabled = true; // assume true unless can't set it, so browser add-ons like Cookie Monster work.

  if ( (cookieEnabled == null) || (typeof(cookieEnabled) == "undefined") ||
    cookieEnabled )
  {
    setCookie("ORG", schoolRoot);

    var cookieValue = getCookie("ORG");
    if ( (cookieValue == 0) || (cookieValue != schoolRoot) )
    {
      cookieEnabled = false;
    }
    else {
      // In case it was undefined
      cookieEnabled = true;
    }
  }

  if ( !cookieEnabled ) {
    alert( "Your browser preferences are currently set to \"not accept cookies\". " +
      "In order to login you will need to accept cookies." );
    return false;
  }

  if ( (typeof(document.EnterForm.passwd) != "undefined") &&
       (document.EnterForm.passwd.value.length < 1) )
  {
    document.EnterForm.passwd.focus();
    alert( "You must enter your school's master password. The school should have provided this password to you, and it is not the same as your own account credentials (if you already have an account)." );
    return false;
  }

  if ( document.body && document.body.filters &&
       (typeof(notebook) != "undefined") &&
       (typeof(notebook.filters[0]) != "undefined") )
  {
      notebook.filters[0].apply();
      notebook.style.visibility = "hidden";
      notebook.filters[0].play();

      if (typeof(loadingMsg) != 'undefined') {
        loadingMsg.style.visibility = 'visible';
      }
  }

  return true;
}

/*
function loadConfigParams()
{
  var schoolRoot = getCookie("ORG");
  if ( schoolRoot == null ) {
    schoolRoot = "";
  }
  document.writeln( "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"/customer/" + schoolRoot + "/config/config_params.js\"></SCRIPT>" );
}
function checkConfigParams()
{
  if ( typeof(configParams) == "undefined" ) {
    alert( "ERROR: You must enter the College Application Tracking System through the \"front door\".\n\nClick on a link on your school's web site or ask the school administration for the correct web address." );

    document.location.href = '/college/';
  }
}
*/

// end script -->
