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 (LeadingZeros31793 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31793(secs) { if (secs < 0) { document.getElementById("cntdwns31793").innerHTML = FinishMessages31793; return; } DisplayStrs31793 = DisplayFormats31793.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31793 = DisplayStrs31793.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31793 = DisplayStrs31793.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31793 = DisplayStrs31793.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31793").innerHTML = DisplayStrs31793; if (CountActives31793) //alert(SetTimeOutPeriods31793); setTimeout("CountBacks31793(" + (secs+CountSteppers31793) + ")", SetTimeOutPeriods31793); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31793)=="undefined") BackColors31793 = ""; if (typeof(ForeColors31793)=="undefined") ForeColors31793= "white"; if (typeof(TargetDates31793)=="undefined") TargetDates31793 = "02/03/2025 10:00:00 PM"; if (typeof(DisplayFormats31793)=="undefined") DisplayFormats31793 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31793)=="undefined") CountActives31793 = true; if (typeof(FinishMessages31793)=="undefined") FinishMessages31793 = ""; if (typeof(CountSteppers31793)!="number") CountSteppers31793 = -1; if (typeof(LeadingZeros31793)=="undefined") LeadingZeros31793 = true; CountSteppers31793 = Math.ceil(CountSteppers31793); if (CountSteppers31793 == 0) CountActives31793 = false; var SetTimeOutPeriods31793 = (Math.abs(CountSteppers31793)-1)*1000 + 990; puti(BackColors31793, ForeColors31793); var dthens31793 = new Date(TargetDates31793); var dnows31793 = new Date("02/01/2025 5:10:05 AM"); if(CountSteppers31793>0) ddiffs31793 = new Date(dnows31793-dthens31793); else ddiffs31793 = new Date(dthens31793-dnows31793); gsecss31793 = Math.floor(ddiffs31793.valueOf()/1000); CountBacks31793(gsecss31793);