function setcookie_rep(){
	dd = new Date();
	ye = dd.getYear();      if (ye < 1900) ye += 1900;
        mo = dd.getMonth() + 1; if (mo < 10) mo = '0' + String(mo);
	da = dd.getDate();      if (da < 10) da = '0' + String(da);
	ho = dd.getHours();     if (ho < 10) ho = '0' + String(ho);
	mi = dd.getMinutes();   if (mi < 10) mi = '0' + String(mi);
	se = dd.getSeconds();   if (se < 10) se = '0' + String(se);
	date = String(ye) + String(mo) + String(da) + String(ho) + String(mi) + String(se);

	e=new Date();
	e.setTime( e.getTime() + (86400000 * 365) );
	e=e.toGMTString();
	document.cookie='rep=' + date + '; expires=' + e + '; path=/;';
	return(date);
}

function setcookie_tod(){
	dd = new Date();
	ye = dd.getYear();      if (ye < 1900) ye += 1900;
        mo = dd.getMonth() + 1; if (mo < 10) mo = '0' + String(mo);
	da = dd.getDate();      if (da < 10) da = '0' + String(da);
	ho = dd.getHours();     if (ho < 10) ho = '0' + String(ho);
	mi = dd.getMinutes();   if (mi < 10) mi = '0' + String(mi);
	se = dd.getSeconds();   if (se < 10) se = '0' + String(se);
	date = String(ye) + String(mo) + String(da) + String(ho) + String(mi) + String(se);

	document.cookie='tod=' + date + '; path=/;';
	return(date);
}

function getCookie(key,  tmp1, tmp2, xx1, xx2, xx3) {
    tmp1 = " " + document.cookie + ";";
    xx1 = xx2 = 0;
    len = tmp1.length;
    while (xx1 < len) {
        xx2 = tmp1.indexOf(";", xx1);
        tmp2 = tmp1.substring(xx1 + 1, xx2);
        xx3 = tmp2.indexOf("=");
        if (tmp2.substring(0, xx3) == key) {
            return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));
        }
        xx1 = xx2 + 1;
    }
    return("");
}

repeat = getCookie("rep");
today = getCookie("tod");

if(repeat == ""){
	flag='0';
	repeat = setcookie_rep();
}else{ flag='1'; }

if(today == ""){
	today = setcookie_tod();
}

scw = screen.width;
sch = screen.height;
refer = document.referrer;
cols = screen.colorDepth;
cul = location;
// url = '<img src="http://al.l--l.jp/in.cgi?wid=x=' + ID + '&&flag=x=' + flag + '&&repeat=x=' + repeat + '&&today=x=' + today + '&&ref=x=' + refer + '&&sw=x=' + scw + '&&sh=x=' + sch + '&&cul=x=' + cul + '" width=0 height=0>';
url = '<a href="http://al.l--l.jp/" title="Access Analize Pierrot"><img src="http://al.l--l.jp/in.cgi?wid=x=' + id + '&&flag=x=' + flag + '&&repeat=x=' + repeat + '&&today=x=' + today + '&&ref=x=' + refer + '&&sw=x=' + scw + '&&sh=x=' + sch + '&&cul=x=' + cul + '&&cols=x=' + cols + '" width=0 height=0 border=0></a>';
if(id != 'okinawa'){
document.write(url);
}
