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 (LeadingZeros32489 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32489(secs) { if (secs < 0) { document.getElementById("cntdwns32489").innerHTML = FinishMessages32489; return; } DisplayStrs32489 = DisplayFormats32489.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32489 = DisplayStrs32489.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32489 = DisplayStrs32489.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32489 = DisplayStrs32489.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32489").innerHTML = DisplayStrs32489; if (CountActives32489) //alert(SetTimeOutPeriods32489); setTimeout("CountBacks32489(" + (secs+CountSteppers32489) + ")", SetTimeOutPeriods32489); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32489)=="undefined") BackColors32489 = ""; if (typeof(ForeColors32489)=="undefined") ForeColors32489= "white"; if (typeof(TargetDates32489)=="undefined") TargetDates32489 = "07/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32489)=="undefined") DisplayFormats32489 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32489)=="undefined") CountActives32489 = true; if (typeof(FinishMessages32489)=="undefined") FinishMessages32489 = ""; if (typeof(CountSteppers32489)!="number") CountSteppers32489 = -1; if (typeof(LeadingZeros32489)=="undefined") LeadingZeros32489 = true; CountSteppers32489 = Math.ceil(CountSteppers32489); if (CountSteppers32489 == 0) CountActives32489 = false; var SetTimeOutPeriods32489 = (Math.abs(CountSteppers32489)-1)*1000 + 990; puti(BackColors32489, ForeColors32489); var dthens32489 = new Date(TargetDates32489); var dnows32489 = new Date("07/10/2025 4:35:13 AM"); if(CountSteppers32489>0) ddiffs32489 = new Date(dnows32489-dthens32489); else ddiffs32489 = new Date(dthens32489-dnows32489); gsecss32489 = Math.floor(ddiffs32489.valueOf()/1000); CountBacks32489(gsecss32489);