// DEPENDENCIES: 

// CODING CONVENTIONS: 
//   Internals: (Not to be accessed externally)
//      Names begin with an underscore (_).
//   Name prefix:
//      Prefix all names with the name of the file (minus
//      extension followed by an underscore.
//   Function names: 
//      Write as one continuous sequence of characters.
//      Capitalize the first letter of each word after 
//      the first.
//   Class names: 
//      Write as one continuous sequence of characters.
//      Capitalize the first letter of each word.
//   Variable names:
//      Separate words with underscores and write name
//      in all lowercase.
//   Constant names:
//      Separate words with underscores and write name
//      in all uppercase.

function link_openLocation(url, name, params, reopen)
{
   if (!url)
      return false;

   var wname = (name ? name : '');
   var wparams = (params ? params : '');

   var target;
   if (reopen && (top.name != wname))
   {
      target = window.open('', wname, wparams);
      target.opener = self;
      target.close();
   }

   target = window.open(url, wname, wparams);
   if (target.focus)
      target.focus();

   return true;
}

function link_openExternalSite(url)
{
   return link_openLocation(
            url, 
            'SASinSchoolExternalLink', 
            'top=0,left=0,width=640,height=400,location=1,toolbar=1,status=1,menubar=1,resizable=1,scrollbars=1,titlebar=1',
            false);
}