<!--
// Valid Parent pages

var asValidParents = new Array(
  "Default.asp",
  "fraMain.asp",
  "fraAdmin.htm",
  "rptJointDocket.asp",
  "rptTrademarkList.asp",
  "rptTrademarkStatus.asp")

//Netscape's browser detection
function Is(){
	 // convert all characters to lowercase to simplify testing 
    var agt=navigator.userAgent.toLowerCase(); 
    // *** BROWSER VERSION *** 
    // Note: On IE5, these return 4, so use is.ie5up to detect IE5. 
    this.major = parseInt(navigator.appVersion); 
    this.minor = parseFloat(navigator.appVersion); 

    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1));       
    this.nav4 = (this.nav && (this.major == 4)); 
    this.nav4up = (this.nav && (this.major >= 4)); 
    this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) || 
                          (agt.indexOf("; nav") != -1)) ); 
    this.nav5 = (this.nav && (this.major == 5)); 
    this.nav5up = (this.nav && (this.major >= 5)); 

    this.ie   = (agt.indexOf("msie") != -1); 
    this.ie4  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")==-1) ); 
    this.ie4up  = (this.ie  && (this.major >= 4)); 
    this.ie5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 
    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4); 
    
    // *** PLATFORM *** 
    this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) ); 
    this.mac    = (agt.indexOf("mac")!=-1); 
} 
  
var is = new Is(), 
  sMsg="This site supports Internet Explorer (4.0+) and Netscape Navigator/Communicator (4.0+) running on Windows 95, Windows 98, or Windows NT.  We apologize for any problems that you may experience if you use a different system.";

if(is.win){
	if((is.ie)||(is.nav)){
		if(!(is.ie4 || is.nav4 ||is.ie5 || is.nav4up || is.ie5up)){
			alert(sMsg);
		}
	}else{
		alert(sMsg);
	}
}else{
	alert(sMsg);
}	
var bNS4 = is.nav4 ? true : false;
var bNS4up = is.nav4up ? true : false;
var bNS5up = is.nav5up ? true : false;
var bIE4 = is.ie4 ? true : false;
var bIE4up = is.ie4up ? true : false;
var bIE5up = is.ie5up ? true : false;
var bWin = is.win ? true : false;
var bDocAll = (document.all) ? true : false;
var bLayers = (document.layers) ? true : false;
var bWinPrint = (window.print) ? true : false;
var bVer4up = is.major>=4 ? true : false;

// Make sure we're running in our expected environment
var sMainUrl = window.top.location.href;
var sDir = sMainUrl.substring(0,location.href.lastIndexOf('/')+1);
var sPageName = sMainUrl.substring(sDir.length,sMainUrl.length+1).toLowerCase();
var bKickOut=true;
for(counter in asValidParents){
	if(sPageName.indexOf(asValidParents[counter]).toLowerCase!=-1){
		bKickOut=false;
		break;
	}
}
if(bKickOut){
	alert("In order to function safely and correctly,\n"+
	  "this page can not be nested in unidentified pages.");
	window.top.location.href = asValidParents[0];	
}

//-->