function searchFor(searchf)
{
    if(document.getElementById("search_").value.length > 2) document.getElementById('searchform').submit();
    //if(document.getElementById("search_").value.length > 2) searchf.submit();
    else alert('Szukana fraza musi zawierać co najmniej 3 znaki!');
}

function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,left=1,top=1');
}

function insert(emoticon){
        document.form.dodokomentarz.value+=' '+emoticon;
        document.form.dodokomentarz.focus();
    }
	

function NajnowszeDalej(id)
{
	advAJAX.get({
		url: "najnowsze_dalej.php?stronanaj="+id,
		onLoading : function(obj){
		document.getElementById("movie_gorastrony").innerHTML = '<center><br /><img SRC="images/czekamy.gif"><BR><BR><span style="FONT-FAMILY: tahoma; font-size: 14px; font-weight: bold; color: #ffffff;">proszę czekać...</SPAN><br /><br /></center>';
		},
		onSuccess : function(obj) {
		document.getElementById("movie_gorastrony").innerHTML = obj.responseText;
		},
		onError : function(obj) {
		alert("WystÄ…piĹ‚ bĹ‚Ä…d podczas komunikacji z serwerem");
		}
	});
}
