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 (LeadingZeros34505 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34505(secs) { if (secs < 0) { document.getElementById("cntdwns34505").innerHTML = FinishMessages34505; return; } DisplayStrs34505 = DisplayFormats34505.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34505 = DisplayStrs34505.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34505 = DisplayStrs34505.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34505 = DisplayStrs34505.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34505").innerHTML = DisplayStrs34505; if (CountActives34505) //alert(SetTimeOutPeriods34505); setTimeout("CountBacks34505(" + (secs+CountSteppers34505) + ")", SetTimeOutPeriods34505); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34505)=="undefined") BackColors34505 = ""; if (typeof(ForeColors34505)=="undefined") ForeColors34505= "white"; if (typeof(TargetDates34505)=="undefined") TargetDates34505 = "12/03/2026 11:00:00 PM"; if (typeof(DisplayFormats34505)=="undefined") DisplayFormats34505 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34505)=="undefined") CountActives34505 = true; if (typeof(FinishMessages34505)=="undefined") FinishMessages34505 = ""; if (typeof(CountSteppers34505)!="number") CountSteppers34505 = -1; if (typeof(LeadingZeros34505)=="undefined") LeadingZeros34505 = true; CountSteppers34505 = Math.ceil(CountSteppers34505); if (CountSteppers34505 == 0) CountActives34505 = false; var SetTimeOutPeriods34505 = (Math.abs(CountSteppers34505)-1)*1000 + 990; puti(BackColors34505, ForeColors34505); var dthens34505 = new Date(TargetDates34505); var dnows34505 = new Date("12/01/2026 9:55:51 PM"); if(CountSteppers34505>0) ddiffs34505 = new Date(dnows34505-dthens34505); else ddiffs34505 = new Date(dthens34505-dnows34505); gsecss34505 = Math.floor(ddiffs34505.valueOf()/1000); CountBacks34505(gsecss34505);