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 (LeadingZeros34382 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34382(secs) { if (secs < 0) { document.getElementById("cntdwns34382").innerHTML = FinishMessages34382; return; } DisplayStrs34382 = DisplayFormats34382.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34382 = DisplayStrs34382.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34382 = DisplayStrs34382.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34382 = DisplayStrs34382.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34382").innerHTML = DisplayStrs34382; if (CountActives34382) //alert(SetTimeOutPeriods34382); setTimeout("CountBacks34382(" + (secs+CountSteppers34382) + ")", SetTimeOutPeriods34382); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34382)=="undefined") BackColors34382 = ""; if (typeof(ForeColors34382)=="undefined") ForeColors34382= "white"; if (typeof(TargetDates34382)=="undefined") TargetDates34382 = "11/05/2026 10:00:00 PM"; if (typeof(DisplayFormats34382)=="undefined") DisplayFormats34382 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34382)=="undefined") CountActives34382 = true; if (typeof(FinishMessages34382)=="undefined") FinishMessages34382 = ""; if (typeof(CountSteppers34382)!="number") CountSteppers34382 = -1; if (typeof(LeadingZeros34382)=="undefined") LeadingZeros34382 = true; CountSteppers34382 = Math.ceil(CountSteppers34382); if (CountSteppers34382 == 0) CountActives34382 = false; var SetTimeOutPeriods34382 = (Math.abs(CountSteppers34382)-1)*1000 + 990; puti(BackColors34382, ForeColors34382); var dthens34382 = new Date(TargetDates34382); var dnows34382 = new Date("11/02/2026 4:44:56 PM"); if(CountSteppers34382>0) ddiffs34382 = new Date(dnows34382-dthens34382); else ddiffs34382 = new Date(dthens34382-dnows34382); gsecss34382 = Math.floor(ddiffs34382.valueOf()/1000); CountBacks34382(gsecss34382);