var inc = -1;

function show_report(reportid){
  if(inc!=-1){
    hide_report(inc);
  }
  if(inc!=reportid){
    document.getElementById("text_"+reportid).className = 'text';
    document.getElementById("call_"+reportid).className = 'inactive';
    document.getElementById("abstract_"+reportid).className = 'abstract';
    self.location.href='#report'+reportid;
  }
  else{
    hide_report(inc);
    reportid = -1;
  }
  inc = reportid;
}

function hide_report(reportid){
  document.getElementById("text_"+reportid).className = 'inactive';
  document.getElementById("call_"+reportid).className = 'text';
  document.getElementById("abstract_"+reportid).className = 'text';
}

