<!--

/* copyright 2007 by rainer.wollthan @ rocuments.de */

function updateShoutMessages(){
	var container="ShoutboxMsg";
	var url = "shoutnow.php";
	if($(container)){
		new Ajax.PeriodicalUpdater(container,url,{ 
				method:"post",
				frequency: 2,
				decay: 2,
				parameters: { step: 'display',channel:$('channel').value ,folge:$('folge').value }
			});
	}
}

function insertShoutMessages(){
	var container="ShoutboxMsg";
	var url = "shoutnow.php";
	new Ajax.Updater(container,url,{ 
				method:"post",
				parameters: $('shoutform1').serialize(true)
				
			});
	$('ShoutNachricht').value="";
	return false;
}

Event.observe(window, 'load', updateShoutMessages, false);

//-->
