var loc = "../Login.jsp";
if(goToPage != null && goToPage.length > 0){
	loc = goToPage;
}
alert("There are 3 possible reasons for you seeing this message:\n\n1. You tried to go directly to a page rather than passing through Trackwrestling`s gateway.\n\n2. Your session timed out and you need to re-login.\n\n3. Trackwrestling has reached is max capacity for users, and you will have to try back later.");
var p = parent;
var count = 0; 
if(p!=null){
	while(count < 5 && p.parent!=null){
		p = p.parent; count++; 
	}
	p.location.href=loc;
}else{
	location.href = loc;
}