function stretching()
{
  var windowHeight   = document.body.offsetHeight-4;
  var documentHeight = document.getElementById('wrapper').offsetHeight;
  if (documentHeight < windowHeight)
  {
    document.getElementById('wrapper').style.height = windowHeight+'px';
  }
}