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 (LeadingZeros29635 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29635(secs) { if (secs < 0) { document.getElementById("cntdwns29635").innerHTML = FinishMessages29635; return; } DisplayStrs29635 = DisplayFormats29635.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29635 = DisplayStrs29635.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29635 = DisplayStrs29635.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29635 = DisplayStrs29635.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29635").innerHTML = DisplayStrs29635; if (CountActives29635) //alert(SetTimeOutPeriods29635); setTimeout("CountBacks29635(" + (secs+CountSteppers29635) + ")", SetTimeOutPeriods29635); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29635)=="undefined") BackColors29635 = ""; if (typeof(ForeColors29635)=="undefined") ForeColors29635= "white"; if (typeof(TargetDates29635)=="undefined") TargetDates29635 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29635)=="undefined") DisplayFormats29635 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29635)=="undefined") CountActives29635 = true; if (typeof(FinishMessages29635)=="undefined") FinishMessages29635 = ""; if (typeof(CountSteppers29635)!="number") CountSteppers29635 = -1; if (typeof(LeadingZeros29635)=="undefined") LeadingZeros29635 = true; CountSteppers29635 = Math.ceil(CountSteppers29635); if (CountSteppers29635 == 0) CountActives29635 = false; var SetTimeOutPeriods29635 = (Math.abs(CountSteppers29635)-1)*1000 + 990; puti(BackColors29635, ForeColors29635); var dthens29635 = new Date(TargetDates29635); var dnows29635 = new Date("05/09/2025 12:56:00 PM"); if(CountSteppers29635>0) ddiffs29635 = new Date(dnows29635-dthens29635); else ddiffs29635 = new Date(dthens29635-dnows29635); gsecss29635 = Math.floor(ddiffs29635.valueOf()/1000); CountBacks29635(gsecss29635);