function naglowek() {
	document.write('<table class="srodkujaca" border="1" cellpadding="0" cellspacing="0">'+
'	<tr>'+
'		<td>'+
'		<table class="glowna"  style="background-color: white;" border="0" align="center" cellpadding="0" cellspacing="0">'+
'			<thead>'+
'			</thead>'+
'			<tfoot>'+
'				<tr>'+
'					<td><img border="0"src="grafika/lewy_dol2.gif"/></td>'+
'					<td width="550" align="right"><img border="0"src="grafika/prawy_dol.gif"/></td>'+
'				</tr>'+
'			</tfoot>'+
'			<tbody>'+
'				<tr>'+
'					<td valign="top" height="100%">'+
'						<table height="100%" border="0" cellpadding="0" cellspacing="0" >'+
'							<tr>'+
'								<td colspan="2" width="245" height="230" '+
'								style="background-image: url(\'grafika/lisc2.gif\'); background-color: rgb(40, 70, 130);">&nbsp;</td>'+
'							</tr>'+
'							<tr>'+
'											<td valign="top" style="background-image: url(\'grafika/lewa_zwykla.gif\'); background-repeat: repeat-y;"><img border="0"src="grafika/pod_lisciem.gif"/></td>'+
'											<td valign="top">									');
	 menu();
	  + document.write('												<br/>'+
'												'+
'												<br/>'+
'												'+
'											</td>'+
'							</tr>'+
'						</table>'+
'					</td>'+
'					<td valign="top" height="100%">'+
'						<table height= "100%" border="0" cellpadding="0" cellspacing="0" >'+
'							<tr>'+
'								<td width="550" valign="top" colspan="2" height="55" width="550" style="background-image: url(\'grafika/prawa_gora.gif\');">&nbsp;</td>'+
'							</tr>'+
'							<tr>'+
'								<td valign="top" width="470">');
}								
function stopka(){
	document.write('</td>'+
'								<td valign="top" align="right" style="background-image: url(\'grafika/prawy_bok_dol.gif\'); background-repeat: repeat-y; background-position: right;"><img border="0"src="grafika/prawy_bok.gif"/></td>'+
'							</tr>'+
'						</table>'+
'					</td>					'+
'				</tr>'+
'			</tbody>'+
'		</table>'+
'		</td>'+
'	</tr>'+
'</table>'+
'<!-- koniec srodkujacej -->');
}
function menu(){
	document.write(''+
		numerowacz()+'<a class="menu" href="historia.html">historia	</a><br/>'+
		numerowacz()+'<a class="menu" href="wyniki.html">wyniki			</a><br/>'+
		numerowacz()+'<a class="menu" href="dlaczego.html">dlaczego MY</a><br/>'+
		numerowacz()+'<a class="menu" href="wybor.html">wybór OFE		</a><br/>'+
		numerowacz()+'<a class="menu" href="prasowki.html">prasówki	</a><br/>'+
		numerowacz()+'<a class="menu" href="zmiana.html">zmień OFE		</a><br/>'+
		numerowacz()+'<a class="menu" href="losowanie.html">losowanie</a><br/>'+
		numerowacz()+'<a class="menu" href="zapis.html">zapisz się		</a><br/>'+
		numerowacz()+'<a class="menu" href="polecaj.html">z polecenia</a><br/>'+
		numerowacz()+'<a class="menu" href="kontakt.html">kontakt		</a><br/>'+
		numerowacz()+'<a class="menu" href="faq.html">FAQ						</a><br/>'+
		'');  
}
function numerowacz(){
	return '<span class="kropki">::</span>';
}

function show(id){
if (document.getElementById(id).style.display == 'none') {
document.getElementById(id).style.display = '';
}
}
function hide(id){
document.getElementById(id).style.display = 'none';
}
function showOrHide(id) {
if (document.getElementById(id).style.display=='') { hide(id);
} else { show(id);
}
}
function changeStan(value){
if (value=='malzonek') {
show('wspolnotaMajatkowaChkbx');
} else {
hide('wspolnotaMajatkowaChkbx'); }
}
function changeStanOFE(value){
if (value=='tak') {
show('inneOFE');
} else {
hide('inneOFE'); }
}
function refreshState(){
if ((document.getElementById('adresKorespChkb').value)=="1") show('adresKoresp');
else hide('adresKoresp');
if ((document.getElementById('adresUposazChkb').value)=="1") show('adresUposaz');
else hide('adresUposaz');
if ((document.getElementById('wspolnotaMajatkowa').value)=="malzonek") show('wspolnotaMajatkowaChkbx');
else hide('wspolnotaMajatkowaChkbx');
}

