var s,cn,m,n,count;
s   = document.cookie;
cn  = "cookie_name=";
n   = s.indexOf(cn,0);
//str = navigator.appName.toUpperCase();
str = navigator.userAgent;

if (n != -1) {
  m = s.indexOf(";",n+cn.length);
  if (m == -1) m = s.length;
   count = s.substring(n+cn.length,m);
 }
  else { count = "0"; }

 if (count >= 150) { location.href = "shiki_stop.htm"; }

 if (!navigator.cookieEnabled)  { location.href ="cookie.htm"; }
  if (str.indexOf("NexTools") >= 0) { location.href ="brow.htm"; }
 if (str.indexOf("TencentTr") >= 0) { location.href ="stop.htm"; }
 if (str.indexOf("Crawler") >= 0) { location.href ="stop.htm"; }
 if (str.indexOf("NaverBot") >= 0) { location.href ="stop.htm"; }
 if (str.indexOf("Capture") >= 0) { location.href ="stop.htm"; }


function chk() {
 cn = "cookie_name=";
 c_date = new Date();
 n = c_date.getTime() + 1000*60*60*1;
 c_date.setTime(n);
 kigen = c_date.toGMTString();
 count++;
 document.cookie = cn + count + "; expires=" + kigen;
}
