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 (LeadingZeros34348 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34348(secs) { if (secs < 0) { document.getElementById("cntdwns34348").innerHTML = FinishMessages34348; return; } DisplayStrs34348 = DisplayFormats34348.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34348 = DisplayStrs34348.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34348 = DisplayStrs34348.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34348 = DisplayStrs34348.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34348").innerHTML = DisplayStrs34348; if (CountActives34348) //alert(SetTimeOutPeriods34348); setTimeout("CountBacks34348(" + (secs+CountSteppers34348) + ")", SetTimeOutPeriods34348); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34348)=="undefined") BackColors34348 = ""; if (typeof(ForeColors34348)=="undefined") ForeColors34348= "white"; if (typeof(TargetDates34348)=="undefined") TargetDates34348 = "11/10/2026 11:00:00 PM"; if (typeof(DisplayFormats34348)=="undefined") DisplayFormats34348 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34348)=="undefined") CountActives34348 = true; if (typeof(FinishMessages34348)=="undefined") FinishMessages34348 = ""; if (typeof(CountSteppers34348)!="number") CountSteppers34348 = -1; if (typeof(LeadingZeros34348)=="undefined") LeadingZeros34348 = true; CountSteppers34348 = Math.ceil(CountSteppers34348); if (CountSteppers34348 == 0) CountActives34348 = false; var SetTimeOutPeriods34348 = (Math.abs(CountSteppers34348)-1)*1000 + 990; puti(BackColors34348, ForeColors34348); var dthens34348 = new Date(TargetDates34348); var dnows34348 = new Date("11/25/2026 1:02:44 PM"); if(CountSteppers34348>0) ddiffs34348 = new Date(dnows34348-dthens34348); else ddiffs34348 = new Date(dthens34348-dnows34348); gsecss34348 = Math.floor(ddiffs34348.valueOf()/1000); CountBacks34348(gsecss34348);