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 (LeadingZeros32850 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32850(secs) { if (secs < 0) { document.getElementById("cntdwns32850").innerHTML = FinishMessages32850; return; } DisplayStrs32850 = DisplayFormats32850.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32850 = DisplayStrs32850.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32850 = DisplayStrs32850.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32850 = DisplayStrs32850.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32850").innerHTML = DisplayStrs32850; if (CountActives32850) //alert(SetTimeOutPeriods32850); setTimeout("CountBacks32850(" + (secs+CountSteppers32850) + ")", SetTimeOutPeriods32850); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32850)=="undefined") BackColors32850 = ""; if (typeof(ForeColors32850)=="undefined") ForeColors32850= "white"; if (typeof(TargetDates32850)=="undefined") TargetDates32850 = "10/06/2025 10:00:00 PM"; if (typeof(DisplayFormats32850)=="undefined") DisplayFormats32850 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32850)=="undefined") CountActives32850 = true; if (typeof(FinishMessages32850)=="undefined") FinishMessages32850 = ""; if (typeof(CountSteppers32850)!="number") CountSteppers32850 = -1; if (typeof(LeadingZeros32850)=="undefined") LeadingZeros32850 = true; CountSteppers32850 = Math.ceil(CountSteppers32850); if (CountSteppers32850 == 0) CountActives32850 = false; var SetTimeOutPeriods32850 = (Math.abs(CountSteppers32850)-1)*1000 + 990; puti(BackColors32850, ForeColors32850); var dthens32850 = new Date(TargetDates32850); var dnows32850 = new Date("10/04/2025 9:41:02 PM"); if(CountSteppers32850>0) ddiffs32850 = new Date(dnows32850-dthens32850); else ddiffs32850 = new Date(dthens32850-dnows32850); gsecss32850 = Math.floor(ddiffs32850.valueOf()/1000); CountBacks32850(gsecss32850);