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 (LeadingZeros32618 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32618(secs) { if (secs < 0) { document.getElementById("cntdwns32618").innerHTML = FinishMessages32618; return; } DisplayStrs32618 = DisplayFormats32618.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32618 = DisplayStrs32618.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32618 = DisplayStrs32618.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32618 = DisplayStrs32618.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32618").innerHTML = DisplayStrs32618; if (CountActives32618) //alert(SetTimeOutPeriods32618); setTimeout("CountBacks32618(" + (secs+CountSteppers32618) + ")", SetTimeOutPeriods32618); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32618)=="undefined") BackColors32618 = ""; if (typeof(ForeColors32618)=="undefined") ForeColors32618= "white"; if (typeof(TargetDates32618)=="undefined") TargetDates32618 = "08/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32618)=="undefined") DisplayFormats32618 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32618)=="undefined") CountActives32618 = true; if (typeof(FinishMessages32618)=="undefined") FinishMessages32618 = ""; if (typeof(CountSteppers32618)!="number") CountSteppers32618 = -1; if (typeof(LeadingZeros32618)=="undefined") LeadingZeros32618 = true; CountSteppers32618 = Math.ceil(CountSteppers32618); if (CountSteppers32618 == 0) CountActives32618 = false; var SetTimeOutPeriods32618 = (Math.abs(CountSteppers32618)-1)*1000 + 990; puti(BackColors32618, ForeColors32618); var dthens32618 = new Date(TargetDates32618); var dnows32618 = new Date("07/31/2025 3:05:39 PM"); if(CountSteppers32618>0) ddiffs32618 = new Date(dnows32618-dthens32618); else ddiffs32618 = new Date(dthens32618-dnows32618); gsecss32618 = Math.floor(ddiffs32618.valueOf()/1000); CountBacks32618(gsecss32618);