function isLawSchoolIP(ip){
	if ( 
			(ip.indexOf('128.253.22') == 0
		|| 	ip.indexOf('132.236.108') == 0
		||  ip.indexOf('128.253.118') == 0
		||  ip.indexOf('132.236.109') == 0)
		&&  ip.indexOf('128.253.22.220') != 0
		&&  ip.indexOf('128.253.118.61') != 0
		)
	{
		return true;
	}
	return false;
}


// check for cookie existence
//alert(self.document.cookie);
if (
   document.cookie.indexOf('LIIMemberOK') == -1 
   && isLawSchoolIP(clientaddr) == false
   )
   {
	
// javascript to do window popups
    var ns = (navigator.appName == "Netscape");
    var winX = (ns)?top.innerWidth-16 : top.document.body.clientWidth-20;
    var winY = (ns)?top.innerHeight : top.document.body.clientHeight;

    lX = winX/2 - 150;
    lY = winY/2 - 50;
    
var p = top.open('about:blank','mempop','width=325,height=325,menubar=no,scrollbars=yes,resizable=no,screenx='+lX+',screeny='+lY+',top='+lY+',left='+lX);
//if (!p.opener) p.opener=self; 

var d = p.document;

d.write('<HTML>');
d.write('<HEAD>');
d.write('<TITLE>Become an LII member!</TITLE>');
d.write('</HEAD>');
d.write('<BODY BGCOLOR="#f4f4f4" onUnload="opener.document.cookie=\'LIIMemberOK=yes; path=/; domain=law.cornell.edu\';">');
	
d.write('<p><B>Help support the LII </B></p>');
d.write('<p>As we near the end of the Supreme Court term, we\'re asking you to support the LII and its activities.');
d.write('We need your tax-deductible contribution, and we solicit as well your suggestions ');
d.write('for  improving  the LII site and services.</p>');
d.write('<FORM onSubmit="opener.location.href=\'https://www.law.cornell.edu/members/member_start.php3\'; self.close();">');
d.write('<DIV ALIGN="center">');
d.write('<INPUT TYPE="submit" VALUE="I\'d like to help">&nbsp;&nbsp;');
d.write('<INPUT TYPE="button" VALUE="Not now, thanks." onClick="opener.document.cookie=\'LIIMemberOK=yes; path=/; domain=law.cornell.edu\';self.close();"><P>');
d.write('</DIV>');
d.write('</FORM>');
d.write('</BODY>');
d.write('</HTML>');
top.onload='top.p.focus()';
top.onunload='top.p.close()';
p.onblur='top.p.close()';
}


