Warning: stat() [function.stat]: stat failed for cache/cache_150_1_1_img_1060483_d1adcdb4d2785308b6033adfecd05385jpg.img in /includes/functions.php on line 863

Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php:863) in /countdown.php on line 157
countdown = 126512; function convert_to_time(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+"h "+mm+"m "+ss+"s"); } else { if (dd > 1) { return (dd+"g, "+hh+"h "+mm+"m "+ss+"s"); } else { return (dd+"g, "+hh+"h "+mm+"m "+ss+"s"); } } } function do_cd() { if (countdown <= 0) { document.write("
Inserzione scaduta!
\n"); } else { document.getElementById('cd').innerHTML = convert_to_time(countdown); setTimeout('do_cd()', 1000); } countdown = countdown - 1; } document.write("
\n"); do_cd();