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 (LeadingZeros34470 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34470(secs) { if (secs < 0) { document.getElementById("cntdwns34470").innerHTML = FinishMessages34470; return; } DisplayStrs34470 = DisplayFormats34470.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34470 = DisplayStrs34470.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34470 = DisplayStrs34470.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34470 = DisplayStrs34470.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34470").innerHTML = DisplayStrs34470; if (CountActives34470) //alert(SetTimeOutPeriods34470); setTimeout("CountBacks34470(" + (secs+CountSteppers34470) + ")", SetTimeOutPeriods34470); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34470)=="undefined") BackColors34470 = ""; if (typeof(ForeColors34470)=="undefined") ForeColors34470= "white"; if (typeof(TargetDates34470)=="undefined") TargetDates34470 = "12/04/2026 11:00:00 PM"; if (typeof(DisplayFormats34470)=="undefined") DisplayFormats34470 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34470)=="undefined") CountActives34470 = true; if (typeof(FinishMessages34470)=="undefined") FinishMessages34470 = ""; if (typeof(CountSteppers34470)!="number") CountSteppers34470 = -1; if (typeof(LeadingZeros34470)=="undefined") LeadingZeros34470 = true; CountSteppers34470 = Math.ceil(CountSteppers34470); if (CountSteppers34470 == 0) CountActives34470 = false; var SetTimeOutPeriods34470 = (Math.abs(CountSteppers34470)-1)*1000 + 990; puti(BackColors34470, ForeColors34470); var dthens34470 = new Date(TargetDates34470); var dnows34470 = new Date("12/01/2026 8:31:42 PM"); if(CountSteppers34470>0) ddiffs34470 = new Date(dnows34470-dthens34470); else ddiffs34470 = new Date(dthens34470-dnows34470); gsecss34470 = Math.floor(ddiffs34470.valueOf()/1000); CountBacks34470(gsecss34470);