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 (LeadingZeros31795 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31795(secs) { if (secs < 0) { document.getElementById("cntdwns31795").innerHTML = FinishMessages31795; return; } DisplayStrs31795 = DisplayFormats31795.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31795 = DisplayStrs31795.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31795 = DisplayStrs31795.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31795 = DisplayStrs31795.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31795").innerHTML = DisplayStrs31795; if (CountActives31795) //alert(SetTimeOutPeriods31795); setTimeout("CountBacks31795(" + (secs+CountSteppers31795) + ")", SetTimeOutPeriods31795); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31795)=="undefined") BackColors31795 = ""; if (typeof(ForeColors31795)=="undefined") ForeColors31795= "white"; if (typeof(TargetDates31795)=="undefined") TargetDates31795 = "02/03/2025 10:00:00 PM"; if (typeof(DisplayFormats31795)=="undefined") DisplayFormats31795 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31795)=="undefined") CountActives31795 = true; if (typeof(FinishMessages31795)=="undefined") FinishMessages31795 = ""; if (typeof(CountSteppers31795)!="number") CountSteppers31795 = -1; if (typeof(LeadingZeros31795)=="undefined") LeadingZeros31795 = true; CountSteppers31795 = Math.ceil(CountSteppers31795); if (CountSteppers31795 == 0) CountActives31795 = false; var SetTimeOutPeriods31795 = (Math.abs(CountSteppers31795)-1)*1000 + 990; puti(BackColors31795, ForeColors31795); var dthens31795 = new Date(TargetDates31795); var dnows31795 = new Date("02/01/2025 5:07:48 AM"); if(CountSteppers31795>0) ddiffs31795 = new Date(dnows31795-dthens31795); else ddiffs31795 = new Date(dthens31795-dnows31795); gsecss31795 = Math.floor(ddiffs31795.valueOf()/1000); CountBacks31795(gsecss31795);