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 (LeadingZeros31192 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31192(secs) { if (secs < 0) { document.getElementById("cntdwns31192").innerHTML = FinishMessages31192; return; } DisplayStrs31192 = DisplayFormats31192.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31192 = DisplayStrs31192.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31192 = DisplayStrs31192.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31192 = DisplayStrs31192.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31192").innerHTML = DisplayStrs31192; if (CountActives31192) //alert(SetTimeOutPeriods31192); setTimeout("CountBacks31192(" + (secs+CountSteppers31192) + ")", SetTimeOutPeriods31192); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31192)=="undefined") BackColors31192 = ""; if (typeof(ForeColors31192)=="undefined") ForeColors31192= "white"; if (typeof(TargetDates31192)=="undefined") TargetDates31192 = "01/17/2025 9:00:00 PM"; if (typeof(DisplayFormats31192)=="undefined") DisplayFormats31192 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31192)=="undefined") CountActives31192 = true; if (typeof(FinishMessages31192)=="undefined") FinishMessages31192 = ""; if (typeof(CountSteppers31192)!="number") CountSteppers31192 = -1; if (typeof(LeadingZeros31192)=="undefined") LeadingZeros31192 = true; CountSteppers31192 = Math.ceil(CountSteppers31192); if (CountSteppers31192 == 0) CountActives31192 = false; var SetTimeOutPeriods31192 = (Math.abs(CountSteppers31192)-1)*1000 + 990; puti(BackColors31192, ForeColors31192); var dthens31192 = new Date(TargetDates31192); var dnows31192 = new Date("02/05/2025 5:39:16 AM"); if(CountSteppers31192>0) ddiffs31192 = new Date(dnows31192-dthens31192); else ddiffs31192 = new Date(dthens31192-dnows31192); gsecss31192 = Math.floor(ddiffs31192.valueOf()/1000); CountBacks31192(gsecss31192);