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 (LeadingZeros31505 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31505(secs) { if (secs < 0) { document.getElementById("cntdwns31505").innerHTML = FinishMessages31505; return; } DisplayStrs31505 = DisplayFormats31505.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31505 = DisplayStrs31505.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31505 = DisplayStrs31505.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31505 = DisplayStrs31505.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31505").innerHTML = DisplayStrs31505; if (CountActives31505) //alert(SetTimeOutPeriods31505); setTimeout("CountBacks31505(" + (secs+CountSteppers31505) + ")", SetTimeOutPeriods31505); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31505)=="undefined") BackColors31505 = ""; if (typeof(ForeColors31505)=="undefined") ForeColors31505= "white"; if (typeof(TargetDates31505)=="undefined") TargetDates31505 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31505)=="undefined") DisplayFormats31505 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31505)=="undefined") CountActives31505 = true; if (typeof(FinishMessages31505)=="undefined") FinishMessages31505 = ""; if (typeof(CountSteppers31505)!="number") CountSteppers31505 = -1; if (typeof(LeadingZeros31505)=="undefined") LeadingZeros31505 = true; CountSteppers31505 = Math.ceil(CountSteppers31505); if (CountSteppers31505 == 0) CountActives31505 = false; var SetTimeOutPeriods31505 = (Math.abs(CountSteppers31505)-1)*1000 + 990; puti(BackColors31505, ForeColors31505); var dthens31505 = new Date(TargetDates31505); var dnows31505 = new Date("02/22/2025 9:36:25 PM"); if(CountSteppers31505>0) ddiffs31505 = new Date(dnows31505-dthens31505); else ddiffs31505 = new Date(dthens31505-dnows31505); gsecss31505 = Math.floor(ddiffs31505.valueOf()/1000); CountBacks31505(gsecss31505);