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 (LeadingZeros34312 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34312(secs) { if (secs < 0) { document.getElementById("cntdwns34312").innerHTML = FinishMessages34312; return; } DisplayStrs34312 = DisplayFormats34312.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34312 = DisplayStrs34312.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34312 = DisplayStrs34312.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34312 = DisplayStrs34312.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34312").innerHTML = DisplayStrs34312; if (CountActives34312) //alert(SetTimeOutPeriods34312); setTimeout("CountBacks34312(" + (secs+CountSteppers34312) + ")", SetTimeOutPeriods34312); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34312)=="undefined") BackColors34312 = ""; if (typeof(ForeColors34312)=="undefined") ForeColors34312= "white"; if (typeof(TargetDates34312)=="undefined") TargetDates34312 = "11/09/2026 7:00:00 AM"; if (typeof(DisplayFormats34312)=="undefined") DisplayFormats34312 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34312)=="undefined") CountActives34312 = true; if (typeof(FinishMessages34312)=="undefined") FinishMessages34312 = ""; if (typeof(CountSteppers34312)!="number") CountSteppers34312 = -1; if (typeof(LeadingZeros34312)=="undefined") LeadingZeros34312 = true; CountSteppers34312 = Math.ceil(CountSteppers34312); if (CountSteppers34312 == 0) CountActives34312 = false; var SetTimeOutPeriods34312 = (Math.abs(CountSteppers34312)-1)*1000 + 990; puti(BackColors34312, ForeColors34312); var dthens34312 = new Date(TargetDates34312); var dnows34312 = new Date("11/06/2026 6:19:04 AM"); if(CountSteppers34312>0) ddiffs34312 = new Date(dnows34312-dthens34312); else ddiffs34312 = new Date(dthens34312-dnows34312); gsecss34312 = Math.floor(ddiffs34312.valueOf()/1000); CountBacks34312(gsecss34312);