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 (LeadingZeros32117 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32117(secs) { if (secs < 0) { document.getElementById("cntdwns32117").innerHTML = FinishMessages32117; return; } DisplayStrs32117 = DisplayFormats32117.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32117 = DisplayStrs32117.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32117 = DisplayStrs32117.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32117 = DisplayStrs32117.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32117").innerHTML = DisplayStrs32117; if (CountActives32117) //alert(SetTimeOutPeriods32117); setTimeout("CountBacks32117(" + (secs+CountSteppers32117) + ")", SetTimeOutPeriods32117); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32117)=="undefined") BackColors32117 = ""; if (typeof(ForeColors32117)=="undefined") ForeColors32117= "white"; if (typeof(TargetDates32117)=="undefined") TargetDates32117 = "03/31/2025 10:00:00 PM"; if (typeof(DisplayFormats32117)=="undefined") DisplayFormats32117 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32117)=="undefined") CountActives32117 = true; if (typeof(FinishMessages32117)=="undefined") FinishMessages32117 = ""; if (typeof(CountSteppers32117)!="number") CountSteppers32117 = -1; if (typeof(LeadingZeros32117)=="undefined") LeadingZeros32117 = true; CountSteppers32117 = Math.ceil(CountSteppers32117); if (CountSteppers32117 == 0) CountActives32117 = false; var SetTimeOutPeriods32117 = (Math.abs(CountSteppers32117)-1)*1000 + 990; puti(BackColors32117, ForeColors32117); var dthens32117 = new Date(TargetDates32117); var dnows32117 = new Date("03/31/2025 6:18:24 PM"); if(CountSteppers32117>0) ddiffs32117 = new Date(dnows32117-dthens32117); else ddiffs32117 = new Date(dthens32117-dnows32117); gsecss32117 = Math.floor(ddiffs32117.valueOf()/1000); CountBacks32117(gsecss32117);