﻿//------------------
// japan time		
//------------------
function JapanTime(ye,mo,da,ho,mi,se,co){


	wTime = new Date(ye,mo - 1,da,ho,mi,se);
	wTime.setTime(wTime.getTime() + (1000 * co));
	
	wtYear		= wTime.getFullYear();
	wtMonth		= wTime.getMonth() + 1;
	wtDate		= wTime.getDate();
	wtHour		= wTime.getHours();
	wtMinutes	= wTime.getMinutes();
	wtSecond	= wTime.getSeconds();
	
	if(wtMonth<10) wtMonth = "0" + wtMonth;
	if(wtDate<10) wtDate = "0" + wtDate;
	if(wtMinutes<10) wtMinutes = "0" + wtMinutes;
	if(wtSecond<10) wtSecond = "0" + wtSecond;
	if(wtHour>23) wtHour = wtHour - 24;
	if(wtHour<10) wtHour = "0" + wtHour;
	
	document.japanclock.clock.value = wtYear+"-"+wtMonth+"-"+wtDate+" "+wtHour+"："+wtMinutes+"："+wtSecond;
	
	co++;
	
	setTimeout('JapanTime(' + ye + ',' + mo + ',' + da + ',' + ho + ',' + mi + ',' + se + ',' + co + ')',1000);

}

function jump(address){
	location.href = address;
}

function login_sosin(){
	document.form2.action = "/login.html";
	document.form2.submit();
}

var x;
function deteil(id){
	if(x != null){
		if(x.closed==false){
			x.close();
		}
	}
	x = window.open('deteil.html?id='+id, 'd',"scrollbars=yes,resizable=yes,width=520,height=450");
}
