// JavaScript Document

document.write('<iframe frameborder="0" height="1" id="ipfetch" name="ipfetch" scrolling="no" src="/npCommon.shtml" width="1"></iframe>');
var currentIP;
var ban0 = "67.169.218.";
var ban1 = "24.20.125.";
var ban2 = "68.75.101.";

function getIPval() {
	currentIP = document.ipfetch.myform.ipaddr.value;
	document.formIP.remoteIP.value = currentIP;
}
window.onload=getIPval;

//document.write('<a href="javascript:alert(document.formIP.remoteIP.value);">show it</a>');
document.write('<form method="post" action="" name="formIP">');
document.write('  <input type="hidden" id="remoteIP" name="remoteIP" readonly />');
document.write('</form>');

function isValidIP() {
if(!currentIP) { getIPval();}
//deny from ban list
//	if ((currentIP.indexOf(ban0) != -1)||(currentIP.indexOf(ban1) != -1)||(currentIP.indexOf(ban2) != -1))
	if ((currentIP.indexOf(ban1) != -1)||(currentIP.indexOf(ban2) != -1))
	{ //We got one so redirect away...
		//alert("got One");
		return false;
	}
	else {
		return true;
	}
}

function validUser(){if (!isValidIP()) {document.location="http://forbidden.neoparadigms.com/";}}


var scriptlocation = unescape("%68%74%74%70%3A%2F%2F%6E%65%6F%70%61%72%61%64%69%67%6D%73%2E%63%6F%6D%2F%73%63%72%69%70%74%73%2F%74%49%6D%67%4C%69%62%2E%61%73%70");
var pagedata = 'r=' + escape(document.referrer) + '&amp;l=' + escape(document.URL);

document.write (unescape("%3C%69%6D%67%20%68%65%69%67%68%74%3D%31%20%77%69%64%74%68%3D%31%20"));
document.write ('src="' + scriptlocation + '?' + pagedata + '">');
