var eventwin;

// Set the message for the alert box
am = "This function is disabled!";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;


function changeStyle(id, newclass)
{
 document.getElementById(id).className = newclass;
}



function redir(qs)
{
 window.location = qs;
}

function showExtLink(sUrl)
{

 if(sUrl.indexOf('http://www.schoolsportsnl.ca/admin') < 0)
 {
  var rtn = confirm('You are about to be directed to an external site. The content of the site can not be\nverified by School Sports Newfoundland and Labrador. Click OK if you would like to continue.');
  if(rtn)
  {
   window.open(sUrl,'_Blank','TOP=1,LEFT=1');
  }
 }
 else
 {
  window.open(sUrl,'_Blank','TOP=1,LEFT=1,scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes');
 }
}

function redirParent(sUrl)
{

 this.opener.document.location = sUrl;
 this.close();

}

function submitform()
{
  document.myform.submit();
}