// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
var _counter = 0;
var _counterId = null;

function countTime() {
  
  _counter = (_counter-0.1).toFixed(1);
  $('time').innerHTML = _counter + " sec";
  
  if (_counter <= 0) {
    clearInterval(_counterId)
    // display form.
    $('activate').show();
    $('time').hide();
  } 
  
  
  
}
