    function zmien(co)
    {
        if (co==1)
        {
            document.getElementById('woz_ele').style.color='#aaaaaa'
            document.getElementById('typo_ele').style.color='#aaaaaa'                    
            document.getElementById('woz_spa').style.color='#000000'
            document.getElementById('typo_spa').style.color='#000000'  
               
            document.forms[0].woz_ele.selectedIndex=0;
            document.forms[0].typo_ele.selectedIndex=0;                  
        }
        if (co==2)
        {
            document.getElementById('woz_ele').style.color='#000000'
            document.getElementById('typo_ele').style.color='#000000'     
            document.getElementById('woz_spa').style.color='#aaaaaa'
            document.getElementById('typo_spa').style.color='#aaaaaa' 
            
            document.forms[0].woz_spa.selectedIndex=0;
            document.forms[0].typo_spa.selectedIndex=0;                     
        }        
    }
    
    function sprawdz()
    {
        if (  (document.forms[0].woz_spa.selectedIndex==0 && document.forms[0].typo_spa.selectedIndex==0) && !(document.forms[0].woz_ele.selectedIndex==0 && document.forms[0].typo_ele.selectedIndex==0) )
        {
        document.getElementById('woz_spa').style.color='#aaaaaa'
        document.getElementById('typo_spa').style.color='#aaaaaa' 
        }
        if (  (document.forms[0].woz_ele.selectedIndex==0 && document.forms[0].typo_ele.selectedIndex==0)  && !(document.forms[0].woz_spa.selectedIndex==0 && document.forms[0].typo_spa.selectedIndex==0))
        {
        document.getElementById('woz_ele').style.color='#aaaaaa'
        document.getElementById('typo_ele').style.color='#aaaaaa' 
        }        
    }

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

function menu_over(id){
document.getElementById("m"+id).style.backgroundColor='#E7E3E7'
document.getElementById("a"+id).style.color='#000000'
}

function menu_out(id){
document.getElementById("m"+id).style.backgroundColor='#FFFFFF'
document.getElementById("a"+id).style.color='#6B696B'
}


function td_over(id){
document.getElementById(id).style.backgroundColor='#EFBE00'
}

function td_out(id){
document.getElementById(id).style.backgroundColor='#BDBEBD'
}

//funkcja do wyswietlania popupu
var okno='';
function popup(wi,he,uerel,alignx,aligny,scrol)
{
	if(okno &&!okno.closed){okno.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=window.open(uerel, '_blank', 'scrollbars='+scrol+',height='+he+',width='+wi+',top='+yy+',left='+xx);
}


foto=new Array('m1','m3','m4','m5');
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]+'a.gif';
}
