function light_ramka(nr)
{	

	if(document.all)
	{	
		w=document.all[nr];
		w.className="border_img_active";
	}
	else
	{
		warstwa = document.getElementById(nr);
		warstwa.className="border_img_active";
	}
}
function delight_ramka(nr)
{
	
	if(document.all)
	{	
		w=document.all[nr];
		w.className="border_img";
	}
	else
	{
		warstwa = document.getElementById(nr);
		warstwa.className="border_img";
	}
}


function noweokno_scroll(url, width, height) 
{
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,left=50,top=100' );
}
function noweokno(url, width, height) 
{
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,left=50,top=100' );
}
function noweokno2(url, nr, width, height) 
{
        var Win = window.open(url, nr,'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,left=50,top=100' );
}


function active(element)
{
	element.className='active';
	element.childNodes[0].className='active';
	element.childNodes[0].childNodes[0].className='link_active';
	element.childNodes[0].childNodes[0].childNodes[0].className='active';
}

function noactive(element)
{
	element.className='';
	element.childNodes[0].className='';
	element.childNodes[0].childNodes[0].className='link';
	element.childNodes[0].childNodes[0].childNodes[0].className='';
}


function obsluga_warstw()
 {
  if (document.layers) return true;
  if (document.all) return false;
  if (document.getElementById) return true;
  return true;
 }

function get_elem(co)
 {
  if (!obsluga_warstw()) return document.all[co];
  else return document.getElementById(co);
 }


function set_pic(gdzie, patch)
 {
	 
  get_elem(gdzie).innerHTML = patch;
 }
 
function set_txt(gdzie, text)
 {
  get_elem(gdzie).innerHTML = text;
 }
 
function ch_color_y(obj)
{
obj.style.color='#f5c900';
}
function ch_color(obj)
{
obj.style.color='black';	
} 

function newWindow(url, nr, width, height) 
{
        var Win = window.open(url, nr,'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,left=50,top=100' );
}


