main.html backUp
checkFrame = function(){};
eitherOwnerOrGuest = function(){};

fullDec = e => e.replace(/\x26quot;/g, "\"").
replace(/\x26amp;/g, "\x26").replace(/\x26lt;/g, "<").
replace(/\x26gt;/g, ">").replace(/\x26#39;/g, "'");
evalDec = e => fullDec(e).replace(/\x3cbr\s?\/?>/gi, "\n");

document.documentElement.id = "extend";
document.body.classList.add("us1","f1","n0","notbar");

{
const ico = document.createElement("link");
ico.rel = "shortcut icon";
ico.href = "http://nancyan.main.jp/image/icon/favicon" +
(document.referrer.match(/new\-diary\/main.html/) ? 1 : 2) + ".ico";
ico.type = "image/vnd.microsoft.icon";
document.head.append(ico);
}

xhr = (d1,d2,d3) => {
xmlPath = d1;
const a = new XMLHttpRequest();
a.onreadystatechange = () => {
if(a.readyState == 4){
if(a.status == 200){
d3(a.responseText.replace(/\r?\n/g, "\t"),
Math.floor((new Date(a.getResponseHeader("last-modified"))).getTime() / 1000)
);
} else d3("");
}
};
const mode = d1.match(/^[a-z0-9_]+$/) ? "post" : "get";
a.open(mode, mode == "get" ? d1.replace(/#.*$/, "") : "/cgi-bin/" + d1 + ".cgi", true);
a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
a.send(d2);
};

key = (e, key) => {
let n;
const len = key.length;
if((n = e.indexOf("[" + key + "]")) == -1) return "";
e = e.substring(n + len + 2);
if((n = e.indexOf("[/" + key + "]")) == -1) return "";
return e.substring(0, n);
};

xhr("/cgi-bin/diary.cgi?oid=new-diary;n=20;c=253", null, e => {
const keys = vol => evalDec(key(e, vol + "-DATA"));
const job = no => {
try { eval(keys("EXEC-" + no)); }
catch (err) { alert("エラーが発生しました: " + no + "\n\n" + err); }
};
job("A"); job("B"); job("C"); job("D"); job("E");
echo(doc.body, docDefaultRep(keys("DOC-A")));
echo("cssDisp", cssDefaultRep(keys("CSS-A") + keys("CSS-B") + keys("CSS-C")+ keys("CSS-D")));
job("BOOT");
});