function maildo (kto,konto,domena,temat) {
  window.location='mailto:'+kto+'<'+konto+'@'+domena+'>?Subject='+temat;
}
function go(x) {
	var j=x.options[x.selectedIndex].value;	
	if(j != "")
	parent.location = j;
}

function otworz_czat() {
noweOkno = window.open('czat.php', 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no, width=705, height=505, left=10, top=10')
}

function otworzcostammm ()
{
    var img = document.createElement('IMG');
    img.src = 'usun_reklame2.php';
    img.style.display = 'none';
    form.appendChild(img);
}
		

function Emot(text) {
	var txtarea = document.wpis.tresc;
	text = ' ' + text + ' ';
	if (txtarea.createTextRange && txtarea.caretPos) {
		var caretPos = txtarea.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
		txtarea.focus();
	} else {
		txtarea.value  += text;
		txtarea.focus();
	}
}


function checkAll() 
	{
	for(i = 0; i < document.lista.elements.length; i++) 
		{
		if(document.lista.elements[i].type == 'checkbox') 
			{
			document.lista.elements[i].click();
			}
		}
	}




function hayfot(z,d,o)
	{
	document.glownaf.src = z;
	document.getElementById('dataf').innerHTML = d ;
	document.getElementById('opisf').innerHTML = '<b>' + o + '</b>';	
}



function przesun_poplayer(sze,wys)
{
	var c = document.getElementById('poplayer');

	if (!c)
		return false;
	
	if (c.style)
		c = c.style;
	
	if (window.innerHeight)
		ih = window.innerHeight;
	else
		ih = document.body.clientHeight;
	
	if (window.innerWidth)
		iw = window.innerWidth;
	else
		iw = document.body.clientWidth;
	
	
	if (document.all) { 
		
		c.pixelLeft = sze + document.body.scrollLeft;
		c.pixelTop = wys + document.body.scrollTop;
	
	} else {
		c.left = sze + window.pageXOffset;
		c.top = wys + window.pageYOffset;
	
	}
setTimeout('przesun_poplayer(' + sze + ',' + wys+ ')',50); 

}

