function nextpage(num)
{
	if (num == 1)
	{
		document.getElementById('m_views').style.fontWeight='bold';
		document.getElementById('m_rank').style.fontWeight='normal';
		document.getElementById('popular').style.display='block';
		document.getElementById('toprank').style.display='none';	
	} else {
		document.getElementById('m_views').style.fontWeight='normal';
		document.getElementById('m_rank').style.fontWeight='bold';
		document.getElementById('popular').style.display='none';
		document.getElementById('toprank').style.display='block';	
	}
}

function toFavorite(Ftitle, Furl)
{
	if( window.sidebar && window.sidebar.addPanel ) 
	{ 
		window.sidebar.addPanel( Ftitle, Furl, '' ); 
	} else if( window.external && ( navigator.platform == 'Win32' || ( window.ScriptEngine && ScriptEngine().indexOf('InScript') + 1 ) ) ) 
	{ 
		window.external.AddFavorite( Furl, Ftitle ); 
	} else if( window.opera ) { 
		 window.alert( 'Naciśnij klawisze Ctrl+D aby dodać stronę do zakładek.' ); 
	} else { 
		 window.alert( 'Proszę uťyć funkcji dodawania do zakładek dostępnej w przeglądarce internetowej.' ); 
	} 
}

function onlylive( id, ch )
{
	
	if (ch == 1)
	{
		var radioOb = document.getElementById( id );
		if( radioOb.checked == false )
			radioOb.checked = true;
		else
			radioOb.checked = false;
	}
	var forma = document.getElementById( 'flive' );
	forma.submit();
}

function send_shout() {
	document.getElementById('frm_shout').action ="/send_shout.php";
	document.getElementById('frm_shout').submit();
	document.getElementById('message').value="";
}

function submit_enter(myfield,e)
{
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;

	if (keycode == 13)
	   {
	   send_shout();
	   return false;
	   }
	else
	   return true;
}
