function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros31468 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31468(secs) { if (secs < 0) { document.getElementById("cntdwns31468").innerHTML = FinishMessages31468; return; } DisplayStrs31468 = DisplayFormats31468.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31468 = DisplayStrs31468.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31468 = DisplayStrs31468.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31468 = DisplayStrs31468.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31468").innerHTML = DisplayStrs31468; if (CountActives31468) //alert(SetTimeOutPeriods31468); setTimeout("CountBacks31468(" + (secs+CountSteppers31468) + ")", SetTimeOutPeriods31468); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31468)=="undefined") BackColors31468 = ""; if (typeof(ForeColors31468)=="undefined") ForeColors31468= "white"; if (typeof(TargetDates31468)=="undefined") TargetDates31468 = "02/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31468)=="undefined") DisplayFormats31468 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31468)=="undefined") CountActives31468 = true; if (typeof(FinishMessages31468)=="undefined") FinishMessages31468 = ""; if (typeof(CountSteppers31468)!="number") CountSteppers31468 = -1; if (typeof(LeadingZeros31468)=="undefined") LeadingZeros31468 = true; CountSteppers31468 = Math.ceil(CountSteppers31468); if (CountSteppers31468 == 0) CountActives31468 = false; var SetTimeOutPeriods31468 = (Math.abs(CountSteppers31468)-1)*1000 + 990; puti(BackColors31468, ForeColors31468); var dthens31468 = new Date(TargetDates31468); var dnows31468 = new Date("02/05/2025 3:08:22 PM"); if(CountSteppers31468>0) ddiffs31468 = new Date(dnows31468-dthens31468); else ddiffs31468 = new Date(dthens31468-dnows31468); gsecss31468 = Math.floor(ddiffs31468.valueOf()/1000); CountBacks31468(gsecss31468);