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 (LeadingZeros30467 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30467(secs) { if (secs < 0) { document.getElementById("cntdwns30467").innerHTML = FinishMessages30467; return; } DisplayStrs30467 = DisplayFormats30467.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30467 = DisplayStrs30467.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30467 = DisplayStrs30467.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30467 = DisplayStrs30467.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30467").innerHTML = DisplayStrs30467; if (CountActives30467) //alert(SetTimeOutPeriods30467); setTimeout("CountBacks30467(" + (secs+CountSteppers30467) + ")", SetTimeOutPeriods30467); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30467)=="undefined") BackColors30467 = ""; if (typeof(ForeColors30467)=="undefined") ForeColors30467= "white"; if (typeof(TargetDates30467)=="undefined") TargetDates30467 = "05/01/2024 10:00:00 PM"; if (typeof(DisplayFormats30467)=="undefined") DisplayFormats30467 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30467)=="undefined") CountActives30467 = true; if (typeof(FinishMessages30467)=="undefined") FinishMessages30467 = ""; if (typeof(CountSteppers30467)!="number") CountSteppers30467 = -1; if (typeof(LeadingZeros30467)=="undefined") LeadingZeros30467 = true; CountSteppers30467 = Math.ceil(CountSteppers30467); if (CountSteppers30467 == 0) CountActives30467 = false; var SetTimeOutPeriods30467 = (Math.abs(CountSteppers30467)-1)*1000 + 990; puti(BackColors30467, ForeColors30467); var dthens30467 = new Date(TargetDates30467); var dnows30467 = new Date("05/12/2024 2:20:52 PM"); if(CountSteppers30467>0) ddiffs30467 = new Date(dnows30467-dthens30467); else ddiffs30467 = new Date(dthens30467-dnows30467); gsecss30467 = Math.floor(ddiffs30467.valueOf()/1000); CountBacks30467(gsecss30467);