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 (LeadingZeros32322 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32322(secs) { if (secs < 0) { document.getElementById("cntdwns32322").innerHTML = FinishMessages32322; return; } DisplayStrs32322 = DisplayFormats32322.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32322 = DisplayStrs32322.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32322 = DisplayStrs32322.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32322 = DisplayStrs32322.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32322").innerHTML = DisplayStrs32322; if (CountActives32322) //alert(SetTimeOutPeriods32322); setTimeout("CountBacks32322(" + (secs+CountSteppers32322) + ")", SetTimeOutPeriods32322); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32322)=="undefined") BackColors32322 = ""; if (typeof(ForeColors32322)=="undefined") ForeColors32322= "white"; if (typeof(TargetDates32322)=="undefined") TargetDates32322 = "05/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32322)=="undefined") DisplayFormats32322 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32322)=="undefined") CountActives32322 = true; if (typeof(FinishMessages32322)=="undefined") FinishMessages32322 = ""; if (typeof(CountSteppers32322)!="number") CountSteppers32322 = -1; if (typeof(LeadingZeros32322)=="undefined") LeadingZeros32322 = true; CountSteppers32322 = Math.ceil(CountSteppers32322); if (CountSteppers32322 == 0) CountActives32322 = false; var SetTimeOutPeriods32322 = (Math.abs(CountSteppers32322)-1)*1000 + 990; puti(BackColors32322, ForeColors32322); var dthens32322 = new Date(TargetDates32322); var dnows32322 = new Date("05/09/2025 9:33:28 PM"); if(CountSteppers32322>0) ddiffs32322 = new Date(dnows32322-dthens32322); else ddiffs32322 = new Date(dthens32322-dnows32322); gsecss32322 = Math.floor(ddiffs32322.valueOf()/1000); CountBacks32322(gsecss32322);