Re: Progressbar with remaining and final Time in seconds?
You are pointing to an element which doesn't exists on your markup (yet):
[code:1gbabnmw]
document.getElementById('stateInPercent')
[/code:1gbabnmw]
...you don't have the element with the id of "stateInPercent".
Try to download firebug (an FF extension), where it gives you the ability to debug your codes and error reporting.
Hope that helps.