var tgs = new Array('div','span','li','p','a','td');
//var tgst = new Array('td');
//var tgs2 = new Array('h4');
var szs = new Array( '10px','12px','16px' );
var szst = new Array( '10px','11px','16px' );

function ts( tgs,trgt,inc ) { 
	if (!document.getElementById) return;
	var d = document,cEl = null,sz,i,j,cTags,cTags2,cTags3,k,l;
	
	sz = inc;
	if ( sz >= 0 ) {
		if ( sz > 2 )
			sz = 2;

		if ( !( cEl = d.getElementById( trgt ) ) )
			cEl = d.getElementsByTagName( trgt )[ 0 ];

		if(inc==1) {
			cEl.style.fontSize   = '';
			cEl.style.lineHeight = '';
		}
		else
			cEl.style.fontSize   = szs[ sz ];

		if (inc==2)
			cEl.style.lineHeight = '21px';
		else if (inc==0)
			cEl.style.lineHeight = '15px';
	
		for ( i = 0 ; i < tgs.length ; i++ ) {
			cTags = cEl.getElementsByTagName( tgs[ i ] );
			for ( j = 0 ; j < cTags.length ; j++ ){
				if (inc==2) {
					cTags[ j ].style.fontSize = szs[ sz ];
					cTags[ j ].style.lineHeight = '21px';
				} else if (inc==0) {
					cTags[ j ].style.fontSize = szs[ sz ];
					cTags[ j ].style.lineHeight = '15px';
				} else {
					cTags[ j ].style.fontSize = '';
					cTags[ j ].style.lineHeight = '';	
				}
			}
		}
	}
}

function setCoo(size) {
	document.cookie='rozmiar_czcionki='+size+'; path=/';
	//document.cookie='rozmiar_czcionki=""; path=/';
}

function getCoo(cookie)
{
    var position = cookie.indexOf("rozmiar_czcionki");
    if (position != -1) {
        return cookie.substr(position+17, 1);
    }
    return -1;
}


function przepisz(poleDo, poleZ) {
	var foo = document.getElementById(poleDo);
	foo.firstChild.nodeValue = poleZ.value;
}