function NaviNewsByEmail(){
	var CookieNNI_ID;
	var CookieNNI_ID4;

	CookieNNI_ID = getCookie("NNI_ID");
	CookieNNI_ID4 = getCookie("NNI_ID4");
//	document.write (document.cookie);
//	document.write ('CookieNNI_ID=' + CookieNNI_ID);
//	document.write ('CookieNNI_ID4=' + CookieNNI_ID4);
	if (CookieNNI_ID != "") {
		document.write ('<a href="https://reg.e.nikkei.com/e/pn_mainte_top_ac.pl">');
	} else if (CookieNNI_ID4 != "") {
		document.write ('<a href="https://reg.e.nikkei.com/e/pn_mainte_top.pl">');
	} else {
		document.write ('<a href="/e/fr/pn/front2.aspx">');
	}
}

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("");
}

