function raporty_view(id)
{
	/*if (window.showModalDialog)
	{
		window.showModalDialog("photos_preview.php?id_img=" + id_img + "&prod_index=" + prod_index,"CSW-photo","dialogWidth:700px;dialogHeight:500px");
	}
	else
	{*/
		okno = window.open("raporty_view.php?id=raporty&more=1&nid=" + id,'Raporty',"scrollbars=1,resizable=1,width=500,height=500,top=0,left=524");
		okno.focus()
	//}
}


function show_hide_raports(id)
{
  if (document.getElementById('rok'+id).style.display == 'none')
  {
    document.getElementById('rok'+id).style.display = '';
    document.getElementById('img'+id).src = 'images/index_collapse.gif';
    document.getElementById('img'+id).alt = zwin_text;
    document.getElementById('img'+id).title = zwin_text;
  }
  else
  {
    document.getElementById('rok'+id).style.display = 'none';
    document.getElementById('img'+id).src = 'images/index_expand.gif';
    document.getElementById('img'+id).alt = rozwin_text;
    document.getElementById('img'+id).title = rozwin_text;
  }
}