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 (LeadingZeros32168 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32168(secs) { if (secs < 0) { document.getElementById("cntdwns32168").innerHTML = FinishMessages32168; return; } DisplayStrs32168 = DisplayFormats32168.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32168 = DisplayStrs32168.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32168 = DisplayStrs32168.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32168 = DisplayStrs32168.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32168").innerHTML = DisplayStrs32168; if (CountActives32168) //alert(SetTimeOutPeriods32168); setTimeout("CountBacks32168(" + (secs+CountSteppers32168) + ")", SetTimeOutPeriods32168); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32168)=="undefined") BackColors32168 = ""; if (typeof(ForeColors32168)=="undefined") ForeColors32168= "white"; if (typeof(TargetDates32168)=="undefined") TargetDates32168 = "05/07/2025 10:00:00 PM"; if (typeof(DisplayFormats32168)=="undefined") DisplayFormats32168 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32168)=="undefined") CountActives32168 = true; if (typeof(FinishMessages32168)=="undefined") FinishMessages32168 = ""; if (typeof(CountSteppers32168)!="number") CountSteppers32168 = -1; if (typeof(LeadingZeros32168)=="undefined") LeadingZeros32168 = true; CountSteppers32168 = Math.ceil(CountSteppers32168); if (CountSteppers32168 == 0) CountActives32168 = false; var SetTimeOutPeriods32168 = (Math.abs(CountSteppers32168)-1)*1000 + 990; puti(BackColors32168, ForeColors32168); var dthens32168 = new Date(TargetDates32168); var dnows32168 = new Date("05/05/2025 3:13:45 PM"); if(CountSteppers32168>0) ddiffs32168 = new Date(dnows32168-dthens32168); else ddiffs32168 = new Date(dthens32168-dnows32168); gsecss32168 = Math.floor(ddiffs32168.valueOf()/1000); CountBacks32168(gsecss32168);