// JavaScript NoRightClick and others

var message="Sorry, that function is disabled.\n All outside links open over \nthis page or into a new window."; // Message for the alert box

// Don't edit below!

function click(e) {
	if (document.all) {
		if (event.button != 1) {
			alert(message);
			return false;
		}
	}

	if (document.layers) {
		if (e.which !=1) {
			alert(message);
			return false;
		}
	}
}

/*if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}

document.onmousedown=click;*/


function checkTop()
{  var topURL = top.location.href;
   var index = topURL.lastIndexOf("/");
   var href = topURL.substring(index + 1);
   
   if ((href != "Default.aspx") && (href.indexOf("Default.aspx?ROLLNUM=") < 0))
   {	
		top.location.href = "Default.aspx";
   }
}

/* checkTop(); */