var lastLink = false;
var oldStyle = '';
var lastQuestion = false;

function libObj(id)
{
  return document.getElementById ? document.getElementById(id) : document.body.all[id] ? document.body.all[id]: false;
}

/*function jump2Anchor(objHref,id)
{
  if(!objHref.parentNode)return false;
  var objQuestion = libObj(id);
  if(!objQuestion) return false;

  objHref.style.color = '#1375ae';
  objQuestion.style.background = 'url(pool/css/img/trenner.gif) #e2edf3 bottom repeat-x';
  objQuestion.style.padding = '.5em .1em .5em .1em';
  if(lastLink)lastLink.style.color = 'black';
  if(lastQuestion){
  	lastQuestion.style.background = 'none';
    lastQuestion.style.padding = '0';
  }
  lastLink = objHref;
  lastQuestion = objQuestion;
  return true;
} */
function jump2Anchor(objHref,id)
{
  if(!objHref.parentNode)return false;
  var objQuestion = libObj(id);
  if(!objQuestion) return false;
  oldStyle = objQuestion.style;
  objHref.style.color = '#1375ae';
  objQuestion.style.background = 'url(pool/css/img/trenner.gif) #e2edf3 bottom repeat-x';
//  objQuestion.style.padding = '5px 1px 5px 1px';
  if(lastLink)lastLink.style.color = 'black';
  if(lastQuestion){
  	lastQuestion.style.background = 'url(pool/css/img/trenner.gif) #fff bottom repeat-x';
//    lastQuestion.style.padding = '0 0 0 0';
  }
  lastLink = objHref;
  lastQuestion = objQuestion;
  return true;
}