</script><input name="hiddenField" type="hidden" id="hiddenField" value="$(session-time-left)" /></b></DIV>
<DIV style="HEIGHT: 60px; width:297px"><b>剩余时间:<script language="JavaScript">
function axiang(){
var time = document.getElementById("hiddenField").value;
var d,h,m,s;
if ((time.indexOf("d")<0)&&(time.indexOf("h")<0)){
var date = time.split(/[ms]/,2);
var dateLen=date.length;
var d=0;
var h=0;
m=dateLen==2?date[0]:"";
s=dateLen>0?date[dateLen-1]:"";
}
else if ((time.indexOf("d")<0)&&(time.indexOf("m")<0)){
var date = time.split(/[hs]/,2);
var dateLen=date.length;
var d=0;
var m=0;
h=dateLen==2?date[0]:"";
s=dateLen>0?date[dateLen-1]:"";
}
else if ((time.indexOf("h")<0)&&(time.indexOf("m")<0)){
var date = time.split(/[ds]/,2);
var dateLen=date.length;
var h=0;
var m=0;
d=dateLen==2?date[0]:"";
s=dateLen>0?date[dateLen-1]:"";
}
else if (time.indexOf("s")<0){
var date = time.split(/[dhm]/,3);
var dateLen=date.length;
var s=0;
d=dateLen==3?date[0]:"";
h=dateLen>1?date[dateLen-2]:"";
m=dateLen>0?date[dateLen-1]:"";
}
else if (time.indexOf("d")<0){
var date = time.split(/[hms]/,3);
var dateLen=date.length;
var d=0;
h=dateLen==3?date[0]:"";
m=dateLen>1?date[dateLen-2]:"";
s=dateLen>0?date[dateLen-1]:"";
}
else if (time.indexOf("h")<0){
var date = time.split(/[dms]/,3);
var dateLen=date.length;
var h=0;
d=dateLen==3?date[0]:"";
m=dateLen>1?date[dateLen-2]:"";
s=dateLen>0?date[dateLen-1]:"";
}
else if (time.indexOf("m")<0){
var date = time.split(/[dhs]/,3);
var dateLen=date.length;
var m=0;
d=dateLen==3?date[0]:"";
h=dateLen>1?date[dateLen-2]:"";
s=dateLen>0?date[dateLen-1]:"";
}
else {
var date = time.split(/[dhms]/,4);
var dateLen=date.length;
d=dateLen==4?date[0]:"";
h=dateLen>2?date[dateLen-3]:"";
m=dateLen>1?date[dateLen-2]:"";
s=dateLen>0?date[dateLen-1]:"";
}
var rosd = eval(d) + 0;
var ROSh = eval(h) + 0;
var ROSm = eval(m) + 0;
var ROSs = eval(s) + 0;
var timearrN = ROSd+"天"+ROSh+"时"+ROSm+"分"+ROSs+"秒";
var timearr = timearrN.replace(/NaN/g,"0");
Today = new Date();//定义当天日期对象
var NowYear = Today.getFullYear();//获取年份
var NowMonth = Today.getMonth();//获取月份
var NowDate = Today.getDate();//获取日期值
var NowHour = Today.getHours();//获取时
var NowMinute = Today.getMinutes();//获取分
var NowSecond = Today.getSeconds();//获取秒
//var datenow = NowYear+"年"+NowMonth+"月"+NowDate+"日"+NowHour+"时"+NowMinute+"分"+NowSecond+"秒";
var nextDay = new Date(NowYear,NowMonth,NowDate,NowHour,NowMinute,NowSecond+(d*24*3600+h*3600+m*60+eval(s)));
var EndYear = nextDay.getFullYear();//获取年份
var EndMonth = nextDay.getMonth()+1;//获取月份
var EndDay = nextDay.getDate();//获取日期值
var EndHour = nextDay.getHours();//获取时
var EndMinute = nextDay.getMinutes();//获取分
var EndSecond = nextDay.getSeconds();//获取秒
var dateend = EndYear+"年"+EndMonth+"月"+EndDay+"号"+EndHour+"时"+EndMinute+"分"+EndSecond+"秒";