function getToday() {
    dd = new Date();
    yy = dd.getYear();
    mm = dd.getMonth() + 1;
    dd = dd.getDate();
    if (yy < 2000) { yy += 1900; }
    if (mm < 10) { mm = "0" + mm; }
    if (dd < 10) { dd = "0" + dd; }
    today = yy + ""+ mm +""+ dd;
}

function showApplet(day) {
    baseurl = 'http://igo-kids.ddo.jp';
     document.write('<APPLET codebase="' + baseurl + '/applet/" code="pocketgoban.InteractiveApplet.class" archive="InteractiveApplet_new.jar" name="pocketgoban" width="385" height="370" hspace="0" vspace="0" align="top">');
    document.write('<param name = file value =" ' + baseurl + '/sgf4/' + day + '.sgf"');
    document.write('<param name=number value=false>');
    document.write('<param name=reload_interval value=0>');
    document.write('</APPLET>');
}


getToday();
showApplet(today);

