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 (LeadingZeros33163 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33163(secs) { if (secs < 0) { document.getElementById("cntdwns33163").innerHTML = FinishMessages33163; return; } DisplayStrs33163 = DisplayFormats33163.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33163 = DisplayStrs33163.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33163 = DisplayStrs33163.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33163 = DisplayStrs33163.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33163").innerHTML = DisplayStrs33163; if (CountActives33163) //alert(SetTimeOutPeriods33163); setTimeout("CountBacks33163(" + (secs+CountSteppers33163) + ")", SetTimeOutPeriods33163); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33163)=="undefined") BackColors33163 = ""; if (typeof(ForeColors33163)=="undefined") ForeColors33163= "white"; if (typeof(TargetDates33163)=="undefined") TargetDates33163 = "12/03/2025 10:00:00 PM"; if (typeof(DisplayFormats33163)=="undefined") DisplayFormats33163 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33163)=="undefined") CountActives33163 = true; if (typeof(FinishMessages33163)=="undefined") FinishMessages33163 = ""; if (typeof(CountSteppers33163)!="number") CountSteppers33163 = -1; if (typeof(LeadingZeros33163)=="undefined") LeadingZeros33163 = true; CountSteppers33163 = Math.ceil(CountSteppers33163); if (CountSteppers33163 == 0) CountActives33163 = false; var SetTimeOutPeriods33163 = (Math.abs(CountSteppers33163)-1)*1000 + 990; puti(BackColors33163, ForeColors33163); var dthens33163 = new Date(TargetDates33163); var dnows33163 = new Date("11/30/2025 12:16:35 PM"); if(CountSteppers33163>0) ddiffs33163 = new Date(dnows33163-dthens33163); else ddiffs33163 = new Date(dthens33163-dnows33163); gsecss33163 = Math.floor(ddiffs33163.valueOf()/1000); CountBacks33163(gsecss33163);