advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function tabela(klasa){advAJAX.get({ tag: "tabela", url: "ajax/tabela.php", "klasa" : klasa

         
})};


advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function mapka(klasa){

advAJAX.get({ tag: "mapka_ajax", url: "ajax/mapka_ajax.php", "klasa" : klasa

         
})

mapaStart();GUnload();

};


advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function archiwum_news(klasa){advAJAX.get({ tag: "archiwum", url: "ajax/archiwum_news.php", "klasa" : klasa

         
})};



advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function aktualnosci(klasa){advAJAX.get({ tag: "aktualnosci", url: "ajax/news.php", "klasa" : klasa

         
})};



advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function wiadomosci(numer,id){advAJAX.get({ tag: "wiadomosc_dnia", url: "ajax/wiadomosc_dnia.php", "numer" : numer, "id" : id

         
})};


advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function sonda(numer,id){advAJAX.get({ tag: "sonda", url: "ajax/sonda.php", "numer" : numer, "id" : id

         
})};


advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});


function change(pos){advAJAX.get({ tag: "submenu_glowne", url: "ajax/submenu.php", "pos" : pos
         
})};



function show(id_div,maindiv){
var divs = document.getElementById(maindiv).getElementsByTagName('div');



for(i=0;i<divs.length;i++)
{
document.getElementById(divs[i].id).style.display="none";
document.getElementById('tab_'+divs[i].id).className="";
}
document.getElementById(id_div).style.display="block";
document.getElementById('tab_'+id_div).className="selected";

}





function show1(id_div,maindiv){
var divs = document.getElementById(maindiv).getElementsByTagName('h7');



for(i=0;i<divs.length;i++)
{
document.getElementById(divs[i].id).style.display="none";
document.getElementById('tab_'+divs[i].id).className="";
}
document.getElementById(id_div).style.display="block";
document.getElementById('tab_'+id_div).className="selected";

}


function open_form(game) {

window.open('includes/dodaj_wynik.php?g='+game,'noweOkno','left=100,top=100,screenX=100,screenY=100, width=530, height=320, innerWidth=530, innerHeight=320, directories=0, location=0, menubar=0, scrollbars=0, status=0, toolbar=0, resizable=0')

}


function open_mapa(gosp,gosc) {

window.open('includes/docelu.php?gosp='+gosp+'&gosc='+gosc,'noweOkno','left=100,top=100,screenX=100,screenY=100, width=630, height=610, innerWidth=630, innerHeight=610, directories=0, location=0, menubar=0, scrollbars=0, status=0, toolbar=0, resizable=0')

}



function print_frag(id, tytul_pr) {

 var div;

 div = document.getElementById(id);
 okno = window.open("", "", "toolbar=0, location=0, resizable=1, directories=0, status=1, menubar=1, scrollbars=1, height=800, width=700, top=80, left=350");
 var html = div.innerHTML;
 var top ="<div class='topek'></div>";

 html = '<html><head><title>'+tytul_pr+'</title><link rel="stylesheet" href="css/druk.css" type="text/css" /></head><body>'+top+html+'</body></html>';

 okno.document.write(html);
 okno.print();
 okno.focus();
}
//]]>





advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function ranking(typ_kolej){advAJAX.get({ tag: "typ_tabelka", url: "ajax/typ_tabelka.php", "typ_kolej" : typ_kolej

         
})};


advAJAX.setDefaultParameters({
  onSuccess : function(obj) {
  
      document.getElementById(obj.tag).innerHTML = obj.responseText;
  }
});

function typy_gracza(typer,typ_kolej){advAJAX.get({ tag: "typy_gracza", url: "ajax/typy_gracza.php", "typer" : typer, "typ_kolej" : typ_kolej

         
})};


