function getCookie(theName){
	theName += "=";
	theCookie = document.cookie + ";";
	start = theCookie.indexOf(theName);
	if(start != -1){
		end = theCookie.indexOf(";", start);
		return unescape(theCookie.substring(start + theName.length, end));
	}
	return -1;
}

msec = new Date();
tmp_stamp = new Date( );
tmp_stamp.setFullYear(tmp_stamp.getFullYear( ) + 1);
exp_limit = tmp_stamp.toGMTString( );

domain = document.URL;
url = domain.substring(35);

document.write("<img src='http://hpcgi2.nifty.com/saien_b/analyze.cgi?");
document.write("refer=" + escape(document.referrer));
document.write("&url=" + url);
document.write("&x=" + screen.width);
document.write("&y=" + screen.height);
document.write("&dep=" + screen.colorDepth);
document.write("&last=" + getCookie("LAST"));
document.write("' width='1' height='1'>");

document.cookie = "LAST=" + escape(msec.getTime()) + ";expires=" + exp_limit;