function JSTime(bbr_y,bbr_m,bbr_d,bbr_h,bbr_n,bbr_s){
var xmlHttp = false; 
//獲取服務器時間 
try { 
   xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); 
} catch (e) { 
   try { 
     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
   } catch (e2) { 
     xmlHttp = false; 
   } 
}
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') { 
   xmlHttp = new XMLHttpRequest(); 
} 
xmlHttp.open("GET", "null.txt", false); 
xmlHttp.setRequestHeader("Range", "bytes=-1"); 
xmlHttp.send(null); 
severtime=new Date(xmlHttp.getResponseHeader("Date")); 
  
//獲取服務器日期 
var year=severtime.getFullYear(); 
var month=severtime.getMonth()+1; 
var date=severtime.getDate(); 
//獲取服務器時間 
var hour=severtime.getHours(); 
var minu=severtime.getMinutes(); 
var seco=severtime.getSeconds(); 
var EndTime= new Date(bbr_y,bbr_m,bbr_d,bbr_h,bbr_n,bbr_s); //截止時間:2008年8月8日20時0分0秒
var serverTime = new Date(year,month,date,hour,minu,seco);//服務器端時間
var remainTime =EndTime.getTime() - serverTime.getTime();
if(remainTime>0){
	var remainDay,remainHour,remainMinute,remainSecond;
	remainDay = Math.floor(remainTime/1000/3600/24);
	remainTime = remainTime - (remainDay*1000*3600*24);
	remainHour = Math.floor(remainTime/1000/3600);
	remainTime = remainTime - (remainHour*1000*3600);
	remainMinute = Math.floor(remainTime/1000/60);
	remainTime = remainTime - (remainMinute*1000*60);
	remainSecond = Math.floor(remainTime/1000);
	remainTime = remainDay+"天"+remainHour+"小時"+remainMinute+"分"+remainSecond+"秒";
	document.getElementById('theauctionresttime').innerHTML =remainTime;
}else {
	document.getElementById('theauctionresttime').innerHTML ="已結束！";
}
}