function displayFocsoport(id) {
  IE=false;
  if(navigator.appName == "Microsoft Internet Explorer") IE = true;

  var agt=navigator.userAgent.toLowerCase();
  var IE     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

  divek=document.getElementsByTagName("div");
  for (var i=0; i<divek.length; i++)
  {
    if(!IE){
      //focsoport megjelenitese
      if (divek[i].getAttribute('class')=="focsoplista_block") divek[i].setAttribute('class','focsoplista');
      if (divek[i].id==id) divek[i].setAttribute('class','focsoplista_block');
      //fulek karbantartasa
      if (divek[i].getAttribute('class')=="focsopcim_selected") divek[i].setAttribute('class','focsopcim');
      if (divek[i].id==id+"_cim") divek[i].setAttribute('class','focsopcim_selected');
    } else {
      //focsoport megjelenitese
      if (divek[i].getAttribute('className')=="focsoplista_block") divek[i].setAttribute('className','focsoplista');
      if (divek[i].id==id) divek[i].setAttribute('className','focsoplista_block');
      //fulek karbantartasa
      if (divek[i].getAttribute('className')=="focsopcim_selected") divek[i].setAttribute('className','focsopcim');
      if (divek[i].id==id+"_cim") divek[i].setAttribute('className','focsopcim_selected');
    }
  }
  if(id == "forum") {
    document.getElementById('upload').style.display='block';
  } else {
    var x =document.getElementById('upload')
    if (x) x.style.display='none';
  }
}

function mouse_over(id){
//  IE=false;
//  if(navigator.appName == "Microsoft Internet Explorer") IE = true;
  var agt=navigator.userAgent.toLowerCase();
  var IE     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

  if(!IE){
    document.getElementById(id+"_cim").setAttribute('class','focsopcim_mouseover');
  } else {
    document.getElementById(id+"_cim").setAttribute('className','focsopcim_mouseover');
  }
}

function mouse_out(id, csop){
//  IE=false;
//  if(navigator.appName == "Microsoft Internet Explorer") IE = true;
  var agt=navigator.userAgent.toLowerCase();
  var IE     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

  if(!IE){
    document.getElementById(id+"_cim").setAttribute('class','focsopcim');
    document.getElementById(csop+"_cim").setAttribute('class','focsopcim_selected');
  } else {
    document.getElementById(id+"_cim").setAttribute('className','focsopcim');
    document.getElementById(csop+"_cim").setAttribute('className','focsopcim_selected');
  }
}

function set_page_content(response){
  nev=response.substring(0,response.indexOf("====="));
  document.getElementById(nev).innerHTML=response.substring(response.indexOf("=====")+5,response.length);
}

function set_top(resp){
  document.getElementById("right_bar").innerHTML=resp;
    xlr_banner();
}

function upload_avatar(){
  window.open('/page3/upload_avatar.php',"", 'toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=350,height=500');
}
