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 (LeadingZeros34232 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34232(secs) { if (secs < 0) { document.getElementById("cntdwns34232").innerHTML = FinishMessages34232; return; } DisplayStrs34232 = DisplayFormats34232.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34232 = DisplayStrs34232.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34232 = DisplayStrs34232.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34232 = DisplayStrs34232.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34232").innerHTML = DisplayStrs34232; if (CountActives34232) //alert(SetTimeOutPeriods34232); setTimeout("CountBacks34232(" + (secs+CountSteppers34232) + ")", SetTimeOutPeriods34232); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34232)=="undefined") BackColors34232 = ""; if (typeof(ForeColors34232)=="undefined") ForeColors34232= "white"; if (typeof(TargetDates34232)=="undefined") TargetDates34232 = "11/04/2026 9:00:00 PM"; if (typeof(DisplayFormats34232)=="undefined") DisplayFormats34232 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34232)=="undefined") CountActives34232 = true; if (typeof(FinishMessages34232)=="undefined") FinishMessages34232 = ""; if (typeof(CountSteppers34232)!="number") CountSteppers34232 = -1; if (typeof(LeadingZeros34232)=="undefined") LeadingZeros34232 = true; CountSteppers34232 = Math.ceil(CountSteppers34232); if (CountSteppers34232 == 0) CountActives34232 = false; var SetTimeOutPeriods34232 = (Math.abs(CountSteppers34232)-1)*1000 + 990; puti(BackColors34232, ForeColors34232); var dthens34232 = new Date(TargetDates34232); var dnows34232 = new Date("11/01/2026 3:29:10 PM"); if(CountSteppers34232>0) ddiffs34232 = new Date(dnows34232-dthens34232); else ddiffs34232 = new Date(dthens34232-dnows34232); gsecss34232 = Math.floor(ddiffs34232.valueOf()/1000); CountBacks34232(gsecss34232);