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 (LeadingZeros31663 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31663(secs) { if (secs < 0) { document.getElementById("cntdwns31663").innerHTML = FinishMessages31663; return; } DisplayStrs31663 = DisplayFormats31663.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31663 = DisplayStrs31663.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31663 = DisplayStrs31663.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31663 = DisplayStrs31663.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31663").innerHTML = DisplayStrs31663; if (CountActives31663) //alert(SetTimeOutPeriods31663); setTimeout("CountBacks31663(" + (secs+CountSteppers31663) + ")", SetTimeOutPeriods31663); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31663)=="undefined") BackColors31663 = ""; if (typeof(ForeColors31663)=="undefined") ForeColors31663= "white"; if (typeof(TargetDates31663)=="undefined") TargetDates31663 = "01/19/2025 10:00:00 PM"; if (typeof(DisplayFormats31663)=="undefined") DisplayFormats31663 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31663)=="undefined") CountActives31663 = true; if (typeof(FinishMessages31663)=="undefined") FinishMessages31663 = ""; if (typeof(CountSteppers31663)!="number") CountSteppers31663 = -1; if (typeof(LeadingZeros31663)=="undefined") LeadingZeros31663 = true; CountSteppers31663 = Math.ceil(CountSteppers31663); if (CountSteppers31663 == 0) CountActives31663 = false; var SetTimeOutPeriods31663 = (Math.abs(CountSteppers31663)-1)*1000 + 990; puti(BackColors31663, ForeColors31663); var dthens31663 = new Date(TargetDates31663); var dnows31663 = new Date("02/05/2025 8:44:48 AM"); if(CountSteppers31663>0) ddiffs31663 = new Date(dnows31663-dthens31663); else ddiffs31663 = new Date(dthens31663-dnows31663); gsecss31663 = Math.floor(ddiffs31663.valueOf()/1000); CountBacks31663(gsecss31663);