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 (LeadingZeros31605 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31605(secs) { if (secs < 0) { document.getElementById("cntdwns31605").innerHTML = FinishMessages31605; return; } DisplayStrs31605 = DisplayFormats31605.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31605 = DisplayStrs31605.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31605 = DisplayStrs31605.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31605 = DisplayStrs31605.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31605").innerHTML = DisplayStrs31605; if (CountActives31605) //alert(SetTimeOutPeriods31605); setTimeout("CountBacks31605(" + (secs+CountSteppers31605) + ")", SetTimeOutPeriods31605); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31605)=="undefined") BackColors31605 = ""; if (typeof(ForeColors31605)=="undefined") ForeColors31605= "white"; if (typeof(TargetDates31605)=="undefined") TargetDates31605 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31605)=="undefined") DisplayFormats31605 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31605)=="undefined") CountActives31605 = true; if (typeof(FinishMessages31605)=="undefined") FinishMessages31605 = ""; if (typeof(CountSteppers31605)!="number") CountSteppers31605 = -1; if (typeof(LeadingZeros31605)=="undefined") LeadingZeros31605 = true; CountSteppers31605 = Math.ceil(CountSteppers31605); if (CountSteppers31605 == 0) CountActives31605 = false; var SetTimeOutPeriods31605 = (Math.abs(CountSteppers31605)-1)*1000 + 990; puti(BackColors31605, ForeColors31605); var dthens31605 = new Date(TargetDates31605); var dnows31605 = new Date("02/05/2025 6:57:18 AM"); if(CountSteppers31605>0) ddiffs31605 = new Date(dnows31605-dthens31605); else ddiffs31605 = new Date(dthens31605-dnows31605); gsecss31605 = Math.floor(ddiffs31605.valueOf()/1000); CountBacks31605(gsecss31605);