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 (LeadingZeros34237 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34237(secs) { if (secs < 0) { document.getElementById("cntdwns34237").innerHTML = FinishMessages34237; return; } DisplayStrs34237 = DisplayFormats34237.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34237 = DisplayStrs34237.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34237 = DisplayStrs34237.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34237 = DisplayStrs34237.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34237").innerHTML = DisplayStrs34237; if (CountActives34237) //alert(SetTimeOutPeriods34237); setTimeout("CountBacks34237(" + (secs+CountSteppers34237) + ")", SetTimeOutPeriods34237); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34237)=="undefined") BackColors34237 = ""; if (typeof(ForeColors34237)=="undefined") ForeColors34237= "white"; if (typeof(TargetDates34237)=="undefined") TargetDates34237 = "10/03/2026 11:00:00 PM"; if (typeof(DisplayFormats34237)=="undefined") DisplayFormats34237 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34237)=="undefined") CountActives34237 = true; if (typeof(FinishMessages34237)=="undefined") FinishMessages34237 = ""; if (typeof(CountSteppers34237)!="number") CountSteppers34237 = -1; if (typeof(LeadingZeros34237)=="undefined") LeadingZeros34237 = true; CountSteppers34237 = Math.ceil(CountSteppers34237); if (CountSteppers34237 == 0) CountActives34237 = false; var SetTimeOutPeriods34237 = (Math.abs(CountSteppers34237)-1)*1000 + 990; puti(BackColors34237, ForeColors34237); var dthens34237 = new Date(TargetDates34237); var dnows34237 = new Date("10/02/2026 3:34:46 PM"); if(CountSteppers34237>0) ddiffs34237 = new Date(dnows34237-dthens34237); else ddiffs34237 = new Date(dthens34237-dnows34237); gsecss34237 = Math.floor(ddiffs34237.valueOf()/1000); CountBacks34237(gsecss34237);