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 (LeadingZeros32195 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32195(secs) { if (secs < 0) { document.getElementById("cntdwns32195").innerHTML = FinishMessages32195; return; } DisplayStrs32195 = DisplayFormats32195.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32195 = DisplayStrs32195.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32195 = DisplayStrs32195.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32195 = DisplayStrs32195.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32195").innerHTML = DisplayStrs32195; if (CountActives32195) //alert(SetTimeOutPeriods32195); setTimeout("CountBacks32195(" + (secs+CountSteppers32195) + ")", SetTimeOutPeriods32195); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32195)=="undefined") BackColors32195 = ""; if (typeof(ForeColors32195)=="undefined") ForeColors32195= "white"; if (typeof(TargetDates32195)=="undefined") TargetDates32195 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32195)=="undefined") DisplayFormats32195 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32195)=="undefined") CountActives32195 = true; if (typeof(FinishMessages32195)=="undefined") FinishMessages32195 = ""; if (typeof(CountSteppers32195)!="number") CountSteppers32195 = -1; if (typeof(LeadingZeros32195)=="undefined") LeadingZeros32195 = true; CountSteppers32195 = Math.ceil(CountSteppers32195); if (CountSteppers32195 == 0) CountActives32195 = false; var SetTimeOutPeriods32195 = (Math.abs(CountSteppers32195)-1)*1000 + 990; puti(BackColors32195, ForeColors32195); var dthens32195 = new Date(TargetDates32195); var dnows32195 = new Date("04/19/2025 2:08:36 AM"); if(CountSteppers32195>0) ddiffs32195 = new Date(dnows32195-dthens32195); else ddiffs32195 = new Date(dthens32195-dnows32195); gsecss32195 = Math.floor(ddiffs32195.valueOf()/1000); CountBacks32195(gsecss32195);