var timerform

startdate     = new Date(2008, 7-1, 11) 
countFromDate = new Date(2008, 9-1, 28) 
count=2073291

speed=0



function formatWithSeparator(i)
{
  var retStr = ''
  var workStr = ''+i
  if (workStr.length <= 3)
    return workStr
  
  retStr = workStr.substr(workStr.length-3, 3)
  workStr = workStr.substr(0, workStr.length-3)
    
  while (workStr.length > 3)
  {
    retStr = workStr.substr(workStr.length-3, 3) +'.'+retStr
    workStr = workStr.substr(0, workStr.length-3)
  }
  
  return workStr+'.'+retStr
}


function getNbrDownloads()
{
  today=new Date()
  curCount = count+Math.round((today.getTime()-countFromDate.getTime())/(speed))
  return formatWithSeparator(curCount+750000)
}

function dotimer()
{
  document.timerform.timer.value=''+getNbrDownloads()
  window.setTimeout("dotimer()",speed)
}

function Timer()
{
  speed=(countFromDate.getTime()-startdate.getTime())/count
  document.write('<form name=timerform class="counter"><input name=timer size=7 class="counter" disabled="disabled"')
  document.write('></form>')
  dotimer()
}

