// Checks to see what the referrer is. If the referrer address includes on of the array values, it does the action (popup, in this case) //
function fDoActionBasedOnCertainReferrers(){
//	alert ("The referrer without variable was: " + document.referrer)

    var w = screen.width/1.2;
	var h = screen.height/1.7;
	var Xpi = ((screen.width - (screen.width/1.2))/2);
	var Ypi = ((screen.height - (screen.height/1.2))/4);
	self.name="parent_window";
	theLocation = "disclaimer.htm";
	
	var validreferrals=new Array()
	validreferrals[0]="mercerweb.com"
	validreferrals[1]="http://abc/xyz/tester.htm"
	
	var passed=0
	
	for (r=0;r<validreferrals.length;r++){
	if (document.referrer.indexOf(validreferrals[r])!=-1){
	passed=1
	break
	}
	}
	
	if (passed==0) {
		var newwin = window.open(theLocation, "disclaimer", "width=600,height=300,scrollbars=yes,status=no,height="+h+",width="+w+",screenX="+Xpi+",screenY="+Ypi+",top="+Ypi+",left="+Xpi+"")
	}
	
}

