function navbarGoTo(start){
    document.forms.selekcja_form.start_pos.value=start;
    document.forms.selekcja_form.submit();    
}

function popupWindow(url){
    window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=800,height=600,screenX=0,screenY=0,top=0,left=0')
}
function printPreview(id){
    window.open('preview.php?id='+id,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=780,height=570,screenX=0,screenY=0,top=0,left=0')
}

function showTab1(){
	document.getElementById('tab1').style.display='';
	document.getElementById('tab2').style.display='none';
	document.getElementById('tab3').style.display='none';
	document.getElementById('tab4').style.display='none';
	document.getElementById('td1').style.backgroundColor='#eb6642';
	document.getElementById('td2').style.backgroundColor='';
	document.getElementById('td3').style.backgroundColor='';
	document.getElementById('td4').style.backgroundColor=''
	document.getElementById('a1').style.color='#ffffff';
	document.getElementById('a2').style.color='#222222';
	document.getElementById('a3').style.color='#222222';
	document.getElementById('a4').style.color='#222222';	
}

function showTab2(){
	document.getElementById('tab1').style.display='none';
	document.getElementById('tab2').style.display='';
	document.getElementById('tab3').style.display='none';
	document.getElementById('tab4').style.display='none';
	document.getElementById('td1').style.backgroundColor='';
	document.getElementById('td2').style.backgroundColor='#eb6642';
	document.getElementById('td3').style.backgroundColor='';
	document.getElementById('td4').style.backgroundColor='';
	document.getElementById('a1').style.color='#222222';
	document.getElementById('a2').style.color='#ffffff';
	document.getElementById('a3').style.color='#222222';
	document.getElementById('a4').style.color='#222222';
}

function showTab3(){
	document.getElementById('tab1').style.display='none';
	document.getElementById('tab2').style.display='none';
	document.getElementById('tab3').style.display='';
	document.getElementById('tab4').style.display='none';
	document.getElementById('td1').style.backgroundColor='';
	document.getElementById('td2').style.backgroundColor='';
	document.getElementById('td3').style.backgroundColor='#eb6642';
	document.getElementById('td4').style.backgroundColor='';
	document.getElementById('a1').style.color='#222222';
	document.getElementById('a2').style.color='#222222';
	document.getElementById('a3').style.color='#ffffff';
	document.getElementById('a4').style.color='#222222';
}

function showTab4(){
	document.getElementById('tab1').style.display='none';
	document.getElementById('tab2').style.display='none';
	document.getElementById('tab3').style.display='none';
	document.getElementById('tab4').style.display='';
	document.getElementById('td1').style.backgroundColor='';
	document.getElementById('td2').style.backgroundColor='';
	document.getElementById('td3').style.backgroundColor='';
	document.getElementById('td4').style.backgroundColor='#eb6642';
	document.getElementById('a1').style.color='#222222';
	document.getElementById('a2').style.color='#222222';
	document.getElementById('a3').style.color='#222222';
	document.getElementById('a4').style.color='#ffffff';
}

