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 (LeadingZeros29442 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29442(secs) { if (secs < 0) { document.getElementById("cntdwns29442").innerHTML = FinishMessages29442; return; } DisplayStrs29442 = DisplayFormats29442.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29442 = DisplayStrs29442.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29442 = DisplayStrs29442.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29442 = DisplayStrs29442.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29442").innerHTML = DisplayStrs29442; if (CountActives29442) //alert(SetTimeOutPeriods29442); setTimeout("CountBacks29442(" + (secs+CountSteppers29442) + ")", SetTimeOutPeriods29442); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29442)=="undefined") BackColors29442 = ""; if (typeof(ForeColors29442)=="undefined") ForeColors29442= "white"; if (typeof(TargetDates29442)=="undefined") TargetDates29442 = "12/05/2023 10:00:00 PM"; if (typeof(DisplayFormats29442)=="undefined") DisplayFormats29442 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29442)=="undefined") CountActives29442 = true; if (typeof(FinishMessages29442)=="undefined") FinishMessages29442 = ""; if (typeof(CountSteppers29442)!="number") CountSteppers29442 = -1; if (typeof(LeadingZeros29442)=="undefined") LeadingZeros29442 = true; CountSteppers29442 = Math.ceil(CountSteppers29442); if (CountSteppers29442 == 0) CountActives29442 = false; var SetTimeOutPeriods29442 = (Math.abs(CountSteppers29442)-1)*1000 + 990; puti(BackColors29442, ForeColors29442); var dthens29442 = new Date(TargetDates29442); var dnows29442 = new Date("05/11/2025 10:57:20 AM"); if(CountSteppers29442>0) ddiffs29442 = new Date(dnows29442-dthens29442); else ddiffs29442 = new Date(dthens29442-dnows29442); gsecss29442 = Math.floor(ddiffs29442.valueOf()/1000); CountBacks29442(gsecss29442);