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 (LeadingZeros34425 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34425(secs) { if (secs < 0) { document.getElementById("cntdwns34425").innerHTML = FinishMessages34425; return; } DisplayStrs34425 = DisplayFormats34425.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34425 = DisplayStrs34425.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34425 = DisplayStrs34425.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34425 = DisplayStrs34425.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34425").innerHTML = DisplayStrs34425; if (CountActives34425) //alert(SetTimeOutPeriods34425); setTimeout("CountBacks34425(" + (secs+CountSteppers34425) + ")", SetTimeOutPeriods34425); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34425)=="undefined") BackColors34425 = ""; if (typeof(ForeColors34425)=="undefined") ForeColors34425= "white"; if (typeof(TargetDates34425)=="undefined") TargetDates34425 = "11/07/2026 11:00:00 PM"; if (typeof(DisplayFormats34425)=="undefined") DisplayFormats34425 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34425)=="undefined") CountActives34425 = true; if (typeof(FinishMessages34425)=="undefined") FinishMessages34425 = ""; if (typeof(CountSteppers34425)!="number") CountSteppers34425 = -1; if (typeof(LeadingZeros34425)=="undefined") LeadingZeros34425 = true; CountSteppers34425 = Math.ceil(CountSteppers34425); if (CountSteppers34425 == 0) CountActives34425 = false; var SetTimeOutPeriods34425 = (Math.abs(CountSteppers34425)-1)*1000 + 990; puti(BackColors34425, ForeColors34425); var dthens34425 = new Date(TargetDates34425); var dnows34425 = new Date("11/05/2026 2:48:42 PM"); if(CountSteppers34425>0) ddiffs34425 = new Date(dnows34425-dthens34425); else ddiffs34425 = new Date(dthens34425-dnows34425); gsecss34425 = Math.floor(ddiffs34425.valueOf()/1000); CountBacks34425(gsecss34425);