Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/hollywoodrollers.com/httpdocs/includes/countdown3.php on line 7
// Here’s where the Javascript starts
countdown3 = -17635057;
// Converting date difference from seconds to actual time
function convert_to_time3(secs)
{
secs = parseInt(secs);
hh = secs / 3600;
hh = parseInt(hh);
mmt = secs - (hh * 3600);
mm = mmt / 60;
mm = parseInt(mm);
ss = mmt - (mm * 60);
if (hh > 23)
{
dd = hh / 24;
dd = parseInt(dd);
hh = hh - (dd * 24);
} else { dd = 0; }
if (ss < 10) { ss = "0"+ss; }
if (mm < 10) { mm = "0"+mm; }
if (hh < 10) { hh = "0"+hh; }
if (dd == 0) { return (hh+":"+mm+":"+ss); }
else {
if (dd > 1) { return (dd+" days "+hh+":"+mm+":"+ss); }
else { return (dd+" day "+hh+":"+mm+":"+ss); }
}
}
// Our function that will do the actual countdown
function do_cd3()
{
if (countdown3 < 0)
{
// change text
document.getElementById('blockghi').innerHTML = "Auction has begun.";
}
else
{
document.getElementById('blockghi').innerHTML = convert_to_time3(countdown3);
setTimeout('do_cd3()', 1000);
}
countdown3 = countdown3 - 1;
}
// document.write("\n");
do_cd3();