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 (LeadingZeros32699 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32699(secs) { if (secs < 0) { document.getElementById("cntdwns32699").innerHTML = FinishMessages32699; return; } DisplayStrs32699 = DisplayFormats32699.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32699 = DisplayStrs32699.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32699 = DisplayStrs32699.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32699 = DisplayStrs32699.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32699").innerHTML = DisplayStrs32699; if (CountActives32699) //alert(SetTimeOutPeriods32699); setTimeout("CountBacks32699(" + (secs+CountSteppers32699) + ")", SetTimeOutPeriods32699); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32699)=="undefined") BackColors32699 = ""; if (typeof(ForeColors32699)=="undefined") ForeColors32699= "white"; if (typeof(TargetDates32699)=="undefined") TargetDates32699 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32699)=="undefined") DisplayFormats32699 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32699)=="undefined") CountActives32699 = true; if (typeof(FinishMessages32699)=="undefined") FinishMessages32699 = ""; if (typeof(CountSteppers32699)!="number") CountSteppers32699 = -1; if (typeof(LeadingZeros32699)=="undefined") LeadingZeros32699 = true; CountSteppers32699 = Math.ceil(CountSteppers32699); if (CountSteppers32699 == 0) CountActives32699 = false; var SetTimeOutPeriods32699 = (Math.abs(CountSteppers32699)-1)*1000 + 990; puti(BackColors32699, ForeColors32699); var dthens32699 = new Date(TargetDates32699); var dnows32699 = new Date("08/11/2025 9:27:20 PM"); if(CountSteppers32699>0) ddiffs32699 = new Date(dnows32699-dthens32699); else ddiffs32699 = new Date(dthens32699-dnows32699); gsecss32699 = Math.floor(ddiffs32699.valueOf()/1000); CountBacks32699(gsecss32699);