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 (LeadingZeros32150 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32150(secs) { if (secs < 0) { document.getElementById("cntdwns32150").innerHTML = FinishMessages32150; return; } DisplayStrs32150 = DisplayFormats32150.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32150 = DisplayStrs32150.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32150 = DisplayStrs32150.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32150 = DisplayStrs32150.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32150").innerHTML = DisplayStrs32150; if (CountActives32150) //alert(SetTimeOutPeriods32150); setTimeout("CountBacks32150(" + (secs+CountSteppers32150) + ")", SetTimeOutPeriods32150); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32150)=="undefined") BackColors32150 = ""; if (typeof(ForeColors32150)=="undefined") ForeColors32150= "white"; if (typeof(TargetDates32150)=="undefined") TargetDates32150 = "04/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32150)=="undefined") DisplayFormats32150 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32150)=="undefined") CountActives32150 = true; if (typeof(FinishMessages32150)=="undefined") FinishMessages32150 = ""; if (typeof(CountSteppers32150)!="number") CountSteppers32150 = -1; if (typeof(LeadingZeros32150)=="undefined") LeadingZeros32150 = true; CountSteppers32150 = Math.ceil(CountSteppers32150); if (CountSteppers32150 == 0) CountActives32150 = false; var SetTimeOutPeriods32150 = (Math.abs(CountSteppers32150)-1)*1000 + 990; puti(BackColors32150, ForeColors32150); var dthens32150 = new Date(TargetDates32150); var dnows32150 = new Date("04/18/2025 10:09:55 PM"); if(CountSteppers32150>0) ddiffs32150 = new Date(dnows32150-dthens32150); else ddiffs32150 = new Date(dthens32150-dnows32150); gsecss32150 = Math.floor(ddiffs32150.valueOf()/1000); CountBacks32150(gsecss32150);