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 (LeadingZeros34217 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34217(secs) { if (secs < 0) { document.getElementById("cntdwns34217").innerHTML = FinishMessages34217; return; } DisplayStrs34217 = DisplayFormats34217.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34217 = DisplayStrs34217.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34217 = DisplayStrs34217.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34217 = DisplayStrs34217.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34217").innerHTML = DisplayStrs34217; if (CountActives34217) //alert(SetTimeOutPeriods34217); setTimeout("CountBacks34217(" + (secs+CountSteppers34217) + ")", SetTimeOutPeriods34217); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34217)=="undefined") BackColors34217 = ""; if (typeof(ForeColors34217)=="undefined") ForeColors34217= "white"; if (typeof(TargetDates34217)=="undefined") TargetDates34217 = "10/11/2026 10:00:00 PM"; if (typeof(DisplayFormats34217)=="undefined") DisplayFormats34217 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34217)=="undefined") CountActives34217 = true; if (typeof(FinishMessages34217)=="undefined") FinishMessages34217 = ""; if (typeof(CountSteppers34217)!="number") CountSteppers34217 = -1; if (typeof(LeadingZeros34217)=="undefined") LeadingZeros34217 = true; CountSteppers34217 = Math.ceil(CountSteppers34217); if (CountSteppers34217 == 0) CountActives34217 = false; var SetTimeOutPeriods34217 = (Math.abs(CountSteppers34217)-1)*1000 + 990; puti(BackColors34217, ForeColors34217); var dthens34217 = new Date(TargetDates34217); var dnows34217 = new Date("10/24/2026 6:48:02 AM"); if(CountSteppers34217>0) ddiffs34217 = new Date(dnows34217-dthens34217); else ddiffs34217 = new Date(dthens34217-dnows34217); gsecss34217 = Math.floor(ddiffs34217.valueOf()/1000); CountBacks34217(gsecss34217);