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 (LeadingZeros31309 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31309(secs) { if (secs < 0) { document.getElementById("cntdwns31309").innerHTML = FinishMessages31309; return; } DisplayStrs31309 = DisplayFormats31309.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31309 = DisplayStrs31309.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31309 = DisplayStrs31309.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31309 = DisplayStrs31309.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31309").innerHTML = DisplayStrs31309; if (CountActives31309) //alert(SetTimeOutPeriods31309); setTimeout("CountBacks31309(" + (secs+CountSteppers31309) + ")", SetTimeOutPeriods31309); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31309)=="undefined") BackColors31309 = ""; if (typeof(ForeColors31309)=="undefined") ForeColors31309= "white"; if (typeof(TargetDates31309)=="undefined") TargetDates31309 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31309)=="undefined") DisplayFormats31309 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31309)=="undefined") CountActives31309 = true; if (typeof(FinishMessages31309)=="undefined") FinishMessages31309 = ""; if (typeof(CountSteppers31309)!="number") CountSteppers31309 = -1; if (typeof(LeadingZeros31309)=="undefined") LeadingZeros31309 = true; CountSteppers31309 = Math.ceil(CountSteppers31309); if (CountSteppers31309 == 0) CountActives31309 = false; var SetTimeOutPeriods31309 = (Math.abs(CountSteppers31309)-1)*1000 + 990; puti(BackColors31309, ForeColors31309); var dthens31309 = new Date(TargetDates31309); var dnows31309 = new Date("01/30/2025 6:20:08 PM"); if(CountSteppers31309>0) ddiffs31309 = new Date(dnows31309-dthens31309); else ddiffs31309 = new Date(dthens31309-dnows31309); gsecss31309 = Math.floor(ddiffs31309.valueOf()/1000); CountBacks31309(gsecss31309);