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 (LeadingZeros34239 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34239(secs) { if (secs < 0) { document.getElementById("cntdwns34239").innerHTML = FinishMessages34239; return; } DisplayStrs34239 = DisplayFormats34239.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34239 = DisplayStrs34239.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34239 = DisplayStrs34239.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34239 = DisplayStrs34239.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34239").innerHTML = DisplayStrs34239; if (CountActives34239) //alert(SetTimeOutPeriods34239); setTimeout("CountBacks34239(" + (secs+CountSteppers34239) + ")", SetTimeOutPeriods34239); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34239)=="undefined") BackColors34239 = ""; if (typeof(ForeColors34239)=="undefined") ForeColors34239= "white"; if (typeof(TargetDates34239)=="undefined") TargetDates34239 = "10/04/2026 9:00:00 AM"; if (typeof(DisplayFormats34239)=="undefined") DisplayFormats34239 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34239)=="undefined") CountActives34239 = true; if (typeof(FinishMessages34239)=="undefined") FinishMessages34239 = ""; if (typeof(CountSteppers34239)!="number") CountSteppers34239 = -1; if (typeof(LeadingZeros34239)=="undefined") LeadingZeros34239 = true; CountSteppers34239 = Math.ceil(CountSteppers34239); if (CountSteppers34239 == 0) CountActives34239 = false; var SetTimeOutPeriods34239 = (Math.abs(CountSteppers34239)-1)*1000 + 990; puti(BackColors34239, ForeColors34239); var dthens34239 = new Date(TargetDates34239); var dnows34239 = new Date("10/02/2026 2:44:50 PM"); if(CountSteppers34239>0) ddiffs34239 = new Date(dnows34239-dthens34239); else ddiffs34239 = new Date(dthens34239-dnows34239); gsecss34239 = Math.floor(ddiffs34239.valueOf()/1000); CountBacks34239(gsecss34239);