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 (LeadingZeros31534 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31534(secs) { if (secs < 0) { document.getElementById("cntdwns31534").innerHTML = FinishMessages31534; return; } DisplayStrs31534 = DisplayFormats31534.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31534 = DisplayStrs31534.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31534 = DisplayStrs31534.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31534 = DisplayStrs31534.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31534").innerHTML = DisplayStrs31534; if (CountActives31534) //alert(SetTimeOutPeriods31534); setTimeout("CountBacks31534(" + (secs+CountSteppers31534) + ")", SetTimeOutPeriods31534); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31534)=="undefined") BackColors31534 = ""; if (typeof(ForeColors31534)=="undefined") ForeColors31534= "white"; if (typeof(TargetDates31534)=="undefined") TargetDates31534 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31534)=="undefined") DisplayFormats31534 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31534)=="undefined") CountActives31534 = true; if (typeof(FinishMessages31534)=="undefined") FinishMessages31534 = ""; if (typeof(CountSteppers31534)!="number") CountSteppers31534 = -1; if (typeof(LeadingZeros31534)=="undefined") LeadingZeros31534 = true; CountSteppers31534 = Math.ceil(CountSteppers31534); if (CountSteppers31534 == 0) CountActives31534 = false; var SetTimeOutPeriods31534 = (Math.abs(CountSteppers31534)-1)*1000 + 990; puti(BackColors31534, ForeColors31534); var dthens31534 = new Date(TargetDates31534); var dnows31534 = new Date("02/22/2025 9:34:54 PM"); if(CountSteppers31534>0) ddiffs31534 = new Date(dnows31534-dthens31534); else ddiffs31534 = new Date(dthens31534-dnows31534); gsecss31534 = Math.floor(ddiffs31534.valueOf()/1000); CountBacks31534(gsecss31534);