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 (LeadingZeros29256 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29256(secs) { if (secs < 0) { document.getElementById("cntdwns29256").innerHTML = FinishMessages29256; return; } DisplayStrs29256 = DisplayFormats29256.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29256 = DisplayStrs29256.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29256 = DisplayStrs29256.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29256 = DisplayStrs29256.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29256").innerHTML = DisplayStrs29256; if (CountActives29256) //alert(SetTimeOutPeriods29256); setTimeout("CountBacks29256(" + (secs+CountSteppers29256) + ")", SetTimeOutPeriods29256); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29256)=="undefined") BackColors29256 = ""; if (typeof(ForeColors29256)=="undefined") ForeColors29256= "white"; if (typeof(TargetDates29256)=="undefined") TargetDates29256 = "10/05/2023 10:00:00 PM"; if (typeof(DisplayFormats29256)=="undefined") DisplayFormats29256 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29256)=="undefined") CountActives29256 = true; if (typeof(FinishMessages29256)=="undefined") FinishMessages29256 = ""; if (typeof(CountSteppers29256)!="number") CountSteppers29256 = -1; if (typeof(LeadingZeros29256)=="undefined") LeadingZeros29256 = true; CountSteppers29256 = Math.ceil(CountSteppers29256); if (CountSteppers29256 == 0) CountActives29256 = false; var SetTimeOutPeriods29256 = (Math.abs(CountSteppers29256)-1)*1000 + 990; puti(BackColors29256, ForeColors29256); var dthens29256 = new Date(TargetDates29256); var dnows29256 = new Date("05/11/2025 5:41:13 PM"); if(CountSteppers29256>0) ddiffs29256 = new Date(dnows29256-dthens29256); else ddiffs29256 = new Date(dthens29256-dnows29256); gsecss29256 = Math.floor(ddiffs29256.valueOf()/1000); CountBacks29256(gsecss29256);