function stretchBackground()
{
  var windowWidth;
  var documentWidth;

  //documentWidth = document.getElementsByTagName('html')[0].offsetWidth;
  documentWidth = 1144;

  if (self.innerWidth) // all except Explorer
  {
    windowWidth = self.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode
  {
    windowWidth = document.documentElement.clientWidth;
  }
  else if (document.body) // other Explorers
  {
    windowWidth = document.body.clientWidth;
  }

  if (documentWidth > windowWidth)
  {
    document.getElementById('background').style.width = documentWidth+'px';
  }
}

function searchPage()
{
  document.getElementById('q').focus();
  document.getElementById('q').select();
}

function loginPage()
{
  document.getElementById('username').focus();
}

function logindataPage()
{
  document.getElementById('email').focus();
}
