function pokaz_baner(p_poz,p_baner)
{
  if(p_baner.length>0)
    if(eval(p_poz)<=document.f_param.s_baner.options[document.f_param.s_baner.options.selectedIndex].value)
      document.write(p_baner);
}

function odswiez_strone()
{
  location.replace("http://konie.najlepsze.net/?baner="+document.f_param.s_baner.options.selectedIndex);
}


function parametry(p_search)
{
  p_search=p_search.substring(1,p_search.length);
  for(var i=0;i<p_search.split("&").length;i++)
  {
    var par=p_search.split("&")[i];
    if(par.split("=")[0]=="baner")
    {
      document.f_param.s_baner.options.selectedIndex=eval(par.split("=")[1]);
    }
  }
}

function pokaz_stat(p_tytul,p_we,p_wy,p_wes,p_wys,p_wed,p_wyd)
{
  w_stat=window.open('','','toolbar=no,menubar=no,location=no,status=no,resizable=no,directories=no,width=400,height=200');
  w_stat.document.open();
  html='';
  html+='<html>';
  html+='<head>';
  html+='<title>Polski Katalog Końskich Stron</title>';
  html+='<META http-equiv="content-type" CONTENT="text/html; charset=iso-8859-2">';
  html+='<style type="text/css">';
  html+='</style>';
  html+='</head>';
  html+='<body background="http://jazda.konna.webpark.pl/pics/background.gif" style="font-family: Verdana; font-size: 12px; color: #000000;">';
  html+='<b>Polski Katalog Końskich Stron<br>'+p_tytul+'</b><br>&nbsp;<br>';
  html+='wejścia :: '+p_we+'<br>';
  html+='wyjścia :: '+p_wy+'<br>';
  html+='wejścia w sumie :: '+p_wes+'<br>';
  html+='wyjścia w sumie :: '+p_wys+'<br>';
  html+='wejścia dziennie :: '+p_wed+'<br>';
  html+='wyjścia dziennie :: '+p_wyd+'<br>';
  html+='</body>';
  html+='</html>';

  w_stat.document.write(html);
  w_stat.document.close();
  w_stat.focus();
}

