");
}
DST = 0;
function world_clock() {
var Today = new Date();
var DST_start = new Date();
var DST_end = new Date();
var count = new Date();
var UTC_Today = new Date();
var dammy = new Date();
var year = 0
var hour0 = "";
var minute0 = "";
var second0 = "";
var month = 3;
var date = 1;
UTC_Today.setFullYear(Today.getUTCFullYear());
UTC_Today.setMonth(Today.getUTCMonth());
UTC_Today.setDate(Today.getUTCDate());
UTC_Today.setHours(Today.getUTCHours());
for ( i=0; i<=6; i++ ) {
if ( Today.getFullYear() < 2007 ) { month = 3; date = 1;}
else { month = 2; date = 8; }
count.setMonth(month);
count.setDate(date+i);
if ( count.getDay() == 0 ) { DST_start.setMonth( month );
DST_start.setDate( date+i );
DST_start.setHours(7);
DST_start.setMinutes(0);
DST_start.setSeconds(0);
}
if ( Today.getFullYear() < 2007 ) { month = 9; date = 25; }
else { month = 10; date = 1; }
count.setMonth( month );
count.setDate( date+i );
if ( count.getDay() == 0 ) { DST_end.setMonth( month );
DST_end.setDate( date+i );
DST_end.setHours(7);
DST_end.setMinutes(0);
DST_end.setSeconds(0);
}
}
if ( (UTC_Today >= DST_start) && (UTC_Today <= DST_end) ) { DST = 1; }
else { DST = 0; }
UTC_Today.setHours(Today.getUTCHours()-5+DST);
if ( UTC_Today.getHours() < 10 ) { hour0 = "0"; }
else { hour0 = ""; }
if ( UTC_Today.getMinutes() < 10 ) { minute0 = "0"; }
else { minute0 = ""; }
if ( UTC_Today.getSeconds() < 10 ) { second0 = "0"; }
else { second0 = ""; }
document.form1.edate.value = UTC_Today.getFullYear() + "年" + (UTC_Today.getMonth()+1) + "月" + UTC_Today.getDate() + "日" + "(" + youbi[UTC_Today.getDay()] + ")";
document.form1.est.value = hour0 + UTC_Today.getHours() + ":" + minute0 + UTC_Today.getMinutes() + ":" + second0 + UTC_Today.getSeconds();
UTC_Today.setDate(Today.getUTCDate());
UTC_Today.setHours(Today.getUTCHours()-6+DST);
if ( UTC_Today.getHours() < 10 ) { hour0 = "0"; }
else { hour0 = ""; }
document.form1.cdate.value = UTC_Today.getFullYear() + "年" + (UTC_Today.getMonth()+1) + "月" + UTC_Today.getDate() + "日" + "(" + youbi[UTC_Today.getDay()] + ")";
document.form1.cnt.value = hour0 + UTC_Today.getHours() + ":" + minute0 + UTC_Today.getMinutes() + ":" + second0 + UTC_Today.getSeconds();
UTC_Today.setDate(Today.getUTCDate());
UTC_Today.setHours(Today.getUTCHours()-7+DST);
if ( UTC_Today.getHours() < 10 ) { hour0 = "0"; }
else { hour0 = ""; }
document.form1.mdate.value = UTC_Today.getFullYear() + "年" + (UTC_Today.getMonth()+1) + "月" + UTC_Today.getDate() + "日" + "(" + youbi[UTC_Today.getDay()] + ")";
document.form1.mnt.value = hour0 + UTC_Today.getHours() + ":" + minute0 + UTC_Today.getMinutes() + ":" + second0 + UTC_Today.getSeconds();
UTC_Today.setDate(Today.getUTCDate());
UTC_Today.setHours(Today.getUTCHours()-8+DST);
if ( UTC_Today.getHours() < 10 ) { hour0 = "0"; }
else { hour0 = ""; }
document.form1.wdate.value = UTC_Today.getFullYear() + "年" + (UTC_Today.getMonth()+1) + "月" + UTC_Today.getDate() + "日" + "(" + youbi[UTC_Today.getDay()] + ")";
document.form1.wst.value = hour0 + UTC_Today.getHours() + ":" + minute0 + UTC_Today.getMinutes() + ":" + second0 + UTC_Today.getSeconds();
UTC_Today.setDate(Today.getUTCDate());
UTC_Today.setHours(Today.getUTCHours()+9);
if ( UTC_Today.getHours() < 10 ) { hour0 = "0"; }
else { hour0 = ""; }
document.form1.jdate.value = UTC_Today.getFullYear() + "年" + (UTC_Today.getMonth()+1) + "月" + UTC_Today.getDate() + "日" + "(" + youbi[UTC_Today.getDay()] + ")";
document.form1.jpn.value = hour0 + UTC_Today.getHours() + ":" + minute0 + UTC_Today.getMinutes() + ":" + second0 + UTC_Today.getSeconds();
}
function jump( arg ) {
var url = new Array;
var order = "#";
url[0] = "http://www.whitehouse.gov/";
url[1] = "http://www.congress.org/congressorg/home/";
url[2] = "http://www.senate.gov/";
url[3] = "http://www.house.gov/";
url[4] = "http://www.supremecourtus.gov/";
url[5] = "http://uscis.gov/graphics/index.htm";
url[6] = "http://www.usimmigrationsupport.org/";
url[7] = "http://www.usimmigrationsupport.org/visa_j1.html";
url[8] = "http://www.irs.gov/";
url[9] = "http://www.irs.gov/formspubs/lists/0,,id=97817,00.html";
url[10] = "http://japan.usembassy.gov/tj-main.html";
url[11] = "http://japan.usembassy.gov/j/tvisaj-main.html";
url[12] = "http://japan.usembassy.gov/j/visa/tvisaj-nivapply.html";
url[13] = "http://www.maryland.gov/portal/server.pt?in_hi_userid=1333&space=CommunityPage&parentid=2&cached=false&control=SetCommunity&PageID=0&CommunityID=227&parentname=CommunityPage";
url[14] = "http://www.mva.state.md.us/";
url[15] = "http://www.marylandmva.com/DriverServ/Apply/license.htm";
url[16] = "http://www.mva.state.md.us/Resources/DL-002AMVAGuideBook2.pdf";
url[17] = "http://www.mva.state.md.us/Resources/DL-02BMVAGuideBook2.pdf";
url[18] = "http://www.comp.state.md.us/";
url[19] = "http://individuals.marylandtaxes.com/taxforms/default.asp";
url[20] = "http://www.courts.state.md.us/";
url[21] = "http://www.montgomerycountymd.gov/index.asp";
url[22] = "http://www.mcps.k12.md.us/";
url[23] = "http://www.mcps.k12.md.us/parents/";
url[24] = "http://www.mcps.k12.md.us/info/enroll/";
url[25] = "http://www.mcps.k12.md.us/departments/studentservices/isao/";
url[26] = "http://kaigailink.com/dc/";
url[27] = "http://groups.yahoo.co.jp/group/KAGAKU-GREATER-DC/";
url[28] = "http://www.geocities.jp/center4pain/baltimore/";
url[29] = "http://www.j-netusa.com/dc/";
if ( arg == 0 ) { order = document.bethesda_links.federal.value; }
if ( arg == 1 ) { order = document.bethesda_links.maryland.value; }
if ( arg == 2 ) { order = document.bethesda_links.montgomery.value; }
if ( arg == 3 ) { order = document.bethesda_links.BBS.value; }
if (order == "#") { return; }
show_links = window.open(url[order],"links");
show_links.focus();
}
function dst_comment() {
var Today = new Date();
if ( Today.getFullYear() < 2007 ) { document.write("
Daylight Saving Timeは日本で言われるサマータイムのことです。
4月の第一日曜日午前2時に時計を1時間進め、10月の最終日曜日午前3時に時計を1時間戻します。
2007年からは3月の第二日曜日から11月の第一日曜日までと4週間延長されます。
"); }
else { document.write("
Daylight Saving Timeは日本で言われるサマータイムのことです。
3月の第二日曜日午前2時に時計を1時間進め、11月の第一日曜日午前3時に時計を1時間戻します。
"); }
}
function daylight( shift ) {
var s = 0;
if ( shift == 1 ) { s = -1; }
else if ( shift == 2 ) { s = 1; }
click_count = click_count + s;
var Today = new Date();
var DST_start = new Date();
var DST_end = new Date();
var count = new Date();
var year = this_year.getFullYear() + click_count;
var month = 3;
var date = 1;
count.setFullYear( year );
for ( i=0; i<=6; i++ ) {
if ( year < 2007 ) { month = 3; date = 1;}
else { month = 2; date = 8; }
count.setMonth(month);
count.setDate(date+i);
if ( count.getDay() == 0 ) { DST_start.setMonth( month );
DST_start.setDate( date+i );
}
if ( year < 2007 ) { month = 9; date = 25; }
else { month = 10; date = 1; }
count.setMonth( month );
count.setDate( date+i );
if ( count.getDay() == 0 ) { DST_end.setMonth( month );
DST_end.setDate( date+i );
}
}
document.form2.year.value = year;
document.form2.start.value = (DST_start.getMonth()+1) + "月" + DST_start.getDate() + "日";
document.form2.end.value = (DST_end.getMonth()+1) + "月" + DST_end.getDate() + "日";
}
function holidays( shift ) {
var s = 0;
var today = new Date();
var year = today.getFullYear();
var d = 0;
if ( shift == 1 ) { s = -1; }
else if ( shift == 2 ) { s = 1; }
else { s = 0; }
click_count1 = click_count1 + s;
year = year + click_count1;
document.form3.year1.value = year + "年";
document.form3.year2.value = (year+1) + "年";
document.form3.year3.value = (year+2) + "年";
for ( i=0; i<=2; i++ ) {
today.setFullYear( year + i );
today.setMonth(0);
today.setDate(1);
d = today.getDay();
if ( i == 0 ) { document.form3.newyear1.value = "1月1日" + "(" + youbi[d] + ")"; }
if ( i == 1 ) { document.form3.newyear2.value = "1月1日" + "(" + youbi[d] + ")"; }
if ( i == 2 ) { document.form3.newyear3.value = "1月1日" + "(" + youbi[d] + ")"; }
for ( i1=15; i1<=21; i1++ ) {
today.setDate(i1);
if ( today.getDay() == 1 ) { d = i1;
break;
}
}
if ( i == 0 ) { document.form3.mlkd1.value = "1月" + d + "日" + "(月)"; }
if ( i == 1 ) { document.form3.mlkd2.value = "1月" + d + "日" + "(月)"; }
if ( i == 2 ) { document.form3.mlkd3.value = "1月" + d + "日" + "(月)"; }
today.setMonth(1);
for ( i1=15; i1<=21; i1++ ) {
today.setDate(i1);
if ( today.getDay() == 1 ) { d = i1;
break;
}
}
if ( i == 0 ) { document.form3.prsdt1.value = "2月" + d + "日" + "(月)"; }
if ( i == 1 ) { document.form3.prsdt2.value = "2月" + d + "日" + "(月)"; }
if ( i == 2 ) { document.form3.prsdt3.value = "2月" + d + "日" + "(月)"; }
today.setMonth(4);
for ( i1=25; i1<=31; i1++ ) {
today.setDate(i1);
if ( today.getDay() == 1 ) { d = i1;
break;
}
}
if ( i == 0 ) { document.form3.memorial1.value = "5月" + d + "日" + "(月)"; }
if ( i == 1 ) { document.form3.memorial2.value = "5月" + d + "日" + "(月)"; }
if ( i == 2 ) { document.form3.memorial3.value = "5月" + d + "日" + "(月)"; }
today.setMonth(6);
today.setDate(4);
d = today.getDay();
if ( i == 0 ) { document.form3.independ1.value = "7月4日" + "(" + youbi[d] + ")"; }
if ( i == 1 ) { document.form3.independ2.value = "7月4日" + "(" + youbi[d] + ")"; }
if ( i == 2 ) { document.form3.independ3.value = "7月4日" + "(" + youbi[d] + ")"; }
today.setMonth(8);
for ( i1=1; i1<=7; i1++ ) {
today.setDate(i1);
if ( today.getDay() == 1 ) { d = i1;
break;
}
}
if ( i == 0 ) { document.form3.labor1.value = "9月" + d + "日" + "(月)"; }
if ( i == 1 ) { document.form3.labor2.value = "9月" + d + "日" + "(月)"; }
if ( i == 2 ) { document.form3.labor3.value = "9月" + d + "日" + "(月)"; }
today.setMonth(9);
for ( i1=8; i1<=14; i1++ ) {
today.setDate(i1);
if ( today.getDay() == 1 ) { d = i1;
break;
}
}
if ( i == 0 ) { document.form3.columbus1.value = "10月" + d + "日" + "(月)"; }
if ( i == 1 ) { document.form3.columbus2.value = "10月" + d + "日" + "(月)"; }
if ( i == 2 ) { document.form3.columbus3.value = "10月" + d + "日" + "(月)"; }
today.setMonth(10);
today.setDate(11);
d = today.getDay();
if ( i == 0 ) { document.form3.veterans1.value = "11月11日" + "(" + youbi[d] + ")"; }
if ( i == 1 ) { document.form3.veterans2.value = "11月11日" + "(" + youbi[d] + ")"; }
if ( i == 2 ) { document.form3.veterans3.value = "11月11日" + "(" + youbi[d] + ")"; }
today.setMonth(10);
for ( i1=22; i1<=28; i1++ ) {
today.setDate(i1);
if ( today.getDay() == 4 ) { d = i1;
break;
}
}
if ( i == 0 ) { document.form3.thanks1.value = "11月" + d + "日" + "(木)"; }
if ( i == 1 ) { document.form3.thanks2.value = "11月" + d + "日" + "(木)"; }
if ( i == 2 ) { document.form3.thanks3.value = "11月" + d + "日" + "(木)"; }
today.setMonth(11);
today.setDate(25);
d = today.getDay();
if ( i == 0 ) { document.form3.christmas1.value = "12月25日" + "(" + youbi[d] + ")"; }
if ( i == 1 ) { document.form3.christmas2.value = "12月25日" + "(" + youbi[d] + ")"; }
if ( i == 2 ) { document.form3.christmas3.value = "12月25日" + "(" + youbi[d] + ")"; }
}
}
// -->
|