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 (LeadingZeros32354 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32354(secs) { if (secs < 0) { document.getElementById("cntdwns32354").innerHTML = FinishMessages32354; return; } DisplayStrs32354 = DisplayFormats32354.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32354 = DisplayStrs32354.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32354 = DisplayStrs32354.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32354 = DisplayStrs32354.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32354").innerHTML = DisplayStrs32354; if (CountActives32354) //alert(SetTimeOutPeriods32354); setTimeout("CountBacks32354(" + (secs+CountSteppers32354) + ")", SetTimeOutPeriods32354); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32354)=="undefined") BackColors32354 = ""; if (typeof(ForeColors32354)=="undefined") ForeColors32354= "white"; if (typeof(TargetDates32354)=="undefined") TargetDates32354 = "06/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32354)=="undefined") DisplayFormats32354 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32354)=="undefined") CountActives32354 = true; if (typeof(FinishMessages32354)=="undefined") FinishMessages32354 = ""; if (typeof(CountSteppers32354)!="number") CountSteppers32354 = -1; if (typeof(LeadingZeros32354)=="undefined") LeadingZeros32354 = true; CountSteppers32354 = Math.ceil(CountSteppers32354); if (CountSteppers32354 == 0) CountActives32354 = false; var SetTimeOutPeriods32354 = (Math.abs(CountSteppers32354)-1)*1000 + 990; puti(BackColors32354, ForeColors32354); var dthens32354 = new Date(TargetDates32354); var dnows32354 = new Date("05/31/2025 10:20:10 AM"); if(CountSteppers32354>0) ddiffs32354 = new Date(dnows32354-dthens32354); else ddiffs32354 = new Date(dthens32354-dnows32354); gsecss32354 = Math.floor(ddiffs32354.valueOf()/1000); CountBacks32354(gsecss32354);