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 (LeadingZeros31713 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31713(secs) { if (secs < 0) { document.getElementById("cntdwns31713").innerHTML = FinishMessages31713; return; } DisplayStrs31713 = DisplayFormats31713.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31713 = DisplayStrs31713.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31713 = DisplayStrs31713.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31713 = DisplayStrs31713.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31713").innerHTML = DisplayStrs31713; if (CountActives31713) //alert(SetTimeOutPeriods31713); setTimeout("CountBacks31713(" + (secs+CountSteppers31713) + ")", SetTimeOutPeriods31713); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31713)=="undefined") BackColors31713 = ""; if (typeof(ForeColors31713)=="undefined") ForeColors31713= "white"; if (typeof(TargetDates31713)=="undefined") TargetDates31713 = "01/26/2025 10:00:00 PM"; if (typeof(DisplayFormats31713)=="undefined") DisplayFormats31713 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31713)=="undefined") CountActives31713 = true; if (typeof(FinishMessages31713)=="undefined") FinishMessages31713 = ""; if (typeof(CountSteppers31713)!="number") CountSteppers31713 = -1; if (typeof(LeadingZeros31713)=="undefined") LeadingZeros31713 = true; CountSteppers31713 = Math.ceil(CountSteppers31713); if (CountSteppers31713 == 0) CountActives31713 = false; var SetTimeOutPeriods31713 = (Math.abs(CountSteppers31713)-1)*1000 + 990; puti(BackColors31713, ForeColors31713); var dthens31713 = new Date(TargetDates31713); var dnows31713 = new Date("02/05/2025 3:06:20 PM"); if(CountSteppers31713>0) ddiffs31713 = new Date(dnows31713-dthens31713); else ddiffs31713 = new Date(dthens31713-dnows31713); gsecss31713 = Math.floor(ddiffs31713.valueOf()/1000); CountBacks31713(gsecss31713);