//------------------------------------------------ Страница >> --------------------------------------------------------

function additional_show_id(id, mode)
{ if(object = document.getElementById(id))
  { if(mode) object.style.display = 'block';
    else object.style.display = 'none';
  }
}

function additional_show_id_auto(id)
{ if(object = document.getElementById(id))
  { if(object.style.display == 'none') object.style.display = 'block';
    else object.style.display = 'none';
  }
}

function start_clock()
{ var clock_id = 'main_clock';

  if(object = document.getElementById(clock_id))
  { var date = new Date();
    var year = date.getYear();
    var month = date.getMonth();
    var day = date.getDate();
    var hour = date.getHours();
    var minute = date.getMinutes();
    var second = date.getSeconds();

    if(month < 10) month = '0' + month;
    if(day < 10) day = '0' + day;
    if(hour < 10) hour = '0' + hour;
    if(minute < 10) minute = '0' + minute;
    if(second < 10) second = '0' + second;

    object.innerHTML = day + '.' + month + '.' + year + ' ' + hour + ':' + minute + ':' + second;
  }

  setTimeout('start_clock();', 1000);
}

//------------------------------------------------ << Страница --------------------------------------------------------
