
function fun_punkty(num)
{
    document.getElementById('content_punkty').innerHTML = '<div style="background:#EFF3F7;padding:4px 0px 4px 0px;width:288px"><span class="wyroznienie" style="padding-left:10px">&nbsp;</span></div><div style="padding:10px 0px 0px 10px"><span class="small_text">pobieranie danych ...</span></div>'
    
    advAJAX.get
    ({ 
        url: "content_punkty.php?num="+num,
        tag: "content_punkty",
        
        onSuccess : function(obj) 
        { 
            document.getElementById(obj.tag).innerHTML = obj.responseText; 
        },
        
        onError : function(obj) 
        { 
            document.getElementById(obj.tag).innerHTML = "error"; 
        }
    });
    
    
    advAJAX.setDefaultParameters({});
}

function kody_check(nazwa)
{
	html = document.forms['f_kody'].elements[nazwa].value;
	html = html.replace(/[^0-9]/g,'');
	document.forms['f_kody'].elements[nazwa].value = html;
}

//funkcje do podmiany zdjec
function fon(n,lang)
{
    
    if ( lang )
    {
        document.images[n].src='grafika/'+lang+'/'+n+'1.gif';
    }
    else
    {
        document.images[n].src='grafika/'+n+'1.gif';
    }
}
function foff(n,lang)
{
    if ( lang )
    {
        document.images[n].src='grafika/'+lang+'/'+n+'.gif';
    }
    else
    {
        document.images[n].src='grafika/'+n+'.gif';
    }
}


function f_pro_on(id)
{
    document.getElementById("pro"+id).style.background = '#D6EFFF';
    document.getElementById("pro_bottom"+id).className = 'pro_bottom_on';
}

function f_pro_off(id)
{
    document.getElementById("pro"+id).style.background = '#E7EFF7';
    document.getElementById("pro_bottom"+id).className = 'pro_bottom_off';
}

//funkcja do wyswietlania popupu
var okno_pop='';
function popup(wi,he,uerel,alignx,aligny,scrol)
{
	// Bartosz Szczecinski
  // 20.04.2006
  // Opera 8.x nie obsluguje !okno_pop.closed
	if(okno_pop && okno_pop.closed==false) {
  	okno_pop.close()
  }
	if(wi=='100%'){wi=screen.availWidth-30}
	if(he=='100%'){he=screen.availHeight-0}
	if(alignx=='left'){xx=0}
	else if(alignx=='right'){xx=(screen.availWidth-wi)-10}
	else{xx=(screen.availWidth-wi)/2}
	if(aligny=='top'){yy=0}
	else if(aligny=='bottom'){yy=(screen.availHeight-he)}
	else{yy=(screen.availHeight-he)/2}
	okno_pop=window.open(uerel, '_blank', 'scrollbars='+scrol+',height='+he+',width='+wi+',top='+yy+',left='+xx);
}

function blurall() {
	var links = document.getElementsByTagName('a');
	for (var i=0;i<links.length;i++){
		links[i].onfocus = blurme;
  	}
}

function blurme()
{
	this.blur();
}



/*ladowanie do casch-u zdjec
foto=new Array('pl','en');
menuA=new Array();menuB=new Array();
for(n=0;n<foto.length;n++){
	menuA[n]=new Image();
	menuA[n].src='grafika/'+foto[n]+'.gif';
	menuB[n]=new Image();
	menuB[n].src='grafika/'+foto[n]+'1.gif';
}
*/
