
var ref;
var tm;
var gcode;


function enter(code) {
    gcode = code;
    tm = setTimeout('doEnter()', 1000);
	doLogin();
}
function today(){
    tm = setTimeout('doToday()', 1000);
	doLogin();
}


function doLogin(){
    var url = 'https://info.edinet.go.jp/login.do?loginType=1&b_type=';
    if (navigator.appName.indexOf("Microsoft Internet Explorer") == -1 &&
        navigator.appVersion.indexOf("MSIE 5") == -1)
    {
        url += "nn";
    } else {
        url += "ie";
    }
    var style = "top=0,left=0,width=100,height=100,resizable=no,scrollbars=no";
    ref = window.open(url, "_blank", style);
}
function doEnter()
{
    clearTimeout(tm);
    document.forms.codeCorpList.code.value = gcode;
    document.forms.codeCorpList.submit();
    ref.close();
}
function doToday(){
    clearTimeout(tm);
	location.href="https://info.edinet.go.jp/docsearch/preToday.do";
	ref.close();
}

function doHoge(){
	alert("aaa" 
+ "bbbc\"cc");
}


document.write(
"<form  name=\"codeCorpList\" method=\"post\" action=\"https://info.edinet.go.jp/corpsearch/submitReportList.do\""
+"    <input type=\"hidden\" name=\"topCode\" value=\"T00\" >"
+"    <input type=\"hidden\" name=\"pageIndex\" value=\"1\" >"
+"    <input type=\"hidden\" name=\"code\" value=\"\" >"
/*+"    <input type=\"text\" name=\"code\" value=\"\" >"*/
/*+"	<input type=\"button\" value=\"ŒŸõ\" onclick=\"enter(code.value)\">"*/
+"</form>"
);


