
var iCounter = 45;

function countdown()
  {
    if (iCounter > 0)
    {
      iCounter--;
      document.getElementById('counter').innerHTML = iCounter;
      setTimeout("countdown()",1000);
    }else
      window.location.reload();
    }

window.onload = countdown;


function show(id) {
    window.document.getElementById(id).style.visibility = "visible";
    window.document.getElementById(id).style.display = "block";   
}

function hide(id) {
    window.document.getElementById(id).style.visibility = "hidden";
    window.document.getElementById(id).style.display = "none";   
}

